Returns the currencies available for publishing properties in a given country.
| Resource information | |
|---|---|
| Authentication | Required (API Token, Bearer) |
| HTTP Method | GET |
| Response | JSON |
| Version | 1 |
| Cache | 1 day |
Resource URL
https://mapaprop.app/api/action/mapaprop-chat-ai-v1/currencies/{country}
Parameters
| Key | Type | Required | Description |
|---|---|---|---|
| country | string | yes | Path parameter. ISO country code (2 characters). Constants |
Sample code
GET /api/action/mapaprop-chat-ai-v1/currencies/AR HTTP/1.1
Host: mapaprop.app
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Authorization: Bearer {access_token}
Response
| Object | Field | Type | Required | Description |
|---|---|---|---|---|
| Response | currencies | Array of Currency | yes | Currencies available for the country |
| Currency | currencyId | int | yes | Internal currency ID |
| zoneId | int | yes | ID of the country the currency belongs to | |
| symbol | string | yes | Currency code (e.g. ARS, USD) | |
| description | string | yes | Currency description |
Sample response
{
"currencies": [
{ "currencyId": 1, "zoneId": 1, "symbol": "ARS", "description": "Pesos" },
{ "currencyId": 2, "zoneId": 1, "symbol": "USD", "description": "Dólares" }
]
}
If the country path param does not have exactly 2 characters, or does not correspond to an ISO code recognized by Mapaprop, the service responds with an error.