Get payment session
Returns a payment session by id.
Authorizations
Organization API key using Authorization: Bearer sk_....
Path Parameters
Identifier of the payment session.
Response
Payment session details
Payment session details. Returns null if not found.
Unique identifier of the payment session.
"ps_1234567890abcdefghij"
When the session was created.
"2025-01-15T18:00:00.000Z"
When the session was last updated.
"2025-01-15T18:00:00.000Z"
Current session status.
PENDING, FINALIZED, CANCELED, EXPIRED "PENDING"
How the payment UI is presented.
CUSTOMER_PORTAL, CUSTOM, EMBEDDED "CUSTOMER_PORTAL"
How the session was created.
API, INVOICE, LISTING "API"
Optional expiration date of the session.
null
Total amount in minor currency units.
150000
ISO 4217 currency code.
"MXN"
Identifier of the customer associated with the session, if any.
null
URL to redirect to after successful payment.
null
URL to redirect to if the payer cancels.
null
Identifier of the owning organization.
"org_1234567890abcdefghij"
Line items in the session.
Customer associated with the session, if any.
Session-level metadata entries.