Partner API v1.0.0
For licensed distributors (banks, wallets, retailers) and payment partners. Tickets bought through a partner are bound to the customer account that funded them, and prizes are paid back to that account automatically.
Basics
- Base URL:
/api/partner/v1. Authenticate withAuthorization: Bearer keyId.secret; each credential carries scopes. - Money is in integer minor units (cents) with an ISO currency code.
- Send an
Idempotency-Keyheader on every order. Retrying with the same key and body returns the same order; a different body is rejected. - Flow: register the customer’s verified account → quote an order → show the total and capture consent → confirm → poll the order or wait for the
ticket.issuedwebhook. - Webhooks are signed with HMAC-SHA256 (
x-lotto263-signature: v1=…overtimestamp.body). Missed events can be replayed from/events?after=.
Endpoints
| Method | Path | Purpose | Scope |
|---|---|---|---|
| GET | /catalog | Open draws and pools with rules | catalog:read |
| GET | /draws/{id} | One draw or pool | catalog:read |
| GET | /results | Certified results | results:read |
| POST | /accounts | Register a verified customer funding account (tokenised) | accounts:write |
| POST | /orders | Quote an order (validates lines, generates Quick Picks server-side) | orders:write |
| GET | /orders/{id} | Order status (by id or reference) | orders:read |
| POST | /orders/{id}/confirm | Confirm the quoted total with customer consent; collection starts from the bound account | orders:write |
| GET | /tickets/{id} | Ticket detail, awards and payouts | orders:read |
| GET | /payouts | Automatic payouts to your customers | payouts:read |
| GET | /events | Event feed (replay of webhooks) after a sequence cursor | events:read |
| GET | /payments/{reference} | Payment partner: status of a collection or refund instruction | payments:read |
| GET | /reconciliation | Daily reconciliation CSV (Africa/Harare business date) | orders:read or payments:read |