Download OpenAPI specification:Download
Hold and manage a list of currencies available for the tenant.
Key Features:
Key Benefits:
Creates a new currency.
The currency consists of a code compliant with the ISO-4217 standard (see https://www.iso.org/iso-4217-currency-codes.html) and a currency name. The name
field is localized.
If the Content-Language
is set to *
, the request body payload should contain localized fields as a map in the key:value
pairs format, where key
is the language code, and value
is the translation.
Required scopes
currency.currency_manage
code required | string Currency code. The currency symbol must consist of three capital letters and must be a valid ISO-4217 code (https://www.iso.org/iso-4217-currency-codes.html). |
required | string or object Currency name. If the Note: Only the languages defined in the system are allowed to be used here. If a language code not defined in the system is provided, the request will be rejected. |
Created
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Conflict.
Internal Service Error occurred.
{- "code": "USD",
- "name": "Dollar"
}
{- "code": "string"
}
Retrieves all currencies. You can filter and sort the results by the base currency parameters, for example code
and name
.
Accept-Language
is set to *
, each internationalized field will be returned as a map that contains all translations in a format of key:value
pairs, where key
is the language code, and value
is the translation.Accept-Language
contains a single language, the translation will be returned as a string value.Accept-Language
header is empty, the translation will be returned in the language defined in the Configuration service
as default.OK
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
[- {
- "code": "USD",
- "name": "Dollar"
}, - {
- "code": "EUR",
- "name": "Euro"
}
]
Retrieves a currency by the currency code.
Accept-Language
is set to *
, each internationalized field will be returned as a map that contains all translations in a format of key:value
pairs, where key
is the language code and value
is the translation.Accept-Language
header contains a single language, the translation will be returned as a string value. Accept-Language
header is empty, the translation will be returned in the language defined in the Configuration service
as default.The currency has been retrieved successfully
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
Internal Service Error occurred.
{- "code": "USD",
- "name": "Dollar"
}
Updates an existing currency.
The currency code is immutable, so it cannot be changed in this request. For the name
field, the following rules are applicable:
Content-Language
is set to *
, the name
field should be represented as a map in thekey:value
format, where key
is the language code, and value
is the translation.Content-Language
is set to a specific language, the name
parameter should be passed as a string.Required scopes
currency.currency_manage
required | string or object The currency name. If the Only the languages defined in the system are allowed to be used here. If a language code not defined in the system is provided, the request will be rejected. |
required | object (updateMetadata) |
Currency updated
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
Conflict.
Internal Service Error occurred.
{- "name": "Dollar",
- "metadata": {
- "version": 1
}
}
{- "code": 400,
- "status": "Bad Request",
- "message": "Tenant in the header is not matching with the one provided in the URI."
}
Deletes the currency by provided code. If given currency does not exist in the system, the http code 204
will be returned.
Warning
Deleting a currency removes all exchange rates and prices related to the currency. Price removal is an asynchronous operation.
Required scopes
currency.currency_manage
Currency deleted
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
{- "code": 400,
- "status": "Bad Request",
- "message": "Tenant in the header is not matching with the one provided in the URI."
}
Creates a new exchange rate between two currencies.
Note: Both the source and target currency codes must be compliant with the ISO-4217 standard (see https://www.iso.org/iso-4217-currency-codes.html) and must be defined in the system.
Required scopes
currency.currency_manage
sourceCurrency required | string The source currency code. The currency symbol must consist of three capital letters and must be a valid ISO-4217 code (https://www.iso.org/iso-4217-currency-codes.html) defined in the system. |
targetCurrency required | string The target currency code. The currency symbol must consist of three capital letters and must be a valid ISO-4217 code (https://www.iso.org/iso-4217-currency-codes.html) defined in the system. |
rate required | string Represents the exchange rate. The value of the field is represented by a number where the cent part is separated by a comma. For example |
Created
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Conflict.
Internal Service Error occurred.
{- "sourceCurrency": "USD",
- "targetCurrency": "EUR",
- "rate": "0.91"
}
{- "code": "string"
}
Retrieves all exchange rates. You can filter and sort the results by the fields, for example source
or target currency
.
Required scopes
currency.currency_read
OK
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
[- {
- "code": "PLN_EUR",
- "sourceCurrency": "PLN",
- "targetCurrency": "EUR",
- "rate": "0.21"
}, - {
- "code": "PLN_USD",
- "sourceCurrency": "PLN",
- "targetCurrency": "USD",
- "rate": "0.23"
}, - {
- "code": "EUR_USD",
- "sourceCurrency": "EUR",
- "targetCurrency": "USD",
- "rate": "1.1"
}, - {
- "code": "USD_EUR",
- "sourceCurrency": "USD",
- "targetCurrency": "EUR",
- "rate": "0.91"
}
]
Retrieves a currency exchange rate definition by code.
Required scopes
currency.currency_read
Exchange rate returned
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
Internal Service Error occurred.
{- "code": "USD_EUR",
- "sourceCurrency": "USD",
- "targetCurrency": "EUR",
- "rate": "0.91"
}
Updates an existing exchange rate by code.
Note: The exchange rate code, source, and target currencies are immutable, so they cannot be changed in this request. Only the rate
field can be changed.
Required scopes
currency.currency_manage
Exchange rate updated
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
Conflict.
Internal Service Error occurred.
{- "rate": "0.91",
- "metadata": {
- "version": 1
}
}
{- "code": 400,
- "status": "Bad Request",
- "message": "Tenant in the header is not matching with the one provided in the URI."
}
Deletes the exchange rate definition by the provided code. If given definition does not exist in the system, the http code 204
will be returned.
Required scopes
currency.currency_manage
Exchange rate deleted
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}