---
title: "Choose the location a shipment order ships to"
method: POST
path: "/api/public/v1/orders/setBuyerLocation"
---

# Choose the location a shipment order ships to

`POST /api/public/v1/orders/setBuyerLocation`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/public/v1/orders/setBuyerLocation`
- Auth: none declared

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.

## Request body

- object
  - `orderId` string, required
  - `buyerLocationId` string, nullable, required

## Response `200`

OK

- object
  - `id` string, required

## Changes

- **2026-11-19** `bba1dbcf014e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/orders/setBuyerLocation/post.md)

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
