Buyers can now order several pieces of one product (company listings, up to the stock). What that changes for integrations:
Orders#
- Short shipment on accept.
POST /v1/orders/{id}/accepttakesitems: [{id, quantity}]when you have fewer pieces than were ordered. The courier is booked for those; only once it returned an AWB is the line reduced and the buyer refunded the missing pieces' product price. A failed booking changes nothing. - Order lines carry
quantity(ships),quantity_orderedandquantity_short. refundedon every order andrefundsonGET /v1/orders/{id}: what went back to the buyer and why (short_shipped,buyer_returned, …).totalstays what was paid.- Packing: a line's pieces can be split across boxes — never more boxes than pieces (it used to be "never more boxes than lines").
Webhooks#
order.createdis sent once the order's lines exist and now includesitems. It used to arrive a moment before them, so a fastGETcould find no items.- New
order.items_changedafter a short shipment, with every line and the refund. - A sell-out sends
product.sold. When Biklo orders take the last pieces you getproduct.stock_changed(to0) thenproduct.sold— it used to sayproduct.archived.
Products#
- Restocking relists. A listing Biklo orders sold out comes back on sale when you send
stock above
0(PATCH /v1/products/{id}/stockor a full update). Nounarchiveneeded. unarchiveanswersproduct_reserved(409) only for a listing with no stock left while an order for it is in progress — never for a listing that still has stock.
