Skip to content
gist.link ↗

createTaxRate

Mutation Settings API — POST https://settings.api.gist.link/graphql

Create an invoice/sales tax rate. ROLE_ADMIN.

settings:mutation:createTaxRate

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

type Mutation {
createTaxRate(input: TaxRateInput!): TaxRate!
}
Argument Type Required Description
input TaxRateInput! Yes —

TaxRate! — see the Settings types reference.

Terminal window
curl https://settings.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreateTaxRate($input: TaxRateInput!) { createTaxRate(input: $input) { id uuid name created_at updated_at } }",
"variables": {
"input": {
"name": "Example",
"rate_bps": 10,
"country": "example"
}
}
}
JSON