HTTP status 409. An API key request can get this code.
This practice already has an order with the same externalOrderId in this mode.
Recovery
Read the existing order using the ord_ ID in data.orderId. No new order was created. Retry an uncertain request with its original Idempotency-Key to replay its result. A failed or cancelled order keeps its externalOrderId. To replace that order, send the new order with a new externalOrderId and a new Idempotency-Key.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.