inquiryPayment
Use this API to inquire about the transaction status and other information about a previously submitted payment request.
Structure
A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see:
Note: Set the data type of each field (except array) as String. This means that you must use double quotation marks (" ") to enclose the field value. Examples:
- If the data type of a field is Integer and its value is 20, set it as "20".
- If the data type of a field is Boolean and its value is true, set it as "true".
Request parameters
paymentRequestId String
The unique ID that is assigned by a merchant to identify a payment request. paymentRequestId and paymentId cannot both be null. If both paymentRequestId and paymentId are specified, paymentId takes precedence.
More information:
- Maximum length: 64 characters
paymentId String
The unique ID that is assigned by Antom to identify a payment. paymentRequestId and paymentId cannot both be null. A one-to-one correspondence between paymentId and paymentRequestId exists. If both paymentRequestId and paymentId are specified, paymentId takes precedence.
More information:
- Maximum length: 64 characters
Response parameters
result Result REQUIRED
Information about the request calling result.
Note: This field doesn't indicate the payment result. This field only indicates whether the inquiryPayment interface is called successfully.
paymentStatus String
Indicates the payment result. Valid values are:
SUCCESS: Indicates that the payment succeeds.FAIL: Indicates that the payment fails.PROCESSING: Indicates that the payment is under processing.CANCELLED: Indicates that the payment is canceled.PENDING: Indicates that the payment is completed. Wait for the final payment result.
Note: This field is returned when the API is called successfully (the value of result.resultStatus is
S).paymentResultCode String
The result code for different payment statuses. Possible payment result codes are listed in the Payment result codes table on this page.
Note: This field is returned when the API is called successfully (the value of result.resultStatus is
S).More information:
- Maximum length: 64 characters
paymentResultMessage String
The result message that explains the payment result code.
Note: This field is returned when the API is called successfully (the value of result.resultStatus is
S).More information:
- Maximum length: 256 characters
paymentRequestId String
The unique ID that is assigned by a merchant to identify a payment request.
Note: This field is returned when the API is called successfully (the value of result.resultStatus is
S).More information:
- Maximum length: 64 characters
paymentId String
The unique ID that is assigned by Antom to identify a payment.
Note: This field is returned when the API is called successfully (the value of result.resultStatus is
S).More information:
- Maximum length: 64 characters
paymentAmount Amount
The payment amount that the merchant requests to receive in the order currency.
paymentCreateTime Datetime
The date and time when the payment is created.
Note: This field is returned when the API is called successfully (the value of result.resultStatus is
S).More information:
- The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".
paymentTime Datetime
The date and time when the payment reaches a final state of success.
Note: This field is returned only when the payment reaches a final state of success (the value of paymentStatus is
SUCCESS). More information:
- The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".
pspCustomerInfo PspCustomerInfo
The customer information of Alipay+ payment methods.
Note: This field is returned when the Alipay+ payment methods can provide the related information.
redirectActionForm RedirectActionForm
Information about the redirection action.
Note: This field is returned when the value of paymentResultCode is
PAYMENT_IN_PROCESS.acquirerReferenceNo String
The unique ID assigned by the non-Antom acquirer for the transaction.
More information:
- Maximum length: 64 characters
transactions Array<Transaction>
Information about the subsequent action against a transaction.
This parameter is returned when a refund or a capture against the transaction exists.
More information:
- Maximum size: Unlimited
customsDeclarationAmount Amount
The total amount for customs declaration.
Note: This field is returned only when the payment succeeds and the wallet is AlipayCN.
grossSettlementAmount Amount
The value of this field equals to transaction amount multiplied by the value of settlementQuote. This field is returned when the currency exchange is predetermined and the exchange rate is locked at the time of transaction.
settlementQuote Quote
The exchange rate between the settlement currency and transaction currency. This field is returned when grossSettlementAmount is returned.
paymentResultInfo PaymentResultInfo object
The payment result information.
This parameter is returned when the value of paymentMethodType in the pay API is CARD, GRABPAY_MY, or GRABPAY_SG and the value of paymentStatus is SUCCESS or FAIL.
authExpirytime Datetime
The expiration date and time of the authorization payment. You cannot capture the payment after this time.
This parameter is returned when the value of paymentMethodType in the pay (One-time Payments) API is CARD.
More information about this field:
- The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".
More information:
- The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".