Skip to main content
POST
/
v0
/
tax-codes
Create a new tax code
curl --request POST \
  --url https://external.pleo.io/v0/tax-codes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --data '
{
  "archived": true,
  "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Standardmoms (25 %)",
  "rate": 123,
  "type": "inclusive",
  "code": "01",
  "ingoingTaxAccount": "<string>",
  "outgoingTaxAccount": "<string>"
}
'
{
  "data": {
    "archived": true,
    "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Standardmoms (25 %)",
    "rate": 123,
    "type": "inclusive",
    "updatedAt": "2023-11-07T05:31:56Z",
    "accountingIntegrationSystem": "<string>",
    "code": "01",
    "ingoingTaxAccount": "<string>",
    "outgoingTaxAccount": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json;charset=UTF-8
archived
boolean
required

Boolean flag used to archive or unarchive a category (when set to true, account is not visible or usable on the platform)

companyId
string<uuid>
required

Company ID the tax code is being created/updated for

name
string
required

Name of the tax code

Example:

"Standardmoms (25 %)"

rate
number
required

Percentage rate applied for this tax code (This is represented in decimals and not the percentage. e.g. 20% tax rate would be 0.20)

type
enum<string>
required

Classification of this tax code. Exclusive tax codes are not currently supported.

Available options:
inclusive,
exclusive,
reverse
code
string | null

The accounting system's internal identifier of the tax code

Example:

"01"

ingoingTaxAccount
string | null

Ingoing tax account usually used to account for reverse VAT

outgoingTaxAccount
string | null

Outgoing tax account usually used to account for reverse VAT

Response

default - application/json;charset=UTF-8

default response

data
object
required