idempotency_key_reused
Status 422. This Idempotency-Key was already used for a different request.
What it means
This Idempotency-Key was already used for a different request. For 24 hours any different request with it is refused. After that, a points change's key still refuses another member or another amount, because the key is also the change's id in the ledger; the same member and amount is answered as the first change again, whatever the reason, and nothing new is made.
What to do
For a new change, use a new key. To retry the first request, send exactly the first request again.
Safe to send again?
Not as it is. Change what the answer points to, then send the request.
What else the answer carries
param: The field, header or query parameter at fault, when there is exactly one.
Where you can meet it
POST /stores/{store_key}/programme: Change the earn rate, the bonuses, what a point is worth, referrals, spending any amount, the time zone, the ways to earn, or when points expirePOST /stores/{store_key}/programme/rewards: Add a reward shoppers can spend points onPOST /stores/{store_key}/programme/rewards/{reward_id}: Change a reward's cost, value, minimum order or labelPOST /stores/{store_key}/programme/rewards/{reward_id}/remove: Remove a rewardPOST /stores/{store_key}/programme/offers: Add an offer: a campaign, a product offer or a channel offerPOST /stores/{store_key}/programme/offers/{offer_id}: Change an offerPOST /stores/{store_key}/programme/offers/{offer_id}/remove: Remove an offerPOST /stores/{store_key}/design: Change the design: colours, words, the panel and product-line look, the account page layout, the terms linkPOST /members/{member_key}/adjustments: Add points to a member's balance, or take them awayPOST /members/{member_key}/codes/void: Cancel a reward code and give the member back its points
Every code, and the shape of an error answer: Errors.