curl https://pesarc.xyz/api/checkout/pay_7Q2m
{
"ok": true,
"payment": {
"id": "pay_7Q2m",
"merchantName": "Ada Fabrics",
"description": "2 item(s)",
"amount": 50000,
"currency": "NGN",
"reference": "order_1042",
"status": "settled",
"hasPayout": true,
"expiresAt": "2026-09-27T18:00:00.000Z"
}
}
{ "ok": false, "error": "No such payment." }
Endpoints
Get checkout status
Read a payment’s public, display-only status.
GET
/
api
/
checkout
/
{id}
curl https://pesarc.xyz/api/checkout/pay_7Q2m
{
"ok": true,
"payment": {
"id": "pay_7Q2m",
"merchantName": "Ada Fabrics",
"description": "2 item(s)",
"amount": 50000,
"currency": "NGN",
"reference": "order_1042",
"status": "settled",
"hasPayout": true,
"expiresAt": "2026-09-27T18:00:00.000Z"
}
}
{ "ok": false, "error": "No such payment." }
Returns a safe, display-only view of a payment — enough to show a customer, and
enough to reconcile server-side. It never exposes the merchant account,
redirect_url or any signing material.
Path parameters
string
required
The payment id returned by create payment.
Response
boolean
object
curl https://pesarc.xyz/api/checkout/pay_7Q2m
{
"ok": true,
"payment": {
"id": "pay_7Q2m",
"merchantName": "Ada Fabrics",
"description": "2 item(s)",
"amount": 50000,
"currency": "NGN",
"reference": "order_1042",
"status": "settled",
"hasPayout": true,
"expiresAt": "2026-09-27T18:00:00.000Z"
}
}
{ "ok": false, "error": "No such payment." }
This endpoint is display-only and unauthenticated by design (the id is the
capability). Use it to poll for a result if you don’t run a webhook.