How it works
Include anIdempotency-Key header with a unique value in your write
requests. If you send the same request with the same idempotency key, Bitwage
returns the original response without reprocessing the operation.
When to use it
Idempotency keys are recommended for all write operations and required for payroll creation (POST /api/company/payroll/create) when using API key
authentication.
Endpoints that support idempotency:
POST /api/companiesPOST /api/companies/{company_id}/uboPOST /api/companies/{company_id}/ubo/kycPOST /api/companies/{company_id}/documentsPOST /api/companies/{company_id}/kybPOST /api/company/{company_id}/recipients/createPOST /api/company/{company_id}/recipients/{recipient_id}/distributionPOST /api/company/payroll/create
Key scoping
Idempotency keys are scoped to your partner account and the specific endpoint. The same key used on different endpoints will not conflict.Best practices
- Use a UUID or similar unique identifier for each key.
- Store the idempotency key alongside the request in your system so you can retry with the same key if needed.
- Do not reuse keys across different request payloads for the same endpoint.