Create ticket (Triple Tom)
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-Id
Public partner id. Required (AND). Not a secret.
X-Lucky-Tom-Timestamp
Unix ms. Pre-request Script overwrites on Send.
X-Lucky-Tom-Signature
HMAC-SHA256 hex. Pre-request Script overwrites on Send.
Idempotency-Key
Required on this mutation. Not in the HMAC canonical string.
Request
This endpoint expects an object.
number
quantity
raffleId
productCode
Errors
401
Unauthorized Error
422
Unprocessable Entity Error
