Idempotency
externalId is your own reference, such as an order ID, and it is how you get idempotency on POST /v1/payments and POST /v1/payouts.
Send ORD-1, and a retry that sends ORD-1 again is refused with 409 and conflict instead of opening a second payment or payout.
Rules#
| Rule | Detail |
|---|---|
| Compared exactly | Byte-exact and case-sensitive. ORD-1 and ord-1 are two different references, not one. |
| Scope of uniqueness | Unique per merchant among ACTIVE, PROCESSING and SUCCESSFUL only. Payments and payouts are counted separately. |
| Reusable | After a terminal non-successful state (EXPIRED, CANCELLED, FAILED) the reference is free again, so an expired link can be re-created. |
| Late credit | If a FAILED payment or payout is credited later, the replacement you created keeps the reference. See Late Credit. |
| Reserved forever | Once a payment or payout reaches SUCCESSFUL its reference is permanently taken, so the same order cannot be paid twice. |
| Optional | Omit it and no uniqueness applies, so any number of payments and payouts can have no externalId. |