Connections

Get order policy

Shows how the orders of the Connection move stock.

GET
/v1/connections/{id}/order-policy

The order policy decides whether a sale in the marketplace moves local stock. Every Connection is born with it on, using the seller's default warehouse.

With inventory.enabled, each order line linked to a Variant with inventoryAuthority: marketapi moves stock: a paid order reserves, a shipped order writes off, and a cancelled order releases the reservation. Details in Stock.

  • warehouseId is the warehouse of new reservations (write-off and release use the warehouse where the reservation was made). null means the seller's default warehouse. A warehouse used by the policy cannot be archived.
  • enabledSince is read-only: orders placed before it never move stock, so the historical import does not reprocess the past.

To change it, use Update order policy. Part of the order lifecycle.

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

id*string

Identifier of the resource, as returned by the API.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

What the orders of this connection do to stock, and the instant from which they do it. Works in any connection status.

application/json
  1. response

What the orders of this connection do beyond being stored.

inventory*

How orders move the stock of linked variants.

curl -X GET "https://example.com/v1/connections/3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01/order-policy"
{  "inventory": {    "enabled": true,    "warehouseId": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",    "enabledSince": "2026-11-14T12:00:00.000Z"  }}