Update a currency for an account

Updates the boolean enabled status of a single currency for a given accountId.

SecurityCommonAuth
Request
path Parameters
currencyCode
required
string^[A-Z]{3}$

The currency code of the currency to work with, in ISO 4217 format.

query Parameters
accountId
required
string

The ID of the account to work with.

Example: accountId=F50091
Request Body schema: application/json

Body

enabled
required
boolean

Enable or disable a currency.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

405

Method Not Allowed

415

Unsupported Media Type

429

Too Many Requests

500

Internal Server Error

patch/currencies/{currencyCode}
Request samples
application/json
{
  • "enabled": true
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "code": "GBP",
  • "name": "Pound Sterling",
  • "status": {
    }
}