Skip to main content

productDeliveryFlags

Requires permission products:product:read.

Returns a product's delivery flags: whether it ships in its own packaging and whether it is fragile. Requires permission to read products.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query ProductDeliveryFlags($productId: ID!) {
productDeliveryFlags(productId: $productId) {
categoryOwnPackaging
effectiveOwnPackaging
fragile
ownPackaging
productId
}
}

Variables:

{
"productId": "id"
}

Response:

{
"data": {
"productDeliveryFlags": {
"categoryOwnPackaging": true,
"effectiveOwnPackaging": true,
"fragile": true,
"ownPackaging": true,
"productId": "id"
}
}
}
productDeliveryFlags(
productId: ID!
): ProductDeliveryFlags!

Arguments​

productDeliveryFlags.productId ● ID! non-null scalar​

The ID of the product.

Type​

ProductDeliveryFlags object​

A product's delivery flags (Product.metadata.deliveryFlags), for every variant: own packaging and fragile. Null = not set.