x-idempotency-key) to ensure that a particular operation is only performed once for 24 hours since the original request. Create Direct Payment (POST /directPayments) keeps the key for 7 days. Zeal reserves the key when the request is accepted. A duplicate that arrives while the first request is still running receives a 409. After the first request finishes, the same key and body return the original response, including an error response. Reuse a key only to retry the same request. To replace a direct payment that was returned or canceled, use a new key. That request returns 409 with error code 171. The same key with a different body also returns a 409. This is useful for operations such as payments or submissions.
This applies to both Test and Production modes.