StoreLyne API docs 2026-11

Concepts

Idempotent requests

Retry POSTs safely with Idempotency-Key.

Every POST needs an Idempotency-Key header: any unique string of 1 to 255 visible characters, for example a UUID. If the network fails and you are not sure the request arrived, send it again with the same key.

curl -X POST https://api.storelyne.com/admin/2026-11/apps \
  -H "Authorization: Bearer pat_live_..." \
  -H "Idempotency-Key: 6f1c8a52-3f0e-4b8e-9d0a-1b2c3d4e5f60" \
  -H "Content-Type: application/json" \
  -d '{"name":"ERP sync","scopes":["read_products"]}'

Our JavaScript SDK adds a key to every POST and reuses it when it retries.