Skip to main content
Retrieve a voucher context by its ID.
GET /api/v1/vouchers/contexts/:contextId Returns the full state of a payment context, including its code, status, and associated payers.

Parameters

Path

NameTypeRequiredDescription
contextIdstringYesThe context ID returned when the context was opened

Request example

curl --request GET 'https://payments.bleepay.com/api/v1/vouchers/contexts/ctx_a1b2c3d4e5f6' \
  --header 'Authorization: Bearer <payer_token>'

Response

Response schema

FieldTypeDescription
idstringUnique context identifier
codestringContext code
statusstringContext status (OPEN, CLOSED)
formatstringCode format (numeric or alphanumeric)
payersarrayPayer objects
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last update timestamp

Example response

{
  "id": "ctx_a1b2c3d4e5f6",
  "code": "A1B2C3",
  "status": "OPEN",
  "format": "numeric",
  "payers": [
    {
      "address": "0x1234567890abcdef1234567890abcdef12345678"
    }
  ],
  "createdAt": "2026-06-09T12:00:00.000Z",
  "updatedAt": "2026-06-09T12:00:00.000Z"
}

Error responses

StatusCodeDescription
401unauthorizedMissing or invalid bearer token
404not_foundContext not found