GET /v1.1/currency/:id
Returns a single currency by its ID.
Request
GET /v1.1/currency/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The currency ID |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/currency/3518f894-4d42-312d-937d-affe097d216e" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns a single currency resource.
Response body:
{
"data": {
"type": "currency",
"id": "3518f894-4d42-312d-937d-affe097d216e",
"attributes": {
"code": "USD",
"symbol": "$"
},
"links": {
"self": "/v1.1/currency/3518f894-4d42-312d-937d-affe097d216e"
}
},
"links": {
"self": "/v1.1/currency/3518f894-4d42-312d-937d-affe097d216e"
},
"jsonapi": {
"version": "1.0"
}
}
Currency Attributes
| Field | Type | Description |
|---|---|---|
code | string | ISO 4217 currency code |
symbol | string | Currency symbol |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — currency not found or upstream query failure |