Skip to main content

GET /v1.1/currency/:id

Returns a single currency by its ID.

Request

GET /v1.1/currency/:id

URL Parameters

ParameterTypeRequiredDescription
idstringYesThe 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

FieldTypeDescription
codestringISO 4217 currency code
symbolstringCurrency symbol

Error Responses

StatusDescription
401Unauthorized — missing or invalid API key
500Internal Server Error — currency not found or upstream query failure