pos-wait-for-inventory
Method: POST
Path: /pos/shipping/shipments/{order_number}/wait-for-inventory
Tags: Shipments
Summary
Wait for inventory
Pos SDK Usage
SDK Method: pos.waitForInventory()
Example:
typescript
const { data, error } = await pos.waitForInventory({"order_number": "ORD-001"}, { revised_shipping_date: "2026-12-01" });TypeScript Definition
typescript
"pos-wait-for-inventory": {
parameters: {
query?: never;
header?: never;
path: {
/** @description Order Number */
order_number: string;
};
cookie?: never;
};
requestBody: {
content: {
"application/json": {
/** Format: date-time */
revised_shipping_date: string;
/** @enum {unknown} */
shipping_option?: "auto" | "manual";
notify_customer?: boolean;
/** @description Required when the order has more than one unscheduled or pending shipment; without it such a request returns 400. */
reference_number?: string;
};
};
};
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message: string;
success: boolean;
};
};
};
400: components["responses"]["AdminBadRequest"];
401: components["responses"]["AdminUnauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["AdminNotFound"];
500: components["responses"]["AdminInternalServerError"];
504: components["responses"]["GatewayTimeout"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["responses"]["AdminBadRequest"] | AdminBadRequest |
components["responses"]["AdminUnauthorized"] | AdminUnauthorized |
components["responses"]["Forbidden"] | Forbidden |
components["responses"]["AdminNotFound"] | AdminNotFound |
components["responses"]["AdminInternalServerError"] | AdminInternalServerError |
components["responses"]["GatewayTimeout"] | GatewayTimeout |
Parameters
- order_number (path): Order Number
Request Body
Content Types: application/json
Responses
200
OK
400
401
403
Access denied. token-required requires an authenticated session; permission-denied means the caller cannot access this resource. On POS, session-expired requires signing in again.
404
500
504
The request timed out.
OpenAPI Definition
json
{
"operationId": "pos-wait-for-inventory",
"summary": "Wait for inventory",
"parameters": [
{
"name": "order_number",
"in": "path",
"description": "Order Number",
"required": true,
"schema": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"pattern": "^[A-Za-z0-9_-]{1,128}$"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"revised_shipping_date": {
"type": "string",
"format": "date-time"
},
"shipping_option": {
"enum": [
"auto",
"manual"
]
},
"notify_customer": {
"type": "boolean"
},
"reference_number": {
"description": "Required when the order has more than one unscheduled or pending shipment; without it such a request returns 400.",
"type": "string",
"maxLength": 128,
"minLength": 1
}
},
"required": [
"revised_shipping_date"
]
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
},
"required": [
"message",
"success"
]
}
}
}
},
"400": {
"$ref": "#/components/responses/AdminBadRequest"
},
"401": {
"$ref": "#/components/responses/AdminUnauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/AdminNotFound"
},
"500": {
"$ref": "#/components/responses/AdminInternalServerError"
},
"504": {
"$ref": "#/components/responses/GatewayTimeout"
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/operations/pos-wait-for-inventory"
},
"security": [
{
"Authorization": []
}
],
"tags": [
"Shipments"
],
"x-speakeasy-group": "pos"
}Auto-generated from OpenAPI spec and TypeScript definitions