Skip to content
Guides
API reference
stablesettings:read

Preview routing

Shows which locations would fulfill an order and how it would split, without committing anything.

POST/v1/fulfillment/routing/preview

Shows which locations would fulfill an order and how it would split, without committing anything.

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/fulfillment/routing/preview" \  -H "Content-Type: application/json" \  -d '{}'
{  "routingMode": "defaultLocation",  "splitFulfillmentEnabled": true,  "canFulfill": true,  "assignments": [    {      "locationId": "string",      "name": "string",      "isDefault": true,      "items": [        {          "variantId": "string",          "quantity": 0        }      ]    }  ],  "unassignedItems": [    {      "variantId": "string",      "quantity": 0    }  ]}