marketplace
POST /v1/marketplace/orders/{sale_id}/handover/{item_id}
Tick one handover item — from your side of the order.
Упълномощаване
Изпратете API ключ като носител (bearer token). Тази точка за достъп не указва конкретно разрешение в спецификацията, затова дайте на ключа си най-малкото необходимо и проверете отговора, вместо да правите предположения.
Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.
Опитайте
Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.
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, за да можете да видите действителния отговор. Отворете този крайpoint в 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 | Да | — |
Грешки, които този крайpoint може да върне
401 · 404 · 422