Hosted Checkout
Get a Payment Transaction
Retrieves the details of a specific payment transaction by its `payment_id`. It provides more granular information about individual payment attempts.
Authorization
Authorization Authorization<token>
Tu API key con prefijo Token , p. ej. Token <API_KEY>
In: header
Path Parameters
payment_id*string
The Payment ID (e.g., pay_x1y2z3a4b5)
Response Body
application/json
curl -X GET "https://example.com/checkout/v1/payments/pay_x1y2z3a4b5"{
"payment_id": "pay_x1y2z3a4b5",
"session_id": "sess_a1b2c3d4e5f6",
"status": "Success",
"amount": 350,
"currency": "MXN",
"payment_method_type": "card",
"created_at": "2025-10-20T14:30:00Z",
"card_details": {
"brand": "visa",
"last4": "4242"
},
"customer": {
"name": "John Doe",
"email": "john.doe@example.com"
}
}Was this page helpful?
Get a Session
Retrieves the details of a payment session by its ID. This is the recommended way to check the outcome after the customer is redirected back to your site.
Get Transaction Status
Retrieve the current status and details of any transaction (payment or withdrawal). It's the source of truth, and essential for asynchronous methods like SPEI transfers and cash payments.
