taxRate
Requires an authenticated session.
Returns one tax rate. Fails if it does not exist.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query TaxRate($id: ID!) {
taxRate(id: $id) {
id
code
postalCode
name
groupName
type
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query TaxRate($id: ID!) {\n taxRate(id: $id) {\n id\n code\n postalCode\n name\n groupName\n type\n }\n}",
"variables": {
"id": "id"
}
}
EOF
Variables:
{
"id": "id"
}
Response:
{
"data": {
"taxRate": {
"id": "id",
"code": "string",
"postalCode": "string",
"name": "string",
"groupName": "string",
"type": "string"
}
}
}
taxRate(
id: ID!
): TaxRate!
Arguments
taxRate.id ● ID! non-null scalar
The ID of the tax rate.
Type
TaxRate object
A tax rate.