Zum Hauptinhalt springen
Anmelden
Apus Platform
Inhaltsverzeichnis

Idempotency

Write requests (POST) accept an Idempotency-Key header. Reuse the same key to safely retry a request without creating duplicates — the API returns the original result for a repeated key within 24 hours.

Use a unique key per logical operation (for example, a UUID per sales order you push).

curl -X POST https://api.apusplatform.com/v1/sales-orders \
  -H "Authorization: Bearer $APUS_TOKEN" \
  -H "Idempotency-Key: b1e5c0d2-9f3a-4c11-8a77-2f0e1d4b6c88" \
  -H "Content-Type: application/json" \
  -d '{ "customer_id": "prt_120", "lines": [ /* ... */ ] }'
noindex