GET /v1.1/refundability
Returns a list of all refundability policies.
Request
GET /v1.1/refundability
Example Request
curl -X GET "https://api.rccl.ro/v1.1/refundability" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns an array of refundability resources.
Response body:
{
"data": [
{
"type": "refundability",
"id": "80061894-3025-315f-869e-4e1f09471012",
"attributes": {
"code": "F",
"description": "Nerambursabil"
},
"links": {
"self": "/v1.1/refundability/80061894-3025-315f-869e-4e1f09471012"
}
},
{
"type": "refundability",
"id": "e1e1d3d4-0573-327e-9ee0-480caf1283d6",
"attributes": {
"code": "R",
"description": "Tarife cu depozit rambursabil"
},
"links": {
"self": "/v1.1/refundability/e1e1d3d4-0573-327e-9ee0-480caf1283d6"
}
},
{
"type": "refundability",
"id": "f623e75a-f30e-32bb-973d-6df5b50bb7b5",
"attributes": {
"code": "D",
"description": "Tarife cu depozit nerambursabil"
},
"links": {
"self": "/v1.1/refundability/f623e75a-f30e-32bb-973d-6df5b50bb7b5"
}
}
],
"meta": {
"count": 3
},
"jsonapi": {
"version": "1.0"
}
}
Refundability Attributes
| Field | Type | Description |
|---|---|---|
code | string | Refundability code |
description | string | Refundability policy description |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — upstream query failure |