Skip to main content
Send an Idempotency-Key header with a write. If you retry with the same key and the same body, you get the original response back and the work doesn’t run twice. This stops a retried finalize from spending a second invoice number.

Where it’s needed

What happens on a retry

Rules

  • Create one key per operation, before your retry loop. A UUID v4 works well.
  • Keys can be up to 255 characters.
  • Keys are kept for 24 hours and shared across all your API keys.