GET /v1.1/guests_savings/:id
Returns a single total savings breakdown by its ID, describing a savings discount applied to all guests combined.
Request
GET /v1.1/guests_savings/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The guests savings ID |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/guests_savings/2daa6611-c46f-381c-9a44-f04f70614d65" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns a single guests savings resource with related savings category included.
Response body:
{
"data": {
"type": "guests_savings",
"id": "2daa6611-c46f-381c-9a44-f04f70614d65",
"attributes": {
"amount": 1363,
"description": "BOGO60 NRD"
},
"relationships": {
"savings_category": {
"links": {
"related": "/v1.1/savings_category/c3d4e5f6-a7b8-3c9d-0e1f-2a3b4c5d6e7f"
},
"data": {
"type": "savings_category",
"id": "c3d4e5f6-a7b8-3c9d-0e1f-2a3b4c5d6e7f"
}
}
},
"links": {
"self": "/v1.1/guests_savings/2daa6611-c46f-381c-9a44-f04f70614d65"
}
},
"links": {
"self": "/v1.1/guests_savings/2daa6611-c46f-381c-9a44-f04f70614d65"
},
"included": [
{
"type": "savings_category",
"id": "c3d4e5f6-a7b8-3c9d-0e1f-2a3b4c5d6e7f",
"attributes": {
"code": "NRD",
"description": "Non-Refundable Deposit Savings"
},
"links": {
"self": "/v1.1/savings_category/c3d4e5f6-a7b8-3c9d-0e1f-2a3b4c5d6e7f"
}
}
],
"jsonapi": {
"version": "1.0"
}
}
Guests Savings Attributes
| Field | Type | Description |
|---|---|---|
amount | number | Savings amount |
description | string | Savings description (e.g. Savings NRD, BOGO60 NRD) |
Relationships
| Relationship | Type | Cardinality | Description |
|---|---|---|---|
savings_category | savings_category | one | The savings category |
Included Resource Types
| Type | Description |
|---|---|
savings_category | Savings category code and description |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — guests savings not found or upstream query failure |