Template Docs Commerce APIs Webhooks
Get Started
Get Started

Idempotency-Key header

Certain requests should only occur once in an event of a client, server, or network error. For example, adjusting the stock quantity for an item. That's why some Commerce API endpoints require an Idempotency-Key header.

By using the same Idempotency-Key and parameters, a request may be retried multiple times though it will only be executed on the first successful attempt. Every subsequent request receives the same response.

Specifications

  • A unique string consisting of up to 64 alphanumeric characters, dashes, and underscores; UUIDs are valid and common.
  • Keys are recycled after an unspecified interval, however, they're guaranteed effective for 48 hours from the time they're used successfully.

Endpoints

The Commerce API endpoints listed below require an Idempotency-Key header.

Inventory API

Orders API