Skip to main content

Idempotency Reference

See the Idempotency guide for a detailed explanation. This page is a quick reference.

Usage​

Pass a unique Idempotency-Key header on any POST request:

curl https://api.meridian.dev/v1/payment_intents \
-u sk_test_4eC39HqL...: \
-H "Idempotency-Key: a84f2b3e-91d0-4c7a-b1d5-82a3e9f1b4c8" \
-d amount=2000 \
-d currency=usd

Key properties​

PropertyValue
Header nameIdempotency-Key
Recommended formatUUID v4
Max length255 characters
Cache duration24 hours
Applies toPOST requests only

Error response for key collision​

{
"error": {
"type": "idempotency_error",
"message": "Keys must be unique — this key was already used with different request parameters."
}
}