Read a checkout session

​

Its current state, including whether it has been paid. This is what your success page should call — reading the session is quicker than waiting for the webhook, and says the same thing.

Path Parameters

Responses

  • application/json
  • No such session

Request Example for get/v1/checkout/sessions/{id}
curl 'https://devapi.spendfigo.com/v1/checkout/sessions/{id}'
{
  "code": 200,
  "message": "Request successful",
  "data": {
    "id": "K7pQ2rX9tLmA4vB1",
    "url": "https://pay.spendfigo.com/pay/K7pQ2rX9tLmA4vB1",
    "embed_url": "https://pay.spendfigo.com/embed/K7pQ2rX9tLmA4vB1",
    "status": "open",
    "amount": 25,
    "currency": "USD",
    "reference": "invoice-4471",
    "title": null,
    "line_items": [
      {
        "name": "Design retainer — August",
        "amount": 25,
        "quantity": 1
      }
    ],
    "collect": [
      "email"
    ],
    "allowed_rails": [
      "crypto"
    ],
    "success_url": null,
    "cancel_url": null,
    "amount_paid": 0,
    "collected": {
      "email": "ada@example.com",
      "phone": "+2348012345678"
    },
    "expires_at": {},
    "created_at": "2026-10-28T22:19:34.935Z"
  }
}