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
| Name | Type | Required | Description |
|---|---|---|---|
contextId | string | Yes | The context ID returned when the context was opened |
Request example
Response
Response schema
| Field | Type | Description |
|---|---|---|
id | string | Unique context identifier |
code | string | Context code |
status | string | Context status (OPEN, CLOSED) |
format | string | Code format (numeric or alphanumeric) |
payers | array | Payer objects |
createdAt | string | ISO 8601 creation timestamp |
updatedAt | string | ISO 8601 last update timestamp |
Example response
Error responses
| Status | Code | Description |
|---|---|---|
401 | unauthorized | Missing or invalid bearer token |
404 | not_found | Context not found |