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.

GET
/checkout/v1/payments/{payment_id}

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?