curl --request GET \
--url https://api.quentli.com/v1/payment-sessions/{id} \
--header 'Authorization: Bearer <token>'{
"id": "ps_1234567890abcdefghij",
"createdAt": "2025-01-15T18:00:00.000Z",
"updatedAt": "2025-01-15T18:00:00.000Z",
"status": "PENDING",
"displayMode": "CUSTOMER_PORTAL",
"origin": "API",
"expiresAt": null,
"totalAmount": 150000,
"currency": "MXN",
"returnUrl": null,
"cancelUrl": null,
"organizationId": "org_1234567890abcdefghij",
"items": [
{
"description": "Colegiatura Enero 2025",
"amount": 150000,
"quantity": 1,
"currency": "MXN"
}
],
"customer": {
"id": "cus_1234567890abcdefghij",
"createdAt": "2025-01-10T12:00:00.000Z",
"updatedAt": "2025-01-10T12:00:00.000Z",
"name": "Juan Pérez",
"username": "juan_perez_01",
"organizationId": "org_1234567890abcdefghij",
"acceptedServiceAgreement": true,
"skipTaxInvoice": false,
"emailVerified": false,
"phoneNumberVerified": true,
"hasChangedPassword": true,
"email": "juan@example.com",
"phoneNumber": "+525512345678",
"secondaryPhoneNumber": null,
"archivedAt": null,
"archivedById": "u_1234567890abcdefghij",
"signatureAcceptedAt": "2025-01-10T12:00:00.000Z",
"optedOutWhatsappAt": null,
"optedInWhatsappAt": "2025-01-05T10:00:00.000Z",
"startedWhatsappAt": "2025-01-05T09:55:00.000Z",
"replyWithAssistant": false,
"metadata": [
{
"key": "studentId",
"value": "A-1029"
}
],
"meta": {
"studentId": "A-1029"
}
},
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
]
}Returns a payment session by id.
curl --request GET \
--url https://api.quentli.com/v1/payment-sessions/{id} \
--header 'Authorization: Bearer <token>'{
"id": "ps_1234567890abcdefghij",
"createdAt": "2025-01-15T18:00:00.000Z",
"updatedAt": "2025-01-15T18:00:00.000Z",
"status": "PENDING",
"displayMode": "CUSTOMER_PORTAL",
"origin": "API",
"expiresAt": null,
"totalAmount": 150000,
"currency": "MXN",
"returnUrl": null,
"cancelUrl": null,
"organizationId": "org_1234567890abcdefghij",
"items": [
{
"description": "Colegiatura Enero 2025",
"amount": 150000,
"quantity": 1,
"currency": "MXN"
}
],
"customer": {
"id": "cus_1234567890abcdefghij",
"createdAt": "2025-01-10T12:00:00.000Z",
"updatedAt": "2025-01-10T12:00:00.000Z",
"name": "Juan Pérez",
"username": "juan_perez_01",
"organizationId": "org_1234567890abcdefghij",
"acceptedServiceAgreement": true,
"skipTaxInvoice": false,
"emailVerified": false,
"phoneNumberVerified": true,
"hasChangedPassword": true,
"email": "juan@example.com",
"phoneNumber": "+525512345678",
"secondaryPhoneNumber": null,
"archivedAt": null,
"archivedById": "u_1234567890abcdefghij",
"signatureAcceptedAt": "2025-01-10T12:00:00.000Z",
"optedOutWhatsappAt": null,
"optedInWhatsappAt": "2025-01-05T10:00:00.000Z",
"startedWhatsappAt": "2025-01-05T09:55:00.000Z",
"replyWithAssistant": false,
"metadata": [
{
"key": "studentId",
"value": "A-1029"
}
],
"meta": {
"studentId": "A-1029"
}
},
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
]
}Organization API key using Authorization: Bearer sk_....
Identifier of the payment session.
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"
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.
Show child attributes
Customer associated with the session, if any.
Show child attributes
Session-level metadata entries.
Show child attributes
Was this page helpful?