create-order.http
202 ACCEPTED
01POST /v1/orders HTTP/1.1
02Host: sandbox.nexus-api.example
03Authorization: Bearer <sandbox_token>
04Idempotency-Key: order-demo-042
05Content-Type: application/json
06
07{"external_order_id":"demo-order-042","items":[
08 {"sku":"demo-part-07","quantity":2}
09]}
10
11HTTP/1.1 202 Accepted
12{"order_id":"ord_demo_042","status":"accepted"}
Retrying with the same key and body returns the original intake response.
order-confirmed.http
200 OK
01POST /webhooks/nexus HTTP/1.1
02Host: partner.demo.example
03X-Nexus-Timestamp: 1798761600
04X-Nexus-Signature: <signature>
05
06{"event_id":"evt_demo_019","type":"order.confirmed",
07 "data":{"order_id":"ord_demo_042",
08 "status":"confirmed","version":2}}
09
11HTTP/1.1 200 OK
The receiver stores event_id and processes each event only once.