cx_pk_live_<slug>_...), provided
by the store manager. It identifies the store from any client (mobile app, script,
or a frontend that doesn’t run on the store’s domain).
1. Read the catalog
If your client runs on the store’s domain (e.g.
https://mystore.com), calls
are same-origin to https://mystore.com/api/v1 and the key isn’t needed:
the infrastructure recognizes the store from the domain.2. The response envelope
Every response uses the same wrapper:data— the content (nullon error).meta— present on paginated lists.error_code— a stable machine-readable code (e.g.auth.invalid_credentials): switch on this to show localized messages, not onerror(which is for debugging only).
3. What to explore next
Authentication
Publishable key, customer login, staff tokens.
Concepts
Store, envelope, errors, pagination, i18n, images.
Cart & checkout
From cart to paid order.
API Reference
Complete reference, always in sync with production.