AkiliPay
Core concepts

Idempotency

Idempotency keys let you safely retry a write without risking a duplicate charge.

Send a unique Idempotency-Key header on every mutating request (payments and refunds). If the same key arrives again — for example after a timeout or a network retry — AkiliPay returns the original result instead of performing the operation a second time.

Set one unique key per operation
bash
-H "Idempotency-Key: ik_" + crypto.randomUUID()
  • Use a fresh key for each distinct operation, and reuse the same key only when retrying that exact request.
  • Reusing a key with a different payload returns 409 IDEMPOTENCY_CONFLICT.
  • Keys are scoped per merchant and are safe to generate client-side as random UUIDs.