marketplace
POST /v1/marketplace/orders/{sale_id}/handover/{item_id}
Tick one handover item — from your side of the order.
אימות
שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X POST https://api.zinndigital.com/v1/marketplace/orders/{sale_id}/handover/{item_id} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "action": <string<transferred, confirm, flag>> }'מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
docs/83 §4.4. Each item carries **two** confirmations: the seller marks it transferred, and the buyer marks it received. Funds release only when every required item is buyer-confirmed — a seller-only tick is not delivery. Which action a caller may take is decided server-side by which side of the order they are on. A seller marking an item received on the buyer's behalf would be a seller releasing their own money. A buyer can flag a single item as missing or wrong **without rejecting the whole sale**; that flag is what opens a dispute, with the checklist and the order chat as evidence. `order_accepted` is true when this tick was the last required one and the money has been released.
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
sale_id (path) | string | כן | — |
item_id (path) | string | כן | — |
גוף הבקשה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
action | string<transferred, confirm, flag> | כן | `transferred` is the seller's only action; `confirm` and `flag` are the buyer's. Enforced server-side — a seller marking an item received on the buyer's behalf would be a seller… |
note | string | לא | The seller's evidence, the buyer's note, or — on `flag` — the required reason. |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
item | MarketplaceHandoverItem | כן | — |
confirmed | integer | כן | — |
required | integer | כן | — |
order_accepted | boolean | כן | True when this tick was the last required one and the money has been released. Reported because the buyer's last tick is the most consequential moment of the order and a screen… |
state | string | כן | — |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 404 · 422