Skip to navigation

Create ticket (Pega Tom)

View as Markdown

Requires Idempotency-Key. Body: productCode: pega_tom, inventoryId (lot with remaining cards). Optional delivery.whatsapp / delivery.email if contracted.

Empty lot → 422 inventory-exhausted. No silent switch to another lot.

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.
inventoryIdstringRequiredformat: "uuid"
productCodestringRequired

Errors

401
Unauthorized Error
422
Unprocessable Entity Error