marketplace

POST /v1/marketplace/orders/{sale_id}/handover/{item_id}

Tick one handover item — from your side of the order.

Todos os endpoints de marketplace

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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>> }'

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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.

Parâmetros

NomeTipoObrigatórioO que é
sale_id (path)stringSim
item_id (path)stringSim

Corpo da requisição

NomeTipoObrigatórioO que é
actionstring<transferred, confirm, flag>Sim`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…
notestringNãoThe seller's evidence, the buyer's note, or — on `flag` — the required reason.

Resposta

NomeTipoObrigatórioO que é
itemMarketplaceHandoverItemSim
confirmedintegerSim
requiredintegerSim
order_acceptedbooleanSimTrue 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…
statestringSim

Erros que este endpoint pode retornar

401 · 404 · 422