Skip to main content

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

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

FieldTypeDescription
amountnumberSavings amount
descriptionstringSavings description (e.g. Savings NRD, BOGO60 NRD)

Relationships

RelationshipTypeCardinalityDescription
savings_categorysavings_categoryoneThe savings category

Included Resource Types

TypeDescription
savings_categorySavings category code and description

Error Responses

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