View as Markdown

Idempotency

Networks fail. To retry a POST without doing it twice, send an Idempotency-Key header — any unique string up to 255 characters (a UUID is ideal):

curl https://api.kibanda.africa/v1/products \
  -H "Authorization: Bearer $KIBANDA_KEY" \
  -H "Idempotency-Key: 5f0c2c1e-9a8e-4c55-8f0f-3d2c6f1b2a10" \
  -d '{"name": "Milk 500ml", "price": 6500}'

Tip: derive the key from your own record — e.g. odoo-sync-SKU-1001-2026-10-23T08:00 — so a crashed job that restarts sends the same key.