Returned when some of the Line Items are out of stock at the time of placing an Order.

The error is returned as a failed response to:

- [Create Order from Cart](ctp:api:endpoint:/{projectKey}/orders:POST), [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/orders:POST), and [Create Order by Import](/../api/projects/me-orders) requests on Orders.
- [Create Order from Cart](ctp:api:endpoint:/{projectKey}/me/orders:POST) and [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/me/orders:POST) requests on My Orders.
interface OutOfStockError {
    code: "OutOfStock";
    lineItems: string[];
    message: string;
    skus: string[];
    [key: string]: any;
}

Indexable

[key: string]: any

Properties

code: "OutOfStock"
lineItems: string[]

Unique identifiers of the Line Items that are out of stock.

message: string

"Some line items are out of stock at the time of placing the order: $itemSku."

skus: string[]

SKUs of the Line Items that are out of stock.

Generated using TypeDoc