Skip to navigation

Create ticket (Triple Tom)

View as Markdown

Unnamed sale. Requires Idempotency-Key. p95 target < 3 s.

Body: productCode: triple_tom, raffleId (open raffle), quantity ≥ 1, and exactly one of number (three digits 000–999) or random: true.

Cap is unified with portal and casino. Overflow → 422 cap-exceeded. After sales close → 422 sales-closed.

201: ticketId, publicCode (print this), optional qrPayload, amount, channel: pos.

Authentication (AND, not OR)

Partner-Id + Bearer client_secret + Timestamp + Signature. See Authentication.

401 unauthorized · 422 hmac-invalid · 422 hmac-skew · 403 country-mismatch.

Headers

X-Lucky-Tom-Partner-IdstringOptional

Public partner id. Required (AND). Not a secret.

X-Lucky-Tom-TimestampstringOptional

Unix ms. Pre-request Script overwrites on Send.

X-Lucky-Tom-SignaturestringOptional

HMAC-SHA256 hex. Pre-request Script overwrites on Send.

Idempotency-KeystringOptional
Required on this mutation. Not in the HMAC canonical string.

Request

This endpoint expects an object.
numberstringRequired
quantityintegerRequired
raffleIdstringRequiredformat: "uuid"
productCodestringRequired

Errors

401
Unauthorized Error
422
Unprocessable Entity Error