younifyd
Menu

shippingPackageMakeDefault

Set a shipping package as the default. The default shipping package is the one used to calculate shipping costs on checkout.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the shippingPackageMakeDefault action (under Shipping).
  3. Fill in the fields below, then reference the result from later steps as {{shippingpackagemakedefault.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation ShippingPackageMakeDefault($id: ID!) {
  shippingPackageMakeDefault(id: $id) {
    userErrors {
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

The ID of the shipping package to set as the default.

json
{
  "id": "string"
}

Response

Read the result with {{shippingpackagemakedefault.response.data.data.shippingPackageMakeDefault}}. If the API returns errors, the step fails and they are at {{shippingpackagemakedefault.response.data.errors}}.

userErrorsarray<object>
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

shippingPackageMakeDefault — Shopify — Documentation