Choose the location a shipment order ships to

Changed on

Stores the buyer location a supplier's shipment order ships to, or clears it with null, and returns the order id. Refused with CONFLICT and the refusal notShipmentOrder for an order of another type, orderShipped once the order shipped, requestedOrderBuyerFixed for an order a buyer's request created, which ships only to that buyer, and buyerLocationNotEligible for a location orders.buyerLocations does not list. Refused with shiftClosed once the order's shift has closed (FORBIDDEN; BAD_REQUEST when creating under it) and with FORBIDDEN notShiftParticipant for a caller not taking part in the shift. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

post/api/public/v1/orders/setBuyerLocation

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
orderId, string required
buyerLocationId, string nullable required

Response

OK

object required
id, string required

Changes