Skip to main content

InventoryErrorDetails

Additional details about why the inventory operation failed.

type InventoryErrorDetails {
errorCode: InventoryErrorCode!
productId: String!
subProductId: String
requestedQuantity: Int
availableQuantity: Int
maxQuantityPerOrder: Int
allowedQuantities: [Int!]
}

Fields​

errorCode ● InventoryErrorCode!​

Error code describing why the operation failed.

productId ● String!​

The product that caused the failure.

subProductId ● String​

The sub-product (if applicable).

requestedQuantity ● Int​

Quantity requested.

availableQuantity ● Int​

Quantity available.

maxQuantityPerOrder ● Int​

The maximum quantity of the product that can be ordered per order

allowedQuantities ● [Int!]​

The allowed quantities of the product that can be ordered

Example​

{}