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
1mutation shippingPackageMakeDefault($id: ID!) {2 shippingPackageMakeDefault(id: $id) {3 userErrors {4 field5 message6 }7 }8}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100"3}
{
"id": "gid://shopify/<objectName>/10079785100"
}