Connections
Get order policy
Shows how the Connection's orders move stock.
GET/v1/connections/{id}/order-policy
Coming soon
This route is not in the API yet. This page shows what it will do. Fields, examples and the playground arrive when it ships.
The order policy decides whether a sale in the marketplace moves local stock. With it on (inventory.enabled), for a line linked to a Variant that marketapi controls:
- paid order: reserves stock;
- shipped order: writes stock off;
- cancelled order: releases the reservation.
warehouseId is the warehouse used; null means the seller's default warehouse. enabledSince is read-only: orders placed before that date never move stock, so the historical import does not reprocess the past. To change it, use Update order policy.
Part of the order lifecycle.