marketplace
POST /v1/marketplace/orders/{sale_id}/handover/{item_id}
Tick one handover item — from your side of the order.
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 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>> }'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
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.
Parameter
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
sale_id (path) | string | Ja | — |
item_id (path) | string | Ja | — |
Anfragekörper
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
action | string<transferred, confirm, flag> | Ja | `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 | Nein | The seller's evidence, the buyer's note, or — on `flag` — the required reason. |
Antwort
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
item | MarketplaceHandoverItem | Ja | — |
confirmed | integer | Ja | — |
required | integer | Ja | — |
order_accepted | boolean | Ja | 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 | Ja | — |
Fehler, die dieser Endpunkt zurückgeben kann
401 · 404 · 422