API Reference
Complete documentation for all Vendora POS API v1 operations available to vendor integrations.
${API_BASE_URL}/api/v1/pos— Set via NUXT_VENDORA_API_BASE_URL environment variable. Do not hardcode production or sandbox domains./api/storefront/... and /api/vendor-dashboard/... to keep the API key server-side. These are sandbox proxy routes used only by this demonstration portal and are not the endpoints vendor integrations should call. Global Authentication & Headers
All requests to the Vendora POS API must be made from a secure vendor backend or POS service. API credentials must never be exposed in browser JavaScript, URLs, screenshots, logs, public repositories or support tickets. The sandbox portal proxies interactive requests server-side to keep credentials out of the browser.
| Header | Required | Description |
|---|---|---|
X-Vendora-Api-Key | Required | Identifies and authenticates the vendor integration. Must be kept on the vendor backend and never exposed to browsers or client applications. |
X-Vendora-Store-Code | Required | Selects an authorised store associated with the API key. |
X-Vendora-POS-Code | Optional | Selects an authorised POS terminal. Required for terminal-dependent operations: create hold, release hold, create sale. |
X-Request-ID | Optional | A vendor-generated UUID for request tracing. Recommended for all requests. Returned in the response envelope as tracing_id. |
Idempotency-Key | Optional | Required for create hold and create sale. A stable, vendor-generated unique key per logical operation. Reusing the same key with the same body may return the original result without side-effects. |
Accept | Required | Must be application/json for all JSON endpoints. Use application/pdf for the e-ticket download endpoint. |
Content-Type | Optional | Must be application/json for POST/PATCH requests with a JSON body. |
X-Vendora-POS-Code). Some read operations may not require POS context.Idempotency-Key is required for creating a hold and creating a sale. Reusing the same key with the same request body may return the original result (idempotent replay). Reusing it with a different request body can produce a conflict response./api/v1/pos/auth/validatescope: noneValidate Credentials
Validates the configured API key and returns the vendor, store, POS terminal and granted scopes. Use as a connectivity and configuration check before beginning an integration flow.
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "CREDENTIALS_VALID",
"message": "Credentials validated successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"api_key": {
"id": 1,
"name": "Sandbox Key",
"identifier": "sk_sandbox_...",
"scope_mode": "vendor_wide",
"abilities": [
"products:read",
"customers:write",
"tickets:hold",
"sales:write",
"sales:read",
"etickets:download",
"tickets:read",
"sms:read",
"sms:retry"
]
},
"vendor": { "id": 1, "code": "VENDOR01", "name": "Demo Vendor" },
"store": { "id": 1, "code": "STORE01", "name": "Demo Store" },
"pos": { "id": 1, "code": "POS01", "name": "Terminal 1" }
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/productsscope: products:readList Active Products
GET /api/storefront/products(used only by this demonstration portal — not the vendor integration endpoint)Returns all active draw products available for the configured store. Products include pricing, quantity limits, draw dates, and any active promotional coupon.
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "PRODUCTS_LISTED",
"message": "Products retrieved successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"products": [
{
"product_id": 251,
"product_name": "Grand Lucky Draw",
"product_type": 1,
"series_no": "GLD-2025-A",
"price": 35.00,
"minimal_quantity": 1,
"maximal_quantity": 10,
"available_quantity": 1250,
"product_image": null,
"draw_date": 1736967600,
"live_draw_until": null,
"prize_amount": "1000000.00",
"promotion_start_date": "2025-01-01T00:00:00Z",
"promotion_expiry_date": "2025-01-15T20:00:00Z",
"coupon": [
{
"id": 900,
"name": "Buy 2 Get 1",
"customerScope": "all",
"entityType": "product",
"entityIds": [251],
"version": 1,
"max_use_by_customer": null,
"buy_x": 2,
"get_y": 1
}
]
}
],
"previous_products": [],
"cart_count": null,
"storage_url": "https://storage.example.com",
"debug": false
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/products/{productId}/available-ticketsscope: products:readAvailable Tickets
GET /api/storefront/products/{productId}/tickets(used only by this demonstration portal — not the vendor integration endpoint)Returns the list of individual ticket numbers currently available for selection for a given product. Use this endpoint to populate a ticket-selection UI. Availability is a snapshot — do not promise inventory until a hold succeeds.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
productId | integer | Required | The numeric ID of the product whose available ticket inventory is requested. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
cursor | string | No | Pagination cursor returned by the previous response (next_cursor). Omit for the first page. |
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "AVAILABLE_TICKETS_LISTED",
"message": "Available tickets retrieved.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"product": {
"product_id": 251,
"product_name": "Grand Lucky Draw",
"series_no": "GLD-2025-A",
"price": 35.00,
"minimal_quantity": 1,
"maximal_quantity": 10,
"draw_date": "2025-01-15T17:00:00.000000Z"
},
"tickets": [
{ "ticket_id": 101, "ticket_number": "386216", "lucky_number": null },
{ "ticket_id": 102, "ticket_number": "386217", "lucky_number": null }
],
"available_quantity": 1250,
"pagination": {
"next_cursor": "eyJpZCI6MTAyfQ",
"has_more": true
},
"availability_checked_at": "2026-10-16T11:30:00.000000Z"
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
404 | PRODUCT_NOT_FOUND | The product does not exist or is not available for this store. |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/customers/upsertscope: customers:writeUpsert Customer
POST /api/storefront/customers(used only by this demonstration portal — not the vendor integration endpoint)Creates or updates a customer in the Vendora system. Returns the Vendora-side mapping status. The returned vendor_customer_id must be used in all subsequent hold and sale requests for this customer. Identity/KYC attestation is submitted at sale time, not here.
Request Body
{
"vendor_customer_id": "VENDOR-CUSTOMER-1001",
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "[email protected]",
"mobile": "501234567",
"mobile_country_id": 217,
"full_mobile": "+971501234567",
"nationality": "AE",
"date_of_birth": "1990-01-15",
"address": {
"country_id": 217,
"state_id": 1,
"city_id": 0,
"address_line_1": "123 Test Street",
"address_line_2": null
}
}Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Content-Type: application/json
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "CUSTOMER_MAPPED",
"message": "Customer mapped successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"vendor_customer_id": "VENDOR-CUSTOMER-1001",
"mapping_status": "MAPPED",
"match_method": "NEW",
"review_required": false
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
202 | CUSTOMER_PENDING_REVIEW | The customer record was accepted but requires manual review before they can complete a promotional hold. The review_required field in the response will be true. |
422 | VALIDATION_ERROR | One or more required fields are missing or invalid. |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/ticket-holdsscope: tickets:holdCreate Hold
POST /api/storefront/holds(used only by this demonstration portal — not the vendor integration endpoint)Temporarily reserves one or more tickets for a limited time. A hold is not a completed sale — it reserves inventory while the customer completes payment. The hold expires according to the backend configured expiry time. A valid POS context is required. An Idempotency-Key header is required.
Request Body
{
"product_id": 251,
"quantity": 2
}
Ticket-selection mode (select specific tickets by ID):
{
"product_id": 251,
"ticket_ids": [101, 102]
}
Promotional hold (include coupon_id and vendor_customer_id):
{
"product_id": 251,
"quantity": 3,
"coupon_id": 900,
"vendor_customer_id": "VENDOR-CUSTOMER-1001"
}Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
X-Vendora-POS-Code: <your-pos-code>
Idempotency-Key: hold-<uuid>
Content-Type: application/json
Accept: application/jsonSuccess Response
{
"status": 201,
"code": "TICKETS_HELD",
"message": "Tickets held successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"hold_reference": "hld_opaque-reference-string",
"product_id": 251,
"quantity": 2,
"expires_at": "2026-10-16T12:10:00+04:00",
"tickets": [
{ "ticket_id": 101, "ticket_number": "386216" },
{ "ticket_id": 102, "ticket_number": "386217" }
],
"promotion": null
}
}
Idempotent replay (same Idempotency-Key, same body — hold already exists):
{
"status": 200,
"code": "TICKETS_HELD",
"message": "Idempotent replay.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"hold_reference": "hld_opaque-reference-string",
"product_id": 251,
"quantity": 2,
"expires_at": "2026-10-16T12:10:00+04:00",
"tickets": [
{ "ticket_id": 101, "ticket_number": "386216" },
{ "ticket_id": 102, "ticket_number": "386217" }
],
"promotion": null
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
409 | TICKET_SELECTION_UNAVAILABLE | The selected ticket(s) are no longer available. Refresh availability and allow the customer to reselect. |
409 | INSUFFICIENT_AVAILABILITY | Not enough tickets are available for the requested quantity. |
409 | DUPLICATE_PRODUCT_HOLD | An active hold for this product already exists for this session. |
409 | IDEMPOTENCY_CONFLICT | The Idempotency-Key was already used with a different request body. |
422 | VALIDATION_ERROR | Request body failed validation (e.g. missing product_id, or both quantity and ticket_ids provided). |
403 | POS_CONTEXT_REQUIRED | A valid X-Vendora-POS-Code header is required for this operation. |
404 | PRODUCT_NOT_FOUND | The specified product does not exist or is not available. |
422 | COUPON_NOT_APPLICABLE | The coupon does not apply to this product or customer. |
422 | CUSTOMER_PENDING_REVIEW | The customer account is pending review and cannot use promotional holds. |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/ticket-holds/{reference}scope: tickets:holdRelease Hold
DELETE /api/storefront/holds/:holdReference(used only by this demonstration portal — not the vendor integration endpoint)Releases a hold early, freeing the reserved tickets back into inventory. A valid POS context is required. Holds also expire automatically on the Vendora backend if not released and not converted to a sale.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
reference | string | Required | The hold_reference string returned by the Create Hold endpoint. |
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
X-Vendora-POS-Code: <your-pos-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "HOLD_RELEASED",
"message": "Hold released successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"hold_reference": "hld_opaque-reference-string",
"released_quantity": 2
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
404 | HOLD_NOT_FOUND | The hold reference does not exist, was already released, or has already been completed as a sale. |
409 | HOLD_EXPIRED | The hold existed but has already expired. |
403 | POS_CONTEXT_REQUIRED | A valid X-Vendora-POS-Code header is required for this operation. |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/salesscope: sales:writeCreate Sale
POST /api/storefront/checkout(used only by this demonstration portal — not the vendor integration endpoint)Finalises a ticket sale using one or more active hold references. The vendor processes payment through its own payment gateway before calling this endpoint and supplies the payment result. Vendora validates the submitted amount against the protected amount calculated for the hold. A valid POS context is required. An Idempotency-Key header is required.
Request Body
{
"hold_references": ["hld_opaque-reference-string"],
"vendor_order_id": "VENDOR-ORDER-1001",
"vendor_order_reference": "VENDOR-RECEIPT-1001",
"vendor_customer_id": "VENDOR-CUSTOMER-1001",
"kyc": {
"attestation_method": "VENDOR_MANUAL",
"attested_at": "2026-10-16T10:15:00+04:00",
"document_type": "PASSPORT",
"document_number": "P12345678",
"document_expiry_date": "2028-06-30",
"document_country_id": 217
},
"payment": {
"provider": "Vendor POS",
"transaction_id": "PAYMENT-1001",
"payment_method": "CARD",
"result_status": "PAID",
"result_code": "00",
"result_message": "Approved",
"amount": 70.00,
"currency": "AED",
"paid_at": "2026-10-16T10:14:30+04:00",
"receipt_reference": "RECEIPT-1001"
}
}Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
X-Vendora-POS-Code: <your-pos-code>
Idempotency-Key: sale-<uuid>
Content-Type: application/json
Accept: application/jsonSuccess Response
{
"status": 201,
"code": "SALE_ISSUED",
"message": "Sale created and tickets issued successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"sale": {
"order_reference": "ORD-xyz789",
"vendor_order_id": "VENDOR-ORDER-1001",
"vendor_order_reference": "VENDOR-RECEIPT-1001",
"payment_status": "PAID",
"ticket_status": "ISSUED",
"product_count": 1,
"ticket_count": 2,
"paid_ticket_count": 2,
"free_ticket_count": 0,
"subtotal": "70.00",
"discount_amount": "0.00",
"total_amount": "70.00",
"email_delivery_status": "QUEUED",
"products": [
{
"product_id": 251,
"product_name": "Grand Lucky Draw",
"ticket_count": 2,
"paid_ticket_count": 2,
"free_ticket_count": 0,
"subtotal": "70.00",
"discount_amount": "0.00",
"total_amount": "70.00",
"promotion": null,
"tickets": [
{ "ticket_id": 101, "ticket_number": "386216", "ticket_type": "PAID", "amount": "35.00" },
{ "ticket_id": 102, "ticket_number": "386217", "ticket_type": "PAID", "amount": "35.00" }
]
}
]
},
"idempotent_replay": false
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
422 | PRICE_VALIDATION_FAILED | The payment.amount does not match the hold-protected amount. The vendor must not modify the amount after obtaining a hold. |
422 | HOLD_NOT_FOUND | One or more hold references do not exist. |
409 | HOLD_EXPIRED | One or more holds have expired before the sale was submitted. |
422 | KYC_ATTESTATION_INVALID | KYC attestation data is missing or invalid. |
422 | EXPIRED_DOCUMENT | The identity document has expired. |
422 | INVALID_PAYMENT | Payment result data is invalid or missing. |
409 | IDEMPOTENCY_CONFLICT | The Idempotency-Key was reused with a different request body. |
403 | POS_CONTEXT_REQUIRED | A valid X-Vendora-POS-Code header is required for this operation. |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/transactionsscope: sales:readList Transactions
GET /api/vendor-dashboard/transactions(used only by this demonstration portal — not the vendor integration endpoint)Returns the vendor's transaction history scoped to the authenticated API key. Supports filtering by status and pagination.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | No | Filter by transaction status. Values: PENDING, PAID, ERROR. |
page | integer | No | Page number. Default: 1. |
per_page | integer | No | Items per page. Default: 25. Maximum: 100. |
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "TRANSACTIONS_LISTED",
"message": "Transactions retrieved successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"transactions": [
{
"order_id": 1001,
"order_reference": "ORD-xyz789",
"vendor_order_id": "VENDOR-ORDER-1001",
"vendor_order_reference": "VENDOR-RECEIPT-1001",
"status": "ISSUED",
"payment_status": "PAID",
"ticket_count": 2,
"total_amount": "70.00",
"currency": "AED",
"customer_email_masked": "a***@example.test",
"store": { "code": "STORE01", "name": "Demo Store" },
"pos": { "code": "POS01", "name": "Terminal 1" },
"email_status": "QUEUED",
"created_at": "2026-10-16T10:15:00.000000Z",
"issued_at": "2026-10-16T10:15:02.000000Z"
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
}
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/transactions/{order}scope: sales:readTransaction Detail
GET /api/vendor-dashboard/transactions/{reference}(used only by this demonstration portal — not the vendor integration endpoint)Returns full details for a single issued transaction, including ticket breakdown, masked customer information, store/POS context, and email delivery status.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
order | string | Required | The order_reference returned by the Create Sale endpoint (e.g. ORD-xyz789). This is the Vendora-assigned order reference, not the vendor_order_id. |
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "TRANSACTION_FOUND",
"message": "Transaction retrieved successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"transaction": {
"order_reference": "ORD-xyz789",
"vendor_order_id": "VENDOR-ORDER-1001",
"vendor_order_reference": "VENDOR-RECEIPT-1001",
"payment_status": "PAID",
"ticket_status": "ISSUED",
"total_amount": "70.00",
"currency": "AED",
"ticket_count": 2,
"paid_ticket_count": 2,
"free_ticket_count": 0,
"customer_email_masked": "a***@example.test",
"customer_name_masked": "A*** A***",
"store": { "code": "STORE01", "name": "Demo Store" },
"pos": { "code": "POS01", "name": "Terminal 1" },
"email_status": "QUEUED",
"created_at": "2026-10-16T10:15:00.000000Z",
"issued_at": "2026-10-16T10:15:02.000000Z",
"products": [
{
"product_id": 251,
"product_name": "Grand Lucky Draw",
"ticket_count": 2,
"paid_ticket_count": 2,
"free_ticket_count": 0,
"subtotal": "70.00",
"discount_amount": "0.00",
"total_amount": "70.00",
"promotion": null,
"tickets": [
{ "ticket_id": 101, "ticket_number": "386216", "ticket_type": "PAID", "amount": "35.00" },
{ "ticket_id": 102, "ticket_number": "386217", "ticket_type": "PAID", "amount": "35.00" }
]
}
],
"payment": {
"provider": "Vendor POS",
"transaction_id": "PAYMENT-1001",
"payment_method": "CARD",
"result_status": "PAID",
"result_code": "00",
"result_message": "Approved",
"amount": 70.00,
"currency": "AED",
"paid_at": "2026-10-16T10:14:30.000000Z",
"receipt_reference": "RECEIPT-1001"
}
}
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
404 | TRANSACTION_NOT_FOUND | No transaction with the given order reference exists for this vendor/store. |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/transactions/{order}/e-ticketscope: etickets:downloadDownload E-Ticket PDF
GET /api/storefront/orders/{order}/e-ticket(used only by this demonstration portal — not the vendor integration endpoint)Downloads the e-ticket PDF for an issued transaction. The transaction must be successfully issued — e-ticket download is independent of email delivery status. The API key must be sent in a request header and must never appear in the download URL. Browser-based downloads must be performed through an authorised server-side proxy to avoid exposing the key.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
order | string | Required | The Vendora order_reference for the issued transaction. |
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/pdfSuccess Response
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="Vendora-e-ticket-ORD-xyz789.pdf"
Cache-Control: no-store, private
<binary PDF data>Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
404 | ETICKET_NOT_AVAILABLE | The e-ticket is not available for this transaction. The transaction may not be in an issued state. |
404 | TRANSACTION_NOT_FOUND | No transaction with the given order reference exists for this vendor/store. |
401 | UNAUTHORIZED | Invalid or missing API key. |
429 | RATE_LIMITED | Too many download requests. |
/api/v1/pos/ticketsscope: tickets:readList Issued Tickets
GET /api/vendor-dashboard/tickets(used only by this demonstration portal — not the vendor integration endpoint)Returns the list of tickets issued to the vendor's customers, scoped to the authenticated API key. Includes ticket number, type, amount, e-ticket status and associated order reference.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number. Default: 1. |
per_page | integer | No | Items per page. Default: 25. Maximum: 100. |
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "TICKETS_LISTED",
"message": "Tickets retrieved successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"tickets": [
{
"ticket_id": 101,
"ticket_number": "386216",
"status": "ISSUED",
"ticket_type": "PAID",
"amount": "35.00",
"issued_at": "2026-10-16T10:15:02.000000Z",
"product": {
"product_id": 251,
"product_name": "Grand Lucky Draw",
"series_no": "GLD-2025-A",
"draw_date": "2025-01-15T17:00:00.000000Z"
},
"order": {
"order_reference": "ORD-xyz789",
"vendor_order_id": "VENDOR-ORDER-1001",
"vendor_order_reference": "VENDOR-RECEIPT-1001"
},
"store": { "code": "STORE01", "name": "Demo Store" },
"pos": { "code": "POS01", "name": "Terminal 1" },
"e_ticket": {
"status": "QUEUED",
"sent_at": null
}
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 2,
"last_page": 1
}
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/tickets/{ticket}scope: tickets:readTicket Detail
GET /api/vendor-dashboard/tickets/{ticketId}(used only by this demonstration portal — not the vendor integration endpoint)Returns full detail for a single issued ticket, including its product, associated order reference, e-ticket delivery status and masked customer email where available. Only tickets belonging to the authenticated vendor's scope are accessible.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ticket | integer | Required | The numeric ticket_id for the issued ticket. |
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "TICKET_FOUND",
"message": "Ticket retrieved successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"ticket": {
"ticket_id": 101,
"ticket_number": "386216",
"status": "ISSUED",
"ticket_type": "PAID",
"amount": "35.00",
"issued_at": "2026-10-16T10:15:02.000000Z",
"product": {
"product_id": 251,
"product_name": "Grand Lucky Draw",
"series_no": "GLD-2025-A",
"draw_date": "2025-01-15T17:00:00.000000Z"
},
"order": {
"order_reference": "ORD-xyz789",
"vendor_order_id": "VENDOR-ORDER-1001",
"vendor_order_reference": "VENDOR-RECEIPT-1001"
},
"store": { "code": "STORE01", "name": "Demo Store" },
"pos": { "code": "POS01", "name": "Terminal 1" },
"e_ticket": {
"status": "SENT",
"sent_at": "2026-10-16T10:16:30.000000Z"
},
"customer_email_masked": "a***@example.test"
}
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
404 | TICKET_NOT_FOUND | The ticket does not exist or does not belong to this vendor's scope. |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/transactions/{order}/smsscope: sms:readSMS Status
Returns the current SMS delivery status for an issued transaction. SMS sending is asynchronous. This endpoint reports the latest internally recorded delivery state as returned by the configured SMS provider. SMS availability may depend on the configured provider and environment.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
order | string | Required | The Vendora order_reference for the issued transaction. |
Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Accept: application/jsonSuccess Response
{
"status": 200,
"code": "SMS_STATUS_RETRIEVED",
"message": "SMS status retrieved successfully.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"order_reference": "ORD-xyz789",
"sms_status": "DELIVERED",
"sms_provider_status": "delivered",
"sent_at": "2026-10-16T10:16:00.000000Z",
"delivered_at": "2026-10-16T10:16:05.000000Z"
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
404 | TRANSACTION_NOT_FOUND | No transaction with the given order reference exists for this vendor/store. |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |
/api/v1/pos/transactions/{order}/sms/retryscope: sms:retryRetry SMS Delivery
Queues a retry of the SMS delivery for an eligible issued transaction. A successful response means that the retry was accepted and queued — it does not mean the SMS provider has accepted or delivered the message.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
order | string | Required | The Vendora order_reference for the issued transaction. |
Request Body
{}Required Headers (example)
X-Vendora-Api-Key: <your-api-key>
X-Vendora-Store-Code: <your-store-code>
Content-Type: application/json
Accept: application/jsonSuccess Response
{
"status": 202,
"code": "SMS_RETRY_QUEUED",
"message": "SMS retry has been queued.",
"tracing_id": "req-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1.0",
"errors": null,
"encrypted_data": null,
"response": {
"order_reference": "ORD-xyz789",
"queued_at": "2026-10-16T10:20:00.000000Z"
}
}Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
404 | TRANSACTION_NOT_FOUND | No transaction with the given order reference exists for this vendor/store. |
422 | SMS_RETRY_NOT_PERMITTED | The transaction is not eligible for an SMS retry (e.g. not yet issued, or retry limit reached). |
401 | INVALID_API_KEY | The API key is missing, invalid, or has been revoked. |
401 | UNAUTHORIZED | Access denied — check your API key and store/POS configuration. |
403 | API_KEY_ABILITY_REQUIRED | The API key does not have the required scope for this operation. |
403 | SCOPE_FAILURE | Store or POS scope validation failed. |
429 | RATE_LIMITED | Too many requests. Respect the Retry-After header. |