Skip to content
SkinsNodeDocumentation
Retries & idempotency
Docs/Get started

Retries & idempotency

Recover from timeouts and rate limits without duplicating operations.

Use the right operation identity

FlowIdentityRetry rule
Deposit quoteIdempotency-Key: UUIDReuse the original header and body.
Deposit offerIdempotency-Key + externalIdReuse both identities and the same body.
WithdrawalexternalIdReuse the original order ID; the existing accepted order is returned.

Polling and rate limits

  • Deposit quote POST returns 202 immediately; the finished quote arrives as the deposit.quote.updated callback. Use GET while it is pending or when the callback is missed.
  • Prefer signed callbacks to repeated deposit status requests.
  • Poll pending deposit quotes at most once every five seconds, with backoff.
  • Wallet and withdrawal lookup responses can be cached for up to 30 seconds.
  • Honor Retry-After on rate limits and use bounded exponential backoff.
  • For DEPOSIT_NOT_CONFIGURED, confirm account access with support instead of retrying.

Keep callback processing idempotent

Verify signatures before trusting the payload, persist incoming events, and reconcile uncertain state through the corresponding lookup endpoint. Keep deposit and withdrawal payload parsers separate.

Deposit callbacks ยท Withdrawal callbacks