For AI agents: visit https://erplain.readme.io/v2.0/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
Create a tax rate
mutation CreateTaxRate($input: TaxRateInput!) {
CreateTaxRate(input: $input) {
id
label
rate
active
}
}
{
"input": {
"label": "Reduced VAT",
"rate": 5.5
}
}
{
"data": {
"CreateTaxRate": {
"id": 100120,
"label": "Reduced VAT",
"rate": 5.5,
"active": true
}
}
}
Update a tax rate
| id - ID |
|---|
| Id of the tax rate |
mutation UpdateTaxRate($id: ID!, $input: TaxRateInput!) {
UpdateTaxRate(id: $id, input: $input) {
id
label
rate
active
}
}
{
"id": 100120,
"input": {
"rate": 6.0
}
}
{
"data": {
"UpdateTaxRate": {
"id": 100120,
"label": "Reduced VAT",
"rate": 6.0,
"active": true
}
}
}
Delete a tax rate
| id - ID |
|---|
| Id of the tax rate |
mutation DeleteTaxRate($id: ID!) {
DeleteTaxRate(id: $id)
}
{
"data": { "DeleteTaxRate": true }
}
Disable a tax rate
| id - ID |
|---|
| Id of the tax rate |
mutation DisableTaxRate($id: ID!) {
DisableTaxRate(id: $id) {
id
active
}
}
{
"data": {
"DisableTaxRate": {
"id": 100120,
"active": false
}
}
}
Enable a tax rate
| id - ID |
|---|
| Id of the tax rate |
mutation EnableTaxRate($id: ID!) {
EnableTaxRate(id: $id) {
id
active
}
}
{
"data": {
"EnableTaxRate": {
"id": 100120,
"active": true
}
}
}
| id - ID |
|---|
| Identifier (optional) |
| label - String |
|---|
| Label/name of the tax rate |
| rate - Float |
|---|
| Tax rate percentage or decimal |
- Mutations return the created/updated
TaxRate object or boolean true for deletions.