-
- Abort payment on terminal
- Capture payment
- Filter payments
- Find payment
- Initiate payment flow
- List payment activities
- List payments
- List payments by contact
- List payments by terminal
- Refund payment
- Request payment
- Resume payment on terminal
- Retrieve refund performance
- Retrieve sales performance
- Reverse payment
- Start payment on terminal
- Void payment
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'). |
payment_method_display_namestring
|
The display name of the payment method. |
card_last_digitsstring
|
Nullable. The ending digits of the card number. Null for non-card payment methods or card payments without a token. |
card_networkstring
|
Nullable. The card network, such as visa or mastercard. Null for non-card payment methods or card payments without a token. |
created_atnumber
|
The creation timestamp (Unix timestamp). |
authorized_atnumber
|
Nullable. When the payment was authorized (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. |
payment_session_idstring
|
Nullable. The ID of the payment session associated with this 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.
