commerce

GET /v1/carts/{cartId}

Get a cart.

Alle commerce Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Dieser Endpunkt gibt in der Spezifikation keine spezifische Berechtigung an. Versehen Sie Ihren Schlüssel daher mit den minimal erforderlichen Rechten und prüfen Sie die Antwort, anstatt Annahmen zu treffen.

Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.

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

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

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

Parameter

NameTypErforderlichWas es ist
cartId (path)UuidJaThe cart's id.

Antwort

NameTypErforderlichWas es ist
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 | nullNeinFixed 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_lineobjectNein
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_atstringNein

Fehler, die dieser Endpunkt zurückgeben kann

401 · 403 · 404 · 429