Retrieve tax rates and their applicable percentages.
GraphQL
query GetTaxRate($id: ID) {
TaxRate(id: $id) {
id
label
rate
active
}
}
GraphQL
query TaxRates(
$orderBy: [QueryTaxRatesOrderByOrderByClause!],
$where: QueryTaxRatesWhereWhereConditions,
$search: String
) {
TaxRates(
orderBy: $orderBy
where: $where
search: $search
) {
id
label
rate
active
}
}
JSON
{
"where": {
"AND": [
{ "column": "ACTIVE", "operator": "EQ", "value": true }
]
},
"orderBy": [
{ "column": "LABEL", "order": "ASC" }
],
"search": "VAT or label"
}
Field Type Description idInt Unique identifier of the tax rate. labelString Label/name of the tax rate. rateFloat Tax rate percentage or decimal. activeBoolean Whether the tax is active. integrations[Integration] Linked external platforms.
You can create filters based on following fields:
id - Int Example: { "column": "ID", "operator": "EQ", "value": 10001 }
label - String Example: { "column": "LABEL", "operator": "LIKE", "value": "%VAT%" }
rate - Float Example: { "column": "RATE", "operator": "GT", "value": 20 }
active - Boolean Example: { "column": "ACTIVE", "operator": "EQ", "value": true }
You can sort data based on following fields: id, label, rate, active
GraphQL
query SortTaxRates(
$where: QueryTaxRatesWhereWhereConditions
) {
TaxRates(
where: $where
orderBy: [{ column: RATE, order: DESC }]
) {
id
label
rate
active
}
}
JSON
{
"data": {
"TaxRates": [
{
"id": 100001,
"label": "Standard VAT",
"rate": 20.0,
"active": true
},
{
"id": 100002,
"label": "Reduced VAT",
"rate": 5.5,
"active": true
}
]
}
}