⚠️
Non-production integration environment. Use only sandbox credentials and test data. Sandbox credentials must not be used in production. Vendor developers must receive production credentials through a separate controlled onboarding process. Production base URLs and credentials must not be inferred from this sandbox.
Vendor API Base URL
${API_BASE_URL}/api/v1/pos— Set via NUXT_VENDORA_API_BASE_URL environment variable. Do not hardcode production or sandbox domains.
The sandbox portal internally uses routes such as /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.

HeaderRequiredDescription
X-Vendora-Api-KeyRequiredIdentifies and authenticates the vendor integration. Must be kept on the vendor backend and never exposed to browsers or client applications.
X-Vendora-Store-CodeRequiredSelects an authorised store associated with the API key.
X-Vendora-POS-CodeOptionalSelects an authorised POS terminal. Required for terminal-dependent operations: create hold, release hold, create sale.
X-Request-IDOptionalA vendor-generated UUID for request tracing. Recommended for all requests. Returned in the response envelope as tracing_id.
Idempotency-KeyOptionalRequired 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.
AcceptRequiredMust be application/json for all JSON endpoints. Use application/pdf for the e-ticket download endpoint.
Content-TypeOptionalMust be application/json for POST/PATCH requests with a JSON body.
⚠️Creating a hold, releasing a hold and creating a sale require a valid active POS context (X-Vendora-POS-Code). Some read operations may not require POS context.
ℹ️Idempotency: 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.
POST/api/v1/pos/auth/validatescope: none

Validate 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/json

Success 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 StatusError CodeDescription
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ This endpoint does not require a POS code. It is safe to call with only the API key and store code to verify the basic integration configuration.
GET/api/v1/pos/productsscope: products:read

List Active Products

Sandbox proxy routeGET /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/json

Success 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 StatusError CodeDescription
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ An empty products array is a valid response meaning no draws are currently active, not an error.
GET/api/v1/pos/products/{productId}/available-ticketsscope: products:read

Available Tickets

Sandbox proxy routeGET /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

ParameterTypeRequiredDescription
productIdintegerRequiredThe numeric ID of the product whose available ticket inventory is requested.

Query Parameters

ParameterTypeRequiredDescription
cursorstringNoPagination 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/json

Success 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 StatusError CodeDescription
404PRODUCT_NOT_FOUNDThe product does not exist or is not available for this store.
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
⚠️ Availability is a snapshot only. A ticket shown as available may be taken by a concurrent request before your hold succeeds. Always handle 409 TICKET_SELECTION_UNAVAILABLE when creating a hold.
ℹ️ Use the next_cursor value from pagination to retrieve the next page. When has_more is false, all available tickets have been listed.
POST/api/v1/pos/customers/upsertscope: customers:write

Upsert Customer

Sandbox proxy routePOST /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/json

Success 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 StatusError CodeDescription
202CUSTOMER_PENDING_REVIEWThe 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.
422VALIDATION_ERROROne or more required fields are missing or invalid.
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ The response code may be 200 CUSTOMER_MAPPED (normal case) or 202 CUSTOMER_PENDING_REVIEW. In the pending-review case, the customer can still complete non-promotional holds and sales but may be blocked from promotional operations.
⚠️ Do not submit identity document numbers (passport, national ID, etc.) in the customer upsert request. KYC attestation is provided in the Create Sale request body at checkout time.
⚠️ If review_required is true in the response, this customer cannot complete promotional holds until review is resolved. Contact your integration manager.
POST/api/v1/pos/ticket-holdsscope: tickets:hold

Create Hold

Sandbox proxy routePOST /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/json

Success 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 StatusError CodeDescription
409TICKET_SELECTION_UNAVAILABLEThe selected ticket(s) are no longer available. Refresh availability and allow the customer to reselect.
409INSUFFICIENT_AVAILABILITYNot enough tickets are available for the requested quantity.
409DUPLICATE_PRODUCT_HOLDAn active hold for this product already exists for this session.
409IDEMPOTENCY_CONFLICTThe Idempotency-Key was already used with a different request body.
422VALIDATION_ERRORRequest body failed validation (e.g. missing product_id, or both quantity and ticket_ids provided).
403POS_CONTEXT_REQUIREDA valid X-Vendora-POS-Code header is required for this operation.
404PRODUCT_NOT_FOUNDThe specified product does not exist or is not available.
422COUPON_NOT_APPLICABLEThe coupon does not apply to this product or customer.
422CUSTOMER_PENDING_REVIEWThe customer account is pending review and cannot use promotional holds.
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
⚠️ 409 TICKET_SELECTION_UNAVAILABLE means the selected inventory is no longer available due to a concurrent hold. Refresh availability and allow the customer to reselect.
⚠️ Do not promise inventory to the customer until a hold succeeds. Availability checks are snapshots only.
ℹ️ Send an Idempotency-Key header to safely retry this request on network failure without creating a duplicate hold. Use a new key for a genuinely new hold request.
ℹ️ Provide quantity (quantity mode) or ticket_ids (ticket-selection mode) — not both. Promotional holds require coupon_id and vendor_customer_id.
DELETE/api/v1/pos/ticket-holds/{reference}scope: tickets:hold

Release Hold

Sandbox proxy routeDELETE /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

ParameterTypeRequiredDescription
referencestringRequiredThe 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/json

Success 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 StatusError CodeDescription
404HOLD_NOT_FOUNDThe hold reference does not exist, was already released, or has already been completed as a sale.
409HOLD_EXPIREDThe hold existed but has already expired.
403POS_CONTEXT_REQUIREDA valid X-Vendora-POS-Code header is required for this operation.
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ Releasing an already-released, expired or completed hold may return HOLD_NOT_FOUND or HOLD_EXPIRED. Treat these as idempotent successes from the vendor perspective — the hold is no longer active in either case.
POST/api/v1/pos/salesscope: sales:write

Create Sale

Sandbox proxy routePOST /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/json

Success 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 StatusError CodeDescription
422PRICE_VALIDATION_FAILEDThe payment.amount does not match the hold-protected amount. The vendor must not modify the amount after obtaining a hold.
422HOLD_NOT_FOUNDOne or more hold references do not exist.
409HOLD_EXPIREDOne or more holds have expired before the sale was submitted.
422KYC_ATTESTATION_INVALIDKYC attestation data is missing or invalid.
422EXPIRED_DOCUMENTThe identity document has expired.
422INVALID_PAYMENTPayment result data is invalid or missing.
409IDEMPOTENCY_CONFLICTThe Idempotency-Key was reused with a different request body.
403POS_CONTEXT_REQUIREDA valid X-Vendora-POS-Code header is required for this operation.
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
⚠️ Payment Responsibility: The vendor processes customer payment through the vendor's own payment gateway before calling this endpoint. Vendora validates the submitted amount against the protected hold amount and records the supplied payment reference and result. Card numbers, CVV values and other sensitive card data must never be sent to Vendora. Revenue settlement and gateway processing are outside the current Vendora POS API scope.
ℹ️ Use the same Idempotency-Key as the original request to safely retry a sale on network failure without creating a duplicate order.
ℹ️ email_delivery_status in the response (e.g. QUEUED) reflects asynchronous email delivery state. This is independent of whether the sale was issued successfully. An issued sale's e-ticket PDF can be downloaded regardless of email delivery status.
ℹ️ An idempotent replay will include "idempotent_replay": true in the response envelope.
GET/api/v1/pos/transactionsscope: sales:read

List Transactions

Sandbox proxy routeGET /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

ParameterTypeRequiredDescription
statusstringNoFilter by transaction status. Values: PENDING, PAID, ERROR.
pageintegerNoPage number. Default: 1.
per_pageintegerNoItems 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/json

Success 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 StatusError CodeDescription
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ Customer email is masked in all transaction list responses. Full PII is never returned to the client.
ℹ️ email_status reflects asynchronous e-ticket email delivery state and is independent of order/ticket status.
GET/api/v1/pos/transactions/{order}scope: sales:read

Transaction Detail

Sandbox proxy routeGET /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

ParameterTypeRequiredDescription
orderstringRequiredThe 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/json

Success 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 StatusError CodeDescription
404TRANSACTION_NOT_FOUNDNo transaction with the given order reference exists for this vendor/store.
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ Customer name and email are masked in the response. This is by design to avoid exposing PII in vendor integration dashboards.
ℹ️ email_status reflects asynchronous e-ticket email delivery and is independent of whether the transaction is issued or whether its PDF can be downloaded.
GET/api/v1/pos/transactions/{order}/e-ticketscope: etickets:download

Download E-Ticket PDF

Sandbox proxy routeGET /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

ParameterTypeRequiredDescription
orderstringRequiredThe 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/pdf

Success 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 StatusError CodeDescription
404ETICKET_NOT_AVAILABLEThe e-ticket is not available for this transaction. The transaction may not be in an issued state.
404TRANSACTION_NOT_FOUNDNo transaction with the given order reference exists for this vendor/store.
401UNAUTHORIZEDInvalid or missing API key.
429RATE_LIMITEDToo many download requests.
ℹ️ E-ticket download availability depends on the transaction being successfully issued, NOT on email delivery status. A transaction in ISSUED state can have its PDF downloaded even if email_delivery_status is QUEUED or FAILED.
⚠️ The API key must be sent in the X-Vendora-Api-Key request header. The key must never appear in the PDF download URL, query string, logs or browser history.
ℹ️ This sandbox portal proxies this binary endpoint server-side. The API key never reaches the browser.
GET/api/v1/pos/ticketsscope: tickets:read

List Issued Tickets

Sandbox proxy routeGET /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

ParameterTypeRequiredDescription
pageintegerNoPage number. Default: 1.
per_pageintegerNoItems 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/json

Success 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 StatusError CodeDescription
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ e_ticket.status reflects asynchronous email delivery state. QUEUED means the email is pending, SENT means the email provider accepted the message, FAILED means delivery failed. This status does not affect PDF download availability.
GET/api/v1/pos/tickets/{ticket}scope: tickets:read

Ticket Detail

Sandbox proxy routeGET /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

ParameterTypeRequiredDescription
ticketintegerRequiredThe 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/json

Success 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 StatusError CodeDescription
404TICKET_NOT_FOUNDThe ticket does not exist or does not belong to this vendor's scope.
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ Attempting to retrieve a ticket that belongs to a different vendor will return TICKET_NOT_FOUND — not an authorisation error — to avoid leaking ticket existence information across vendor boundaries.
GET/api/v1/pos/transactions/{order}/smsscope: sms:read

SMS 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

ParameterTypeRequiredDescription
orderstringRequiredThe 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/json

Success 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 StatusError CodeDescription
404TRANSACTION_NOT_FOUNDNo transaction with the given order reference exists for this vendor/store.
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
ℹ️ SMS delivery is asynchronous. The status reported here reflects the latest state recorded internally and/or received from the SMS provider. Do not label an SMS as delivered unless the provider-confirmed status confirms delivery.
ℹ️ This sandbox portal does not currently proxy SMS status requests. Call this endpoint directly from your vendor backend.
POST/api/v1/pos/transactions/{order}/sms/retryscope: sms:retry

Retry 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

ParameterTypeRequiredDescription
orderstringRequiredThe 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/json

Success 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 StatusError CodeDescription
404TRANSACTION_NOT_FOUNDNo transaction with the given order reference exists for this vendor/store.
422SMS_RETRY_NOT_PERMITTEDThe transaction is not eligible for an SMS retry (e.g. not yet issued, or retry limit reached).
401INVALID_API_KEYThe API key is missing, invalid, or has been revoked.
401UNAUTHORIZEDAccess denied — check your API key and store/POS configuration.
403API_KEY_ABILITY_REQUIREDThe API key does not have the required scope for this operation.
403SCOPE_FAILUREStore or POS scope validation failed.
429RATE_LIMITEDToo many requests. Respect the Retry-After header.
⚠️ 202 SMS_RETRY_QUEUED means only that the retry was accepted into the queue. It does not mean the SMS provider has accepted or delivered the message. Query the SMS status endpoint after retrying to check the updated delivery state.
ℹ️ This sandbox portal does not currently proxy SMS retry requests. Call this endpoint directly from your vendor backend.