productVariantsMissingShippingData
Requires permission products:product:read.
Lists active variants that have no weight or no size of their own, one page at a time. 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:
- GraphQL
- cURL
query ProductVariantsMissingShippingData {
productVariantsMissingShippingData {
skip
take
total
items {
categoryName
productName
variantName
missingSize
missingWeight
productId
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query ProductVariantsMissingShippingData {\n productVariantsMissingShippingData {\n skip\n take\n total\n items {\n categoryName\n productName\n variantName\n missingSize\n missingWeight\n productId\n }\n }\n}"
}
EOF
Response:
{
"data": {
"productVariantsMissingShippingData": {
"skip": 0,
"take": 0,
"total": 0,
"items": [
{
"categoryName": "string",
"productName": "string",
"variantName": "string",
"missingSize": true,
"missingWeight": true,
"productId": "id"
}
]
}
}
}
productVariantsMissingShippingData(
search: String
skip: Int
take: Int
): ProductVariantShippingDataGapPage!
Arguments
productVariantsMissingShippingData.search ● String scalar
Only return variants matching this text. Only the first 100 characters are used.
productVariantsMissingShippingData.skip ● Int scalar
How many variants to skip. Defaults to 0.
productVariantsMissingShippingData.take ● Int scalar
How many variants to return, from 1 to 200. Defaults to 50.
Type
ProductVariantShippingDataGapPage object
One page of variants with no weight or size.