Creating a new currency

POST {{api-url}}/currency/{{tenant}}/currencies

Creates a new currency. The currency consists of code (which has to be complied with ISO-4217 https://www.iso.org/iso-4217-currency-codes.html) and currency name. The name field is a localized one. If the Content-Language is set to * the request body payload should contain localized fields not as a string, but as a map in format: key:value, where the key is the language code and value is the translation.

Request Body

{"code"=>"EUR", "name"=>{"en"=>"Euro", "de"=>"Euro", "pl"=>"Euro"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Languagestring(Required) The Content-Language request HTTP header defines language(s) of the payload.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"code":"ipsum commodo dolore nostrud"}