v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-011518127.5 KB
Hosted Checkout

Get a Payment Transaction

Retrieves the details of a specific payment transaction by its payment_id. This provides more granular information about individual payment attempts.

get/checkout/v1/payments/{payment_id}

Path parameters

payment_idstring required
Example:pay_x1y2z3a4b5

The Payment ID (e.g., pay_x1y2z3a4b5)

Response

Payment transaction retrieved successfully

payment_idstring

Unique payment transaction identifier

session_idstring

Associated session ID

statusstring

Transaction status

amountinteger

Payment amount in smallest currency unit

currencystring

3-letter ISO currency code

payment_method_typestring

Type of payment method used

created_atstring date-time

Transaction creation timestamp

Example response

{
  "payment_id": "pay_x1y2z3a4b5",
  "session_id": "sess_a1b2c3d4e5f6",
  "status": "Success",
  "amount": 35000,
  "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"
  }
}