โ๏ธVats
This page provides a description of the available API routes for managing VAT rates.
Each VAT rate is identified by its numeric category identifier and associated VAT rate with value between 0 and 100. The VAT data model is represented by Vat
class.
API methods
Get VATs
GET
http://{server-address}/vats
Returns all VATs that matches query parameters. Result is of type QueryResult<Vat>
.
Query Parameters
Name | Type | Description |
---|---|---|
category | decimal | Supports NData syntax. |
rate | decimal | Supports NData syntax. |
$skip | int | Pagination property. Describing number of records to skip from beginning of result collection. |
$take | int | Pagination property. Maximum count of items to be returned. |
$sort | string[] | Comma separated list of property names. Please see NData syntax. |
$count | bool | If set to |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Get VAT by category
GET
http://{server-address}/vats/{category}
Result is of type Vat.
Path Parameters
Name | Type | Description |
---|---|---|
category* | int | Unique VAT category. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Create VAT
POST
http://{server-address}/vats
Creates new VAT. Result is of type Vat.
Required rights
Authorized user must have VatCreate
right assigned.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Request Body
Name | Type | Description |
---|---|---|
(body)* | VAT | VAT model to create |
Create or update VAT
PUT
http://{server-address}/vats/{category}
Updates existing or creates new VAT. Result is of type Vat.
Required rights
Authorized user must have assigned VatCreate
or VatUpdate
right.
Path Parameters
Name | Type | Description |
---|---|---|
category* | int | Unique VAT category. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Request Body
Name | Type | Description |
---|---|---|
(body)* | VAT | VAT model to create or update. |
Delete VAT by category
DELETE
http://{server-address}/vats/{category}
Required rights
Authorized user must have VatDelete
right assigned.
Path Parameters
Name | Type | Description |
---|---|---|
category* | int | Unique VAT category. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Last updated