All pages
Powered by GitBook
1 of 1

Loading...

Search holiday by ID

Use case

In this example, we will find the holiday information by holidayId.

Use case data
API parameters with values

...api/v1/holidays/ID-4505

Sample API call

To search the holidays, make the following call.

See more about the search holiday by ID endpoint in the Tuum developer portal.

Sample request

Below is the sample request to find account transactions.

No body

curl --location 'https://holiday-api.sandbox.tuumplatform.com/api/v1/holidays/ID-4505' \
--header 'x-channel-code: SYSTEM' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiT2ZmaWNlciBUZXN0IiwiZW1wbG95ZWVJZCI6IklELTEwMDAiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHBpcnlEVGltZSI6IjIwMjQtMTItMTlUMTc6NDI6MDciLCJleHAiOjE3MzQ2MzAxMjcsInJvbGVzIjpbIkFETUlOIl19.xQbGI03c_NFup2g19BDUOLojuwB_evH8o9Yw0ftjA_c' \
--data ''

Sample response

Below you find an example response body to the API call above.

Response
{
    "errors": null,
    "validationErrors": null,
    "data": {
        "holidayId": "ID-4505",
        "holidayTypeCode": "BANKHOLIDAY",
        "countryCode": "DE",
        "date": "2027-12-23",
        "statusCode": "ACCEPTED",
        "holidayDeclineReason": null,
        "dependentUpdatesRequired": true
    }
}

Result

The search returned information about the holiday ID-4505.

We will look for the holiday that - ID-4505.

https://holiday-api.sandbox.tuumplatform.com/ api/v1/holidays/{holidayId}

was created before