Skip to main content
POST
/
currencies
Enable a currency for the firm
curl --request POST \
  --url https://api.contazen.ro/v1/currencies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "EUR"
}'
{
  "success": true,
  "object": "currency",
  "data": {
    "id": "<string>",
    "code": "EUR",
    "description": "Euro",
    "is_used": true,
    "is_default": true
  },
  "created": true
}

Overview

Adds a firm_currency row for the given ISO-4217 code. The server uppercases the input and validates against the static catalog:
  • 400 invalid_code — code is not a three-letter alphabetic string.
  • 400 unsupported_currency — code is not present in static_currency.
The endpoint is idempotent: enabling a currency that is already enabled returns the existing row with created: false.

Authorizations

Authorization
string
header
required

Use your API key (sk_live_xxx or sk_test_xxx)

Body

application/json
code
string
required

ISO-4217 three-letter code (uppercased server-side).

Example:

"EUR"

Response

Currency enabled or already present

success
boolean
object
enum<string>
Available options:
currency
data
object
created
boolean