Get a Payment
Returns the details of a session's payment by its numeric `payment_id`: result, amount, method and, for cards, brand and last four digits.
Authorization
Authorization Authorization<token>
Your public API key, with the word Token and a space in front of it. Example: Token 6534bc0a7e1f4d2b9c8e3a5f7b1d2c4e6f8a9b0c — that whole value is the header. Sending the key alone returns 401 'Authentication credentials were not provided'. In this playground you may paste just the key; the prefix is added for you.
In: header
Path Parameters
payment_id*integer
The numeric payment_id of the session (digits only).
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/checkout/v1/payments/41530"{
"payment_id": 41530,
"transaction_status": "Declined",
"transaction_type": "PAYMENT",
"operation_date": "2025-07-02T14:50:05.010068-05:00",
"amount_total": 2,
"currency": "MXN",
"payment_method_name": "card",
"provider": "tonder",
"card": {
"brand": "",
"last_four_digits": "0085"
},
"decline": {
"code": "04",
"description": "Declined by 3-D Secure"
},
"external_id": "ORD-001",
"metadata": {},
"session": {
"id": "cs_97_41530_403e3eff24789695e8e44ac9eba6a0c70dcc91ab41931be8",
"status": "pending",
"session_type": "payment"
}
}{
"code": "E004",
"message": "The request was invalid. Please check your input and try again.",
"metadata": {},
"name": "TNDR004",
"statusCode": 400
}{
"code": "E003",
"message": "The requested resource was not found.",
"metadata": {},
"name": "TNDR003",
"statusCode": 404
}Was this page helpful?
