Anchor to shippingPackageMakeDefaultshipping
shippingPackageMakeDefault
mutation
Requires Any of shipping
access scopes or user permission.
Set a shipping package as the default. The default shipping package is the one used to calculate shipping costs on checkout.
Anchor to Arguments
Arguments
- •ID!required
The ID of the shipping package to set as the default.
Was this section helpful?
Anchor to ShippingPackageMakeDefaultPayload returnsShippingPackageMakeDefaultPayload returns
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation shippingPackageMakeDefault($id: ID!) {
shippingPackageMakeDefault(id: $id) {
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100"
}
{
"id": "gid://shopify/<objectName>/10079785100"
}