POST /v1/merchants/inquiryMerchantInfo returns merchant attributes based on the accessToken issued by applyToken. The response includes merchant profile details such as merchant ID, business name, and logo when authorized.
my.getAuthCode, use merchant-specific scopes such as MERCHANT_ID, MERCHANT_NAME, or MERCHANT_LOGO. For more details on scope types, see getAuthCode - Scope Reference.
| Method | Path |
|---|---|
POST | /v1/merchants/inquiryMerchantInfo |
A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see: OpenAPIs Overview.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
accessToken | string | Yes | Access token for querying merchant info (max 128 characters; disallow @, #, ?). Obtain via applyToken. | "281010033AB2F588D14B43238637264FCA5AAF35xxxx" |
extendInfo | string | No | Optional metadata (max 4096 characters; no @, #, ?). | { "memo": "memo" } |
{
"accessToken": "281010033AB2F588D14B43238637264FCA5AAF35xxxx"
}
| Field | Type | Required | Description |
|---|---|---|---|
result | object | Yes | Outcome metadata containing status and error codes. |
merchantInfo | object | No | Merchant attributes allowed by the authorized scopes. Returned when result.resultStatus is S. |
| Field | Type | Description |
|---|---|---|
merchantId | string | The unique merchant ID in Super Qi. |
merchantName | string | The English name of the merchant in Super Qi. |
merchantNameArabic | string | The Arabic name of the merchant in Super Qi. |
merchantLogo | string | The merchant logo URL. |
| Status | Description |
|---|---|
S | The inquiry is successful. Use the accessToken to access merchant information within the corresponding scope. The corresponding result.resultCode is SUCCESS and the result.resultMessage is Success. |
U | The status of the inquiry is unknown. The corresponding result.resultCode is UNKNOWN_EXCEPTION and result.resultMessage is "An API calling is failed, which is caused by unknown reasons." For details, see the Common error codes section. |
F | The inquiry is failed. The corresponding result.resultCode and result.resultMessage are various based on different situations. For details, see the Error codes section. |
Error codes are usually classified into the following categories:
| Result Status | Result Code | Result Message |
|---|---|---|
F | INVALID_ACCESS_TOKEN | The access token is not valid. |
F | EXPIRED_ACCESS_TOKEN | The access token is expired. |
{
"accessToken": "281010033AB2F588D14B43238637264FCA5AAF35xxxx"
}
{
"result": {
"resultCode": "SUCCESS",
"resultStatus": "S",
"resultMessage": "Success"
},
"merchantInfo": {
"merchantId": "216629765986934560843",
"merchantName": "KFC",
"merchantNameArabic": ""
}
}