Skip to content
gist.link ↗

createShippingZone

Mutation Shop API — POST https://shop.api.gist.link/graphql

Create a shipping zone. ADMIN.

shop:mutation:createShippingZone

The calling IAM key must hold this permission (or a wildcard that covers it: shop:mutation:* or shop:*) and the access token must have been minted with audience=shop. See Permissions.

type Mutation {
createShippingZone(input: ShippingZoneInput!): ShippingZone!
}
Argument Type Required Description
input ShippingZoneInput! Yes —

ShippingZone! — see the Shop types reference.

Terminal window
curl https://shop.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreateShippingZone($input: ShippingZoneInput!) { createShippingZone(input: $input) { id uuid name created_at updated_at } }",
"variables": {
"input": {
"name": "Example",
"country_codes": [
"example"
]
}
}
}
JSON