Skip to main content

GET /v1.1/guest_savings/:id

Returns a single per-guest savings breakdown by its ID, describing savings applied to an individual guest.

Request

GET /v1.1/guest_savings/:id

URL Parameters

ParameterTypeRequiredDescription
idstringYesThe guest savings ID

Example Request

curl -X GET "https://api.rccl.ro/v1.1/guest_savings/a1b2c3d4-e5f6-3a7b-8c9d-0e1f2a3b4c5d" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"

Response

200 OK

Returns a single guest savings resource with related savings category included.

Response body:

{
"data": {
"type": "guest_savings",
"id": "a1b2c3d4-e5f6-3a7b-8c9d-0e1f2a3b4c5d",
"attributes": {
"amount": 681.5,
"description": "Savings 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/guest_savings/a1b2c3d4-e5f6-3a7b-8c9d-0e1f2a3b4c5d"
}
},
"links": {
"self": "/v1.1/guest_savings/a1b2c3d4-e5f6-3a7b-8c9d-0e1f2a3b4c5d"
},
"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"
}
}

Guest 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 — guest savings not found or upstream query failure