๐ฑCurrencies
This page provides a description of the available API routes for managing currencies.
Collection of currencies contains exactly one currency marked as domestic. All system transactions are conducted exclusively in the domestic currency.
Currency is represented by Currency
class.
API methods
Get currencies
GET
http://{server-address}/currencies
Returns all currencies that matches query parameters. Result is of type QueryResult<Currency>
.
Query Parameters
Name | Type | Description |
---|---|---|
label | string | 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 |
isDomestic | bool | Supports NData syntax. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Get currency by label
GET
http://{server-address}/currencies/{label}
Result is of type Currency.
Path Parameters
Name | Type | Description |
---|---|---|
label* | string | Unique currency label. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Create currency
POST
http://{server-address}/currencies
Creates new currency. Result is of type Currency.
Required rights
Authorized user must have CurrencyCreate
right assigned.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Request Body
Name | Type | Description |
---|---|---|
(body)* | Currency | Model to create. |
Create or update currency
PUT
http://{server-address}/currencies/{label}
Creates new or updates existing currency. Result is of type Currency.
Required rights
Authorized user must have assigned CurrencyCreate
or CurrencyUpdate
right.
Path Parameters
Name | Type | Description |
---|---|---|
label* | string | Unique currency label. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Request Body
Name | Type | Description |
---|---|---|
(body)* | Currency | Model to create or update. |
Delete currency by label
DELETE
http://{server-address}/currencies/{label}
Required rights
Authorized user must have CurrencyDelete
right assigned.
Path Parameters
Name | Type | Description |
---|---|---|
label* | string | Unique currency label. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Last updated