Hosted Checkout
Get a Session
Retrieves the details of a payment session by its ID. This is the recommended way to check the final status of a payment after the customer is redirected back to your site.
get/checkout/v1/sessions/{id}
Path parameters
idstring required
Example:sess_a1b2c3d4e5f6
The Session ID (e.g., sess_a1b2c3d4e5f6)
Response
Session retrieved successfully
Example response
{
"id": "cs_97_41521_d11ba771527b4056c7f85786cfbb980bc105efaf42af113d",
"url": "https://stage-payflow.tonder.io/checkout/cs_97_41521_d11ba771527b4056c7f85786cfbb980bc105efaf42af113d",
"status": "pending",
"payment_id": 41521,
"amount_total": 35000,
"currency": "MXN",
"expires_at": 1751564943,
"external_id": "ORD-12345",
"session_type": "payment",
"checkout_type": "hosted",
"payment_method_types": [
"card"
],
"ui_config_version": "V1",
"created_at": 1751478543567,
"modified_at": 1751478543567,
"customer": {
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com"
},
"transaction_status": "Pending",
"provider": "tonder"
}