get https://sandbox.ecartpay.com/api/checkouts/
This API endpoint retrieves the details of a specific checkout by providing the checkout ID in the URL.
Request
- Method: GET
- URL: https://sandbox.ecartpay.com/api/checkouts/{{id}}
Response
- Status: 200 OK
- Body:
{
"id": "65b011ba7f9f32242108721f",
"account_id": "5d2d436e3199ae000449065b",
"title": "Ecart Pay",
"subtitle": "The best payment solution",
"image_url": "https://miimage.com/image.jpg",
"currency": "MXN",
"amounts": [
100,
200,
500,
1000,
1500,
3000
],
"concept": "Recharge",
"items": [
{
"name": "Recharge",
"quantity": 1,
"price": 100,
"discount": 0,
"is_service": false,
"id": "65b011ba7f9f322421087221"
}
],
"customer_id": "65aff37afebdf2a42f88c178",
"notify_url": "https://example.com/webhooks/checkout?user_id=1",
"reference_id": "001",
"reference": "Custom recharge",
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxODliZTgwZGYyOTE1OTgyMjFhNWU5NSIsInNjb3BlcyI6WyJ3cml0ZV9jaGVja291dHMiXSwiaWF0IjoxNzA2MDM3NjkwLCJleHAiOjE3MDYwMzg1OTAsImF1ZCI6Imh0dHBzOi8vc2FuZGJveC5lY2FydHBheS5jb20iLCJzdWIiOiJjaGVja291dHMifQ.nZHFH-4diuddAAp8hrUrg7hI0Jzti330zlAIPUz6_AB4g6KSIpJWIEL-HVxk8JPGuq6eBVj80Ji7l6cUmOqofQ",
"public_id": "pub6189be80df291598221a5e93",
"link": "https://sandbox.ecartpay.com/v2/checkout?id=65b011ba7f9f32242108721f",
"created_at": "2024-01-23T19:21:30.912Z",
"updated_at": "2024-01-23T19:21:30.912Z"
}
This endpoint returns the details of a specific checkout identified by the provided ID.