Skip to navigation

Commit top-up

View as Markdown

Credits the portal wallet and debits partner float. Re-validates the same checks as validate. Requires Idempotency-Key. Same body as validate.

201: topupId, status: completed, createdAt.

Timeouts: retry the same Idempotency-Key and body. Same key + different body → 409 idempotency-conflict.

Authentication (AND, not OR)

Required together: Partner-Id + Bearer client_secret + Timestamp + Signature (AND, not OR). See the Authentication folder.

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 time in milliseconds. Required (AND). Collection Pre-request Script overwrites this on Send.

X-Lucky-Tom-SignaturestringOptional

HMAC-SHA256 hex. Required (AND). Overwritten on Send.

Idempotency-KeystringOptional
Required on this mutation. Not hashed into the HMAC canonical string. Retry timeouts with the same key and body.

Request

This endpoint expects an object.
amountstringRequired
userRefstringRequired
currencystringRequired

Errors

401
Unauthorized Error
422
Unprocessable Entity Error