Skip to main content

Currencies

Overview​

The Currencies endpoint returns the currency configuration for the property. It includes the local currency indicator and the exchange rate currently used by the system.

Request Endpoint​

  • HTTP Method: POST
  • Secure URL Path: {{base_url}}/api/hq/currencies

Payload Construction and Schema Definition​

The request payload is submitted as form-data fields.

Response Body Fields​

FieldTypeAlways presentDescription
errorbooleanYesIndicates whether the request failed. false means success.
statusstringYesStatus string. On success the example returns "ok".
messagestringYesHuman-readable message. Often empty on success.
dataarray<object>Yes (on success)Array of currency objects.

Currency Object Fields​

FieldTypeDescriptionExample
iso_codestringCurrency code (commonly ISO 4217, for example: IDR, USD).IDR
is_localnumber1 for the property’s default/local currency, 0 otherwise. Treat as boolean-like flag.1
is_activenumber1 if enabled for use, 0 if disabled. Treat as boolean-like flag.1
current_exchange_ratenumberExchange rate used by the system. May be integer or decimal depending on configuration.13000

Expected System Responses​

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": [
{
"iso_code": "IDR",
"is_local": 1,
"is_active": 1,
"current_exchange_rate": 1
},
{
"iso_code": "USD",
"is_local": 0,
"is_active": 1,
"current_exchange_rate": 13000
}
]
}