inquiryRefund
POST /v2/payments/inquiryRefund
Call the inquiryRefund interface to query the refund status.
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
Parameter name | Type | Required | Description |
refundId | String | Yes | The refund ID returned by the refund API. |
响应参数
Parameter name | Type | Required | Description |
refundId | String | Yes | The refund ID. |
result | Yes | The result of the API call. | |
refundStatus | String | Yes | The final status of the refund. Valid values are:
|
refundTime | String | No | The time when the refund was completed. |
paymentId | String | Yes | The original payment ID. |
Result
Parameter name | Type | Required | Description |
resultStatus | String | Yes | The result status. Valid values are:
|
resultCode | String | No | The result code. Maximum length: 64 characters |
resultMessage | String | No | The result message that describes the result code in detail. Maximum length: 256 characters |
Result codes
resultCode | resultStatus | resultMessage | Further action |
|
| Success. | No action is required. |
|
| Access is denied. | Contact Antom Technical Support for detailed reasons. |
|
| The currency is not supported. | Contact Antom Technical Support for detailed reasons. |
|
| The merchant status is abnormal because restrictions exist. | Contact Antom Technical Support for detailed reasons. |
|
| The order does not exist. | Check whether paymentId is correct. If correct, contact Antom Technical Support for specific reasons. |
|
| The order status is invalid. The transaction is under process or the transaction is failed. | Check the order status and take corresponding actions. Wait if the transaction is under process. Do not initiate the refund if the transaction failed. Contact Antom Technical Support for specific reasons. |
|
| The amount or currency is different from the previous request. | Ensure all the fields in the requests are the same or use a new paymentRequestId to initiate the refund again. |
|
| The request is rejected because of the risk control. | Prompt the user that the request is rejected because the risk control failed. |
|
| The transaction is canceled. | You cannot refund the transaction because it is canceled. |
|
| A system error occurred. | Do not retry, and contact Antom Technical Support for more details. |
|
| The private key or public key of Antom or the merchant is not found. | Check whether the private key or public key exists. If not, upload the private key in Antom Dashboard. |
|
| The merchant balance is insufficient. | Call the API again after the merchant has sufficient balance. The refundRequestId field needs to be changed when you try again. |
|
| Multiple refunds are not supported because restrictions exist in the contract. | Check whether multiple refunds exist. Do not call the refund interface anymore. For each refund, only call the interface once. |
|
| API is not defined. | Check whether the URL is correct. Please refer to the endpoint in the API documentation. |
|
| The called API is invalid or not active. | Contact Antom Technical Support to resolve the issue. |
|
| A general business failure occurred. | Do not retry. Human intervention is usually needed. It is recommended that you contact Antom Technical Support to troubleshoot the issue. |
|
| The total refund amount exceeds the payment amount or the refund amount is less than the minimum refund amount. | Confirm whether the total refund amount exceeds the payment amount or whether the refund amount is less than the minimum refund amount. Create a new refund using an amount that is less than or equal to the payment amount and greater than or equal to the minimum refund amount, or contact Antom technical support. |
|
| The refund date exceeds the refundable period that is agreed in the contract. | Confirm whether the refund date exceeds the refundable period. Check the refundable period in the contract or contact Antom Technical Support for the specific refundable period. |
|
| The request traffic exceeds the limit. | Call the API again to resolve the issue. If not resolved, contact Antom Technical Support. |
|
| An API call has failed, which is caused by unknown reasons. | Call the interface again to resolve the issue. If not resolved, contact Antom Technical Support. |
Samples
The following code shows a request message:
{
"refundId": "20260410194010890100111910209******",
}The following code shows a response message:
{
"refundId": "20260410194010890100111910209******",
"refundRequestId": "2026040919452311010022209B******",
"refundStatus": "SUCCESS",
"refundTime": "2026-04-10T03:04:44Z",
"result": {
"resultCode": "SUCCESS",
"resultMessage": "Success.",
"resultStatus": "S"
}
}