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#

RuleDetail
Compared exactlyByte-exact and case-sensitive. ORD-1 and ord-1 are two different references, not one.
Scope of uniquenessUnique per merchant among ACTIVE, PROCESSING and SUCCESSFUL only. Payments and payouts are counted separately.
ReusableAfter a terminal non-successful state (EXPIRED, CANCELLED, FAILED) the reference is free again, so an expired link can be re-created.
Late creditIf a FAILED payment or payout is credited later, the replacement you created keeps the reference. See Late Credit.
Reserved foreverOnce a payment or payout reaches SUCCESSFUL its reference is permanently taken, so the same order cannot be paid twice.
OptionalOmit it and no uniqueness applies, so any number of payments and payouts can have no externalId.