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 code
mutation CreateTaxCode($input: TaxCodeInput!) {
CreateTaxCode(input: $input) {
id
label
active
purchase_account
sales_account
tax_rates {
id
}
}
}
{
"input": {
"label": "VAT 20%",
"tax_rates": [
{ "id": 3001 }
],
"purchase_account": "445600",
"sales_account": "445700"
}
}
{
"data": {
"CreateTaxCode": {
"id": 100010,
"label": "VAT 20%",
"active": true,
"purchase_account": "445600",
"sales_account": "445700",
"tax_rates": [
{ "id": 3001 }
]
}
}
}
Update a tax code
| id - ID |
|---|
| Id of the tax code |
mutation UpdateTaxCode($id: ID!, $input: TaxCodeInput!) {
UpdateTaxCode(id: $id, input: $input) {
id
label
active
purchase_account
sales_account
tax_rates {
id
}
}
}
{
"id": 100010,
"input": {
"label": "VAT 20%",
"tax_rates": [
{ "id": 3001 }
],
"purchase_account": "445600",
"sales_account": "445700"
}
}
{
"data": {
"UpdateTaxCode": {
"id": 100010,
"label": "VAT 20%",
"active": true,
"purchase_account": "445600",
"sales_account": "445700",
"tax_rates": [
{ "id": 3001 }
]
}
}
}
Delete a tax code
| id - ID |
|---|
| Id of the tax code |
mutation DeleteTaxCode($id: ID!) {
DeleteTaxCode(id: $id)
}
{
"data": {
"DeleteTaxCode": true
}
}
Disable a tax code
| id - ID |
|---|
| Id of the tax code |
mutation DisableTaxCode($id: ID!) {
DisableTaxCode(id: $id) {
id
active
}
}
{
"data": {
"DisableTaxCode": {
"id": 100010,
"active": false
}
}
}
Enable a tax code
| id - ID |
|---|
| Id of the tax code |
mutation EnableTaxCode($id: ID!) {
EnableTaxCode(id: $id) {
id
active
}
}
{
"data": {
"EnableTaxCode": {
"id": 100010,
"active": true
}
}
}
| id - ID |
|---|
| Optional identifier (used in certain operations) |
| label - String |
|---|
| Label of the tax code |
| tax_rates - [TaxRateInput] |
|---|
| Associated tax rates to link to this tax code |
| purchase_account - String |
|---|
| Purchase account code tied to the tax code |
| sales_account - String |
|---|
| Sales account code tied to the tax code |
| deposit_account - String |
|---|
| Deposit account code tied to the tax code |
| notes - String |
|---|
| Notes for the tax code |