commerce

GET /v1/carts/{cartId}

Get a cart.

כל נקודות הקצה מסוג commerce

אימות

שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

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

פרמטרים

שםסוגנדרשמה זה
cartId (path)UuidכןThe cart's id.

תשובה

שםסוגנדרשמה זה
idUuidכןUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidכןUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusstring<open, checking_out, converted, abandoned, expired>כן
currencyCurrencyCode | nullלאFixed 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_lineobjectלא
linesCartLine[]כן
subtotalMoneyAmountכןA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
discountMoneyAmountכןA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
totalMoneyAmountכןA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
created_atstringכן
updated_atstringלא

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 404 · 429