Edara API v3

Edara API v3: Currencies

Read the guide first: authentication, paging, errors, rate limits and the shared PagedResult, BatchResult and *Reference shapes.

Endpoints

GET /v3/currencies: Lists currencies.

Operation GetCurrencies · permission read:currency

Query string: GetCurrenciesQuery

field type default validation description
offset int? 0 >= 0 Number of items to skip before returning results. Defaults to 0.
limit int? 100 1..1000 (out of range → 400) Maximum number of items to return. Defaults to 100, maximum 1000.
code string Must(code => !string.IsNullOrWhiteSpace(code)) .When(x => x.Code != null) The currency code filter.
updateDate DateTime? The updated-after filter.

Responses: OK PagedResult<CurrencyResponse>: Paged list of currencies.

Notes


GET /v3/currencies/{id}: Gets a currency by id.

Operation GetCurrencyById · permission read:currency

Parameters

name in type default description
id route int The currency id.

Responses: OK CurrencyResponse: The currency.

Notes


POST /v3/currencies: Creates a currency.

Operation CreateCurrency · permission create:currency

No uniqueness is enforced on currency symbol / international code / description (matches legacy V2 behavior).

Body: CurrencyUpsertRequest

field type default validation description
symbol string NotEmpty() The currency symbol.
description string NotEmpty() The currency display name.
internationalCode string MaximumLength(10) .When(x => !string.IsNullOrWhiteSpace(x.InternationalCode)) The ISO 4217 code.
currencySubUnit string MaximumLength(100) .When(x => !string.IsNullOrWhiteSpace(x.CurrencySubUnit)) The currency sub-unit label.
isSystemCurrency bool Whether this is the system currency.
isActive bool? Whether the currency is active.

Responses: Created CurrencyResponse: Currency created.

Business errors (HTTP 409, match on errorCode):

Notes


PUT /v3/currencies/{id}: Updates a currency by id.

Operation UpdateCurrency · permission update:currency

No uniqueness is enforced on currency symbol / international code / description (matches legacy V2 behavior).

Parameters

name in type default description
id route int The currency id.

Body: CurrencyUpsertRequest

field type default validation description
symbol string NotEmpty() The currency symbol.
description string NotEmpty() The currency display name.
internationalCode string MaximumLength(10) .When(x => !string.IsNullOrWhiteSpace(x.InternationalCode)) The ISO 4217 code.
currencySubUnit string MaximumLength(100) .When(x => !string.IsNullOrWhiteSpace(x.CurrencySubUnit)) The currency sub-unit label.
isSystemCurrency bool Whether this is the system currency.
isActive bool? Whether the currency is active.

Responses: OK CurrencyResponse: The updated currency.

Business errors (HTTP 409, match on errorCode):

Notes


PUT /v3/currencies/code/{code}: Updates a currency by code.

Operation UpdateCurrencyByCode · permission update:currency

No uniqueness is enforced on currency symbol / international code / description (matches legacy V2 behavior).

Parameters

name in type default description
code route string The currency code.

Body: CurrencyUpsertRequest

field type default validation description
symbol string NotEmpty() The currency symbol.
description string NotEmpty() The currency display name.
internationalCode string MaximumLength(10) .When(x => !string.IsNullOrWhiteSpace(x.InternationalCode)) The ISO 4217 code.
currencySubUnit string MaximumLength(100) .When(x => !string.IsNullOrWhiteSpace(x.CurrencySubUnit)) The currency sub-unit label.
isSystemCurrency bool Whether this is the system currency.
isActive bool? Whether the currency is active.

Responses: OK CurrencyResponse: The updated currency.

Business errors (HTTP 409, match on errorCode):

Notes


DELETE /v3/currencies/{id}: Deletes a currency by id.

Operation DeleteCurrency · permission delete:currency

Parameters

name in type default description
id route int The currency id.

Responses: NoContent: (not declared; read from the method body)

Business errors (HTTP 409, match on errorCode):

Notes


DELETE /v3/currencies/code/{code}: Deletes a currency by code.

Operation DeleteCurrencyByCode · permission delete:currency

Parameters

name in type default description
code route string The currency code.

Responses: NoContent: (not declared; read from the method body)

Business errors (HTTP 409, match on errorCode):

Notes

Types

CurrencyResponse

Response describing a currency.

field type description
id int The currency identifier.
symbol string The currency symbol.
description string The currency display name.
internationalCode string The ISO 4217 code.
currencySubUnit string The currency sub-unit label.
isSystemCurrency bool Whether this is the system currency.
isActive bool Whether the currency is active.