POST might or might not have created
something, and you had to search to find out. v2 fixes that.
Send an Idempotency-Key on any unsafe request, and a retry with the same key replays
the original outcome instead of doing the work twice.
X-Idempotent-Replay: true, so you can tell a replay from a
fresh execution.
The rules
Keys are per credential, method and path, so the same key on two different endpoints does
not collide. Maximum 255 characters. Records are kept for 24 hours.
It is opt-in. No header means no protection and nothing stored — there is no implicit
retry safety.
What to use as a key
Something stable and derived from your side of the work — an order id, a job id, a UUID you generate before the first attempt and reuse for every retry of that same intent.Uploads are the exception
File uploads skip the mechanism: a multipart body differs byte-for-byte between attempts, so a replay could never match. The one endpoint this affects isreport-not-received, which
honours the key on its JSON form only.
If you need retry safety there, send the JSON call with your key and attach the photo
separately via POST /marketplace-listings/{id}/photos.
DELETE honours the key too, which is more than most APIs offer and strictly safer.