Retrieve tax rates and their applicable percentages.
query GetTaxRate($id: ID) {
TaxRate(id: $id) {
id
label
rate
active
}
}
query TaxRates(
$orderBy: [QueryTaxRatesOrderByOrderByClause!],
$where: QueryTaxRatesWhereWhereConditions,
$search: String
) {
TaxRates(
orderBy: $orderBy
where: $where
search: $search
) {
id
label
rate
active
}
}
{
"where": {
"AND": [
{ "column": "ACTIVE", "operator": "EQ", "value": true }
]
},
"orderBy": [
{ "column": "LABEL", "order": "ASC" }
],
"search": "VAT or label"
}
| Field | Type | Description |
|---|
id | Int | Unique identifier of the tax rate. |
label | String | Label/name of the tax rate. |
rate | Float | Tax rate percentage or decimal. |
active | Boolean | 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
query SortTaxRates(
$where: QueryTaxRatesWhereWhereConditions
) {
TaxRates(
where: $where
orderBy: [{ column: RATE, order: DESC }]
) {
id
label
rate
active
}
}
{
"data": {
"TaxRates": [
{
"id": 100001,
"label": "Standard VAT",
"rate": 20.0,
"active": true
},
{
"id": 100002,
"label": "Reduced VAT",
"rate": 5.5,
"active": true
}
]
}
}