inquireBenefitIssue
URL: https://www.isv.host:port/isv/provided/path/for/benefit/query
With this API call, our server can request an Independent Software Vendor (ISV) to query the result of the previous issuing.
The message structure of this API is defined by us. When the ISV develops this API, follow the specifications below.
Note: If the ISV returns error codes not defined by us, we handle them as system errors.
Structure
A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see:
Request parameters
Field | Data type | Required | Description |
benefitIssueRequestId | String | Yes | Indicates the unique ID assigned by our server to identify an issuing request.
|
Response parameters
Field | Data type | Required | Description | Example |
success | Boolean | Yes | Indicates whether the inquiry is successful | true |
resultCode | String | No | Indicates the result codes
Note: This field is required when the value of success is | - |
resultMessage | String | No | Indicates the result messages that describe result codes in detail.
| - |
benefitDetails | List<ExternalBenefitDetail> | No | Indicates the details of the benefit. Note: This field is required when the value of success is | - |
Error codes
Error codes are usually classified into the following categories:
- Common error codes are common across all Open APIs for ISVs. Â
- API-specific error codes are listed in the following table.
Error code | Result status | Error message | Further action |
ISSUE_REQUEST_ID_NOT_EXIST | F | When the issuing request ID does not exist and the ISV does not have the corresponding issuing record, we consider that the issuing does not need to be reversed. | Check the issuing request ID and try again later. |
Samples
Request
{
"benefitIssueRequestId": "20211111010101000001234"
}
Response
{
"success": true,
"resultCode": "",
"resultMessage": "",
"benefitDetails": [
{
"benefitInstanceId": "20211212010101000001234",
"benefitTemplateId": "202001010101011234",
"amount": {
"currency": "USD",
"value": "100"
},
"status": "ACTIVATED",
"activateTime": "2019-04-04T12:08:56+05:30",
"expireTime": "2019-05-04T12:08:56+05:30",
"benefitCode": "QAZWSX123",
"benefitPin": "ZXCVBN321",
"benefitUrl": "",
"extendInfo": "{\"k1\":\"v1\",\"k2\":\"v2\"}"
}
]
}