GetCurrencies¶
Command: GetCurrencies
Returns all currency records from the in-memory currency registry.
Access Control¶
Available to authenticated sessions: SESSION_USER, SESSION_CUSTOMER, SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, and SESSION_CRM_ADMIN.
Request¶
No command data fields are required.
{
"command": "GetCurrencies",
"data": {},
"extID": "get-currencies-1"
}
Success response¶
{
"extID": "get-currencies-1",
"status": 200,
"data": {
"rows": [
{ "code": "USD", "name": "US Dollar", "money_digits": 2 },
{ "code": "JPY", "name": "Japanese Yen", "money_digits": 0 }
]
}
}
Each row contains immutable code (uppercase, 1–16 characters from A-Z, 0-9, ., _, -), immutable name (1–128 characters), and money_digits (integer from 0 to 8). There are no update or delete commands for currency records.
Errors¶
401/PERMISSION_DENIED— missing or invalid session.503/CURRENCY_UNAVAILABLE— currency registry is unavailable.