commerce

GET /v1/carts/{cartId}

Get a cart.

Lahat ng commerce endpoint

Pagpapatotoo

Magpadala ng API key bilang bearer token. Ang endpoint na ito ay hindi naglatag ng tiyak na pahintulot sa pagtutukoy, kaya ibigay sa iyong key ang pinakamababang kailangan nito at suriin ang tugon sa halip na umasa.

Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

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

Mga Parameter

PangalanUriKailanganAno ito
cartId (path)UuidOoThe cart's id.

Tugon

PangalanUriKailanganAno ito
idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusstring<open, checking_out, converted, abandoned, expired>Oo
currencyCurrencyCode | nullHindiFixed 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_lineobjectHindi
linesCartLine[]Oo
subtotalMoneyAmountOoA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
discountMoneyAmountOoA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
totalMoneyAmountOoA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
created_atstringOo
updated_atstringHindi

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 429