GET /v1.1/savings_category/:id
Returns a single savings category by its ID.
Request
GET /v1.1/savings_category/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The savings category ID |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/savings_category/c3d4e5f6-a7b8-3c9d-0e1f-2a3b4c5d6e7f" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns a single savings category resource.
Response body:
{
"data": {
"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"
}
},
"links": {
"self": "/v1.1/savings_category/c3d4e5f6-a7b8-3c9d-0e1f-2a3b4c5d6e7f"
},
"jsonapi": {
"version": "1.0"
}
}
Savings Category Attributes
| Field | Type | Description |
|---|---|---|
code | string | Unique savings category code |
description | string | Savings category description |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — savings category not found or upstream query failure |