> For the complete documentation index, see [llms.txt](https://amast-einvoice.gitbook.io/amast-einvoice-sass/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://amast-einvoice.gitbook.io/amast-einvoice-sass/appendix/mytax-intermediary-setup.md).

# MyTax Intermediary Setup

Before using our API keys, you must register our company as an **Intermediary** in the MyTax Portal. This authorization allows us to submit and manage e-Invoices on your behalf.

#### Prerequisites

* You have access to your sandbox or live MyTax Portal account.
* You have obtained the required intermediary registration details from our team.

***

### Environment

If you intend to use our Platform **Sandbox /** **Live API Key**, register us as an intermediary in the MyTax Portal below:

| API Key Type       | Required Portal                       |
| ------------------ | ------------------------------------- |
| Sandbox API Key    | <https://preprod-mytax.hasil.gov.my/> |
| Production API Key | <https://mytax.hasil.gov.my/>         |

#### Step

1. Log in to the MyTax Portal.
2. Navigate to:

   * **MyInvois (will redirect to new tab)**<br>

     <figure><img src="https://1514548598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEByh45KmWKecEMKcxP1E%2Fuploads%2FA0L9SP2343rNgD7cRrLE%2Flll.PNG?alt=media&amp;token=6d0b734e-6dc5-4090-9089-8177842742db" alt=""><figcaption></figcaption></figure>
   * **Taxpayer Profile**

   <figure><img src="https://1514548598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEByh45KmWKecEMKcxP1E%2Fuploads%2FRbLgjTzVeqZt8Oa1osJI%2F1.PNG?alt=media&amp;token=1add5019-7e79-4636-9573-6ca8e0a22f4a" alt=""><figcaption></figcaption></figure>

   * **Intermediaries**
3. Click **Add Intermediary**.

<figure><img src="https://1514548598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEByh45KmWKecEMKcxP1E%2Fuploads%2F3F22DKe641MleVEzd1nv%2F2.PNG?alt=media&amp;token=c6239959-ab37-4809-a280-a14b29904122" alt=""><figcaption></figcaption></figure>

4. Enter the intermediary details using below details.

| TIN           | C24381091010    |
| ------------- | --------------- |
| BRN           | 201601006104    |
| Taxpayer Name | AMAST SDN. BHD. |

{% hint style="info" %}
TIN, BRN and Taxpayer name are case-sensitive when searching in Add Intermediary section.
{% endhint %}

<figure><img src="https://1514548598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEByh45KmWKecEMKcxP1E%2Fuploads%2FCGLWZ58NmzotVlCD4bTv%2F4.PNG?alt=media&amp;token=85ab20b6-6aa6-4dfc-b002-daf25176e58e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1514548598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEByh45KmWKecEMKcxP1E%2Fuploads%2FcGu6705uDKAiMz5xfmFy%2F3.PNG?alt=media&amp;token=a26867da-0589-4bd3-9219-a6dc30e01819" alt=""><figcaption></figcaption></figure>

5. Set the date range, and allow all Permissio, then hit Save.
6. Verify that our company appears in your list of authorized intermediaries.

> **Important:** Sandbox intermediary registration is only valid for Sandbox API usage and does not grant access to the Production environment, and vice versa.

***

### Verification

After completing the registration:

1. Confirm that our company is listed under your authorized intermediaries.
2. Once verification is successful, our Support Team will update the status on the **API Key** page
3. Proceed with API integration using the corresponding API key.

If you encounter any issues during registration, please contact our Support Team and provide screenshots of the intermediary registration page for troubleshooting.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://amast-einvoice.gitbook.io/amast-einvoice-sass/appendix/mytax-intermediary-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
