Find a payment
Retrieve details about a specific payment in your merchant account.
payment_id
string
Required. The unique identifier of the payment to retrieve.
| Attribute | Description |
|---|---|
payment_idstring
|
The ID of the payment. |
external_idstring
|
Nullable. The merchant's internal reference for this payment. |
statusstring
|
The current status of the payment. |
amountnumber
|
The payment amount in subunits. |
currencystring
|
The 3-letter ISO currency code (e.g., 'THB'). |
payment_methodstring
|
The payment method used (e.g., 'PROMPTPAY', 'CARD'). |
created_atnumber
|
The creation timestamp (Unix timestamp). |
captured_atnumber
|
Nullable. When the payment was captured (Unix timestamp). |
expires_atnumber
|
Nullable. When the payment expires (Unix timestamp). |
capturestring
|
Whether the capture is automatic or manual. |
customer_idstring
|
Nullable. The ID of the customer (contact) associated with this payment. |
customer_emailstring
|
Nullable. The email address of the customer. |
customer_mobilestring
|
Nullable. The mobile phone number of the customer. |
customer_namestring
|
Nullable. The name of the customer. |
feesarray
|
The fees associated with the payment. |
ref1string
|
Nullable. The first custom reference (e.g., invoice ID). |
ref2string
|
Nullable. The second custom reference. |
ref3string
|
Nullable. The third custom reference. |
reversibleboolean
|
Whether the payment can be reversed. |
capturableboolean
|
Whether the payment can be captured. |
voidableboolean
|
Whether the payment can be voided. |
refundableboolean
|
Whether the payment can be refunded. |
fraud_findingstring
|
Whether the payment is considered risky or safe from a fraud perspective. |
terminal_idstring
|
Nullable. The ID of the terminal that created the payment, if any. |
NOT_FOUND
This error occurs when no payment with the provided ID exists in your merchant account. Double check that you're using the correct payment ID.
UNHANDLED_ERROR
This error occurs when the server encounters an unexpected internal error that it cannot handle gracefully. This typically happens due to bugs, infrastructure issues, or edge cases that weren't anticipated during development.
INVALID_ARGUMENTS
This error occurs when the request contains invalid or missing parameters. Common cases include missing required fields, or values that don't match the expected format or type.
BAD_VERSION
This error occurs when making requests to an API version that does not exist. This commonly happens when using an outdated SDK or when the API version specified in the request URL is incorrect.
