Skip to content
gist.link ↗

saveCustomRateTable

Mutation Shipping API — POST https://shipping.api.gist.link/graphql

The saveCustomRateTable mutation on the Shipping API.

shipping:mutation:saveCustomRateTable

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

type Mutation {
saveCustomRateTable(input: SaveCustomRateTableInput!): CustomRateTable!
}
Argument Type Required Description
input SaveCustomRateTableInput! Yes —

CustomRateTable! — see the Shipping types reference.

Terminal window
curl https://shipping.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SaveCustomRateTable($input: SaveCustomRateTableInput!) { saveCustomRateTable(input: $input) { uuid name countries } }",
"variables": {
"input": {
"name": "Example",
"countries": [
"example"
],
"rates": [
{
"name": "Example",
"price": {
"amount": 10,
"currency": "example"
}
}
]
}
}
}
JSON