commerce

GET /v1/carts/{cartId}

Get a cart.

Alle commerce-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.

Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

curl -X GET https://api.zinndigital.com/v1/carts/{cartId} \
  -H "Authorization: Bearer zdk_live_…"

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

Returns the cart with its lines re-priced from the live catalog and its pre-tax totals.

Parameters

NaamTypeVerplichtWat dit is
cartId (path)UuidJaThe cart's id.

Reactie

NaamTypeVerplichtWat dit is
idUuidJaUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidJaUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusstring<open, checking_out, converted, abandoned, expired>Ja
currencyCurrencyCode | nullNeeFixed when the cart is opened, from `CartCreate.currency` or the `X-Zinn-Currency` header, and then locked — every line must match it. Null only on a legacy cart created before…
product_lineobjectNee
linesCartLine[]Ja
subtotalMoneyAmountJaA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
discountMoneyAmountJaA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
totalMoneyAmountJaA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
created_atstringJa
updated_atstringNee

Fouten die dit eindpunt kan retourneren

401 · 403 · 404 · 429