Why order creation uses an Idempotency-Key, and how to retry without a second order.
A create can succeed on the server and still fail on the way back to you. If you send the create again with a new key, you place a second order. The idempotency key is how you say "this is the same attempt."
Use it on POST /v1/orders. Other reads do not take the header.
Idempotency-Keyheaderrequired
8 to 255 characters. No spaces or control characters. The key is stored for 24 hours with a hash of the raw body and the full response.
The same key and the same raw body replay the stored response and set Idempotent-Replayed: true. Treat that as success. You already have the order.
The same key and a different body returns 409idempotency_conflict. That protects you from accidentally reusing a key for a new applicant. Generate a new key when the body changes.
A second request while the first is still running returns 409request_in_progress. Wait, then send the same key and the same body again.
external_reference is a different rule. It is unique per API key and client_account_id, and it does not expire with the idempotency window. A duplicate returns 409duplicate_order with existing_order_id. Use a reference you can store, such as the id in your system of record.
Retries
Retry a create with the same Idempotency-Key and the same raw bytes. Change the key only when you mean a different request. Re-encoding JSON can change the bytes, so keep the body you already sent.
Guides · Idempotency · Why order creation uses an Idempotency-Key, and how to retry without a second order. · A create can succeed on the server and still fail on the way back to you. If you send the create again with a new key, you place a second order. The idempotency key is how you say "this is the same attempt." · Use it on POST /v1/orders. Other reads do not take the header. · Idempotency-Key header required · 8 to 255 characters. No spaces or control characters. The key is stored for 24 hours with a hash of the raw body and the full response. · Copy · curl -X POST https://api.backchecked.app/v1/orders \ -H "Authorization: Bearer $BACKCHECKED_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 6f1c2e9a-ref-1001" \ -d '{"external_reference":"REF-1001","client_account_id":"acct_06gqszcn41xbs00h48sm8nb6ew","package":"Standard Employment Package","applicant":{"first_name":"Jordan","last_name":"Hale","ssn":"123-45-6789","dob":"1992-04-18","addresses":[{"type":"current","line1":"100 Example Street","city":"Springfield","region":"IL","postal_code":"62701","country":"US"}]}}' · The same key and the same raw body replay the stored response and set Idempotent-Replayed: true. Treat that as success. You already have the order. · The same key and a different body returns 409 idempotency_conflict. That protects you from accidentally reusing a key for a new applicant. Generate a new key when the body changes. · A second request while the first is still running returns 409 request_in_progress. Wait, then send the same key and the same body again. · external_reference is a different rule. It is unique per API key and client_account_id, and it does not expire with the idempotency window. A duplicate returns 409 duplicate_order with existing_order_id. Use a reference you can store, such as the id in your system of record. · Retries · Retry a create with the same Idempotency-Key and the same raw bytes. Change the key only when you mean a different request. Re-encoding JSON can change the bytes, so keep the body you already sent.