Ler sessão pública de checkout

Devolve totais, itens, URLs e aparência da sessão. Não exige API key. Com query poll=1, true ou yes, responde 200 também para sessão em estado terminal ou expirada (útil para o app de checkout fazer polling). Sem poll, estados terminal/expirado retornam 410 Gone.

Path Parameters
  • token
    Type: string
    required

    Token opaco do path /s/:token na checkoutUrl.

Query Parameters
  • poll
    Type: string

    Hosted polling: permite corpo JSON em estados terminais.

Responses
  • application/json
  • 404

    Sessão não encontrada

  • 410

    Sessão indisponível (terminal ou expirada) quando poll não é enviado

Request Example for get/v1/checkout/sessions/{token}
curl 'https://api.podpay.app/v1/checkout/sessions/{token}?poll='
{
  "sessionId": "string",
  "status": "string",
  "expiresAt": "2026-05-26T17:42:30.337Z",
  "lineItems": [
    {
      "snapshotProductName": "string",
      "snapshotImageUrl": "https://example.com",
      "unitAmount": 1,
      "quantity": 1,
      "currency": "string",
      "sortOrder": 1,
      "productId": "string"
    }
  ],
  "subtotalAmount": 1,
  "discountAmount": 1,
  "shippingAmount": 1,
  "additionalAmount": 1,
  "totalAmount": 1,
  "successUrl": "string",
  "cancelUrl": "string",
  "coupon": {
    "code": "string",
    "discountType": "string",
    "appliedAmount": 1
  },
  "appearance": {
    "appearanceVersion": 1,
    "template": "STANDARD",
    "displayName": "string",
    "logoUrl": "https://example.com",
    "primaryColor": "string",
    "backgroundColor": "string",
    "theme": "LIGHT",
    "banners": [
      {
        "sortOrder": 1,
        "imageUrl": "https://example.com",
        "href": "https://example.com",
        "title": "string",
        "altText": "string"
      }
    ]
  }
}