Get payment details
This endpoint enables you to fetch and view relevant information and parameters related to a specific payment. Before you start, make sure you have the payment ID or session ID of the payment in question.
The session ID is provided in the
cko-session-id
query parameter included in the redirect URL back to your site. Redirect URLs have the following format:
http://example.com/success?cko-session-id=sid_ubfj2q76miwundwlk72vxt2i7
The
cko-session-id
expires 15 minutes after being created.
The request
Use the details below to set up your request.
Endpoints
Live
Sandbox
Header and path parameters
Header | Value |
---|---|
|
|
|
|
Path | Value |
---|---|
| The payment ID (prefixed with |
The response
A successful request returns information about the payment.
{
"id": "pay_jkpegpvbjviu5pu6xkewah5r6y",
"requested_on": "2019-01-28T11:12:54Z",
"source": {
"id": "src_v2fgh6u6ijmehgmu5efkbgw4d4",
"type": "card",
"expiry_month": 8,
"expiry_year": 2025,
"scheme": "Dinersclub",
"last4": "9019",
"fingerprint": "792A3B9CCCEE7E940E41CC40E92D08E1DE48BAD0F61BAFAF3809C93270241F83",
"bin": "301234",
"card_type": "Credit",
"card_category": "Commercial",
"issuer": "US Bank",
"issuer_country": "US",
"product_id": "L",
"product_type": "Commercial Credit",
"avs_check": "S",
"cvv_check": ""
},
"amount": 6500,
"currency": "USD",
"payment_type": "Regular",
"reference": "ORD-5023-4E89",
"status": "Captured",
"approved": true,
"risk": {
"flagged": false
},
"customer": {
"id": "cus_ebxdsbvjgxcuxpkluxpwwychka"
},
"billing_descriptor": {
"name": "Fiona's Fashion",
"city": "New York"
},
"eci": "05",
"scheme_id": "638284745624527",
"_links": {
"self": {
"href": "https://api.sandbox.checkout.com/payments/pay_jkpegpvbjviu5pu6xkewah5r6y"
},
"actions": {
"href": "https://api.sandbox.checkout.com/payments/pay_jkpegpvbjviu5pu6xkewah5r6y/actions"
},
"refund": {
"href": "https://api.sandbox.checkout.com/payments/pay_jkpegpvbjviu5pu6xkewah5r6y/refunds"
}
}
}
Additional error responses:
404 - Payment not found
Response parameters
Find out what the different fields in your successful response mean.
Field name | Description |
---|---|
| The unique identifier of the payment action. |
| The date and time the payment was requested. |
| Details about the payment source. |
| The payment source type.\ For any payment request sources that result in a card token (for example, |
| The original payment amount. |
| The three-letter ISO currency code of the payment. |
| Specified for card payments where the cardholder is not present (recurring or Merchant Offline Telephone Order).\ Default: |
| The payment reference.\ For example, an order number. |
| The status of the payment, which can be:
|
| Whether the authorization or capture was successful. |
| Returns the payment's risk assessment results.​ |
| Whether the payment was flagged by a risk check. |
| Details about the customer. |
| Details about the dynamic billing descriptor displayed on the cardholder's statement. |
| The final Electronic Commerce Indicator security level used to authorize the payment. Applicable for 3-D Secure, digital wallets and network token payments. |
| The scheme transaction identifier. |
| A summary of actions related to the payment.\ Only returned if you used the session ID in the request. |
| The links related to the payment. |
Can we help?
Thanks for using Checkout.com. If you need any help or support, then message our support team at [email protected].
Updated 5 months ago