Authentification
Cet point de terminaison est public. Il ne nécessite aucun identifiant ni aucune organisation : c'est ce que notre propre site marketing et nos moteurs de réponse IA lisent.
Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.
Essayer
Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.
curl -X GET https://api.zinndigital.com/v1/public/cart/{token}Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API
Détails
Returns the cart with every item re-priced from the live catalog and its pre-tax totals. Tax is not computed here — it depends on the billing country, which a guest cart does not have until checkout. A token that is unknown, malformed, expired or already checked out all return the same `404`.
Paramètres
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
token (path) | string | Oui | The anonymous cart's opaque bearer token (`zgc_…`), as returned by `createPublicCart`. **It is a credential** — anyone holding it can read and modify the cart — and it travels i… |
Réponse
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
id | Uuid | Oui | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
token | string | Non | The bearer token. Returned **only** from `createPublicCart` — it is absent on every subsequent read, because only its digest is stored. |
status | string<open, converted, expired> | Oui | — |
currency | CurrencyCode | Oui | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
product_line | string | Non | — |
expires_at | string | Oui | After this the cart is gone — reads 404 whether or not it has been purged. |
items | PublicCartItem[] | Oui | — |
totals | PublicCartTotals | Oui | Pre-tax totals. Tax appears on the order, once a billing country exists. |
Erreurs que cet point de terminaison peut renvoyer
404 · 422 · 429