# Agency & Tier

### You can use the i'mport Agent service to set up PGs for sub-merchants (manage sub-merchants) with a single account.

**If you apply for and register multiple sub-merchant codes (Tier codes) with the master account, you can register merchant information and view (cancel) payment details for each sub-merchant.**

(You can assign a 3-digit ID and a name for each sub-merchant)

{% hint style="info" %}
To get access to this service, send your ChaiPort email account to the following:

[**cs@iamport.kr**](mailto:cs@iamport.kr)
{% endhint %}

### Using Agent service

Through i'mport Agent service, you can manage merchants more conveniently and efficiently.

* **Agent Admin page :** [**admin.iamport.kr**](http://admin.iamport.kr/)
* **Demo ID :** [**demo.agency@siot.do**](mailto:demo.agency@siot.do)
* **Demo PW : dkdlavhxm (i'mport in Korean)**

You can try out the sub-merchant settings and look up payment history with the demo Agent ID.

\<Key Features>

**1. PG settings for sub-merchant**

* You can add or delete sub-merchants, and set PG MID and manage PGs for sub-merchants.

![Sub-merchant PG settings page](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FCDC5gJCA0a5iClJRS11G%2Fimage.png?alt=media\&token=2c03fe52-e600-4249-8761-d916e9d9c71b)

![Sub-merchant PG settings page](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FZ1u1nzrtcBtWeti7dAlD%2Fimage.png?alt=media\&token=c36bfff4-5134-4fd3-bc6a-2263228756ea)

![Add sub-merchant code window](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2F901nmITJA5r1gH3EQjSW%2Fimage.png?alt=media\&token=50cda0d7-b698-4c4e-9a2d-6be4a2f97708)

**2. View/cancel payments**

* View/cancel payment activities of all sub-merchants that you manage.

![Sample view of sub-merchant payment history](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FYbP009rtTl9bfH4xHALC%2Fimage.png?alt=media\&token=9bd9cdaf-1a15-4868-b263-ec2049680b6c)

{% hint style="info" %}
**Calling sub-merchant's payment window**&#x20;

When requesting payment for each sub-merchant, you can specify the target **Tier** with the **JavaScript SDK.**

**IMP.agency(Merchant ID, 3-digit Tier (unique) code)**

`Example: IMP.agency('imp12345678', '001')`
{% endhint %}

{% hint style="info" %}
**Calling REST API**

When calling the REST API, you must include the Tier information in the header to request payment for the corresponding sub-merchant.

Include the following parameter in the HTTP header.

`"Tier" : "3-digit Tier code"`
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://portone.gitbook.io/docs-en/tips/agency-and-tier.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
