Operation Services
Operation services let you modify an existing reservation after it has been booked. Every operation is a POST request that identifies the reservation by its voucher number and returns the updated state of the reservation.
- Simulation: Every request carries a
simulationflag. Sendtrueto preview the outcome (e.g. the recalculated price) without changing anything, then repeat the same request withfalseto apply it permanently. A simulation call before price-affecting operations (guest, date or room changes) is recommended. - Guest identifiers: Operations that target an existing guest use the guest's
guidId, which is returned for every guest in the Reservation Detail response. - Price & room codes:
newPriceCodeandnewRoomCodeare taken from the Room Search response. - Price fields: Price-affecting operations return the new totals together with
amountBeforeTransactionandtransactionAmountDifference, so the price impact of the change can be shown before it is applied.
Request Headers
The following headers apply to all operation services.
| Name | Type | Required | Description |
|---|---|---|---|
| Content-Type | string | Yes | Must be application/json. |
| Authorization | string | Yes | Bearer token. Format: Bearer <access_token>. |
| Accept-Language | string | No | Preferred response language (e.g. tr-TR, en-US). |
| X-CURRENCY | string | No | Currency for pricing in the response (e.g. TRY, EUR). |
Add Guest
/api/v1/generic-api-service/royal/operation/add-guest
Adds a new guest to the reservation identified by the voucher. The simulation flag determines whether the change is applied: true only returns a preview including the price impact, false adds the guest permanently.
- cURL
- Request
- Response
- Request Details
- Response Details
- Errors
curl --location 'https://api.etscore.com/api/v1/generic-api-service/royal/operation/add-guest' \
--header 'Accept-Language: en-US' \
--header 'X-CURRENCY: EUR' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"voucher": "ETSR555555555",
"simulation": true,
"guest": {
"name": "JOHN",
"surname": "DOE",
"type": "ADULT",
"gender": "MALE",
"birthDate": "1990-01-09",
"nationality": "DE",
"email": "[email protected]"
}
}'
| Name | Type | Required | Description |
|---|---|---|---|
| voucher | string | Yes | The voucher number of the reservation (e.g. ETSR555555555). |
| simulation | bool | Yes | If true, the operation is not applied and only a preview is returned. If false, the guest is added to the reservation. |
| guest | object | Yes | The guest to add to the reservation. |
| guest/name | string | Yes | Given name of the guest. |
| guest/surname | string | Yes | Surname of the guest. |
| guest/type | string | Yes | Guest type (e.g. ADULT, CHILD). |
| guest/gender | string | Yes | Guest gender (e.g. MALE, FEMALE). |
| guest/birthDate | string | Yes | Date of birth in YYYY-MM-DD format. |
| guest/nationality | string | Yes | Nationality as an ISO 3166-1 alpha-2 code (e.g. DE). |
| guest/email | string | No | Email address of the guest. |
| Name | Type | Required | Description |
|---|---|---|---|
| success | bool | Yes | Indicates whether the request was processed successfully. |
| salesAmount | decimal | Yes | The recalculated total sales amount of the reservation after adding the guest. |
| currency | string | Yes | Currency of the amounts (e.g. EUR). |
| nightlyPrices | object-array | Yes | Per-night price breakdown for the stay. |
| nightlyPrices/date | string | Yes | The night the price applies to, in YYYY-MM-DD format. |
| nightlyPrices/amount | decimal | Yes | Amount for that night. |
| nightlyPrices/currency | string | Yes | Currency of the nightly amount. |
| addedGuest | object | Yes | The guest that was added (or would be added when simulation is true). |
| addedGuest/name | string | Yes | Given name of the guest. |
| addedGuest/surname | string | Yes | Surname of the guest. |
| addedGuest/type | string | Yes | Guest type (e.g. ADULT). |
| addedGuest/birthDate | string | Yes | Date of birth of the guest. |
| addedGuest/gender | string | Yes | Gender of the guest. |
| addedGuest/nationality | string | Yes | Nationality of the guest (ISO 3166-1 alpha-2). |
| addedGuest/email | string | No | Email address of the guest. |
| addedGuest/guidId | UUID | Yes | Unique identifier assigned to the added guest. |
| simulation | bool | Yes | Echoes the simulation flag from the request. true = only previewed, false = applied. |
Errors specific to this endpoint (9 codes). Gateway and authentication errors apply to every endpoint and are listed in the Error Codes reference.
| Group | Code | Message | Description |
|---|---|---|---|
| Validation | 0904142 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904143 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904144 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904147 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904164 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904216 | Returned during payment processing when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. |
| Group | Code | Message | Description |
|---|---|---|---|
| System | 0904141 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904145 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904146 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Error groups
| Group | Meaning | Recommended action |
|---|---|---|
| Validation | Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| System | Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Remove Guest
/api/v1/generic-api-service/royal/operation/remove-guest
Removes an existing guest from the reservation identified by the voucher. The guest is identified by the guestGuidId assigned when the guest was created.
- cURL
- Request
- Response
- Request Details
- Response Details
- Errors
curl --location 'https://api.etscore.com/api/v1/generic-api-service/royal/operation/remove-guest' \
--header 'Accept-Language: tr-TR' \
--header 'X-CURRENCY: TRY' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"voucher": "ETSR555555555",
"guestGuidId": "cb13e194-2e74-4cc5-a5df-37dde250a880",
"simulation": true
}'
{
"success": true,
"amountCost": 5944.46,
"amount": 7430.57,
"salesAmount": 5944.46,
"amountBeforeTransaction": 7126.56,
"transactionAmountDifference": -1182.10,
"currency": "EUR",
"nightlyPrices": [
{
"date": "2027-10-16",
"amountCost": 849.21,
"amount": 1061.51,
"salesAmountCost": 849.21,
"conditionId": 0,
"currency": "EUR",
"priceSource": null,
"discounts": null,
"salesDiscounts": null
}
// ... remaining nights (2027-10-17 ... 2027-10-22) omitted ...
],
"currencyRate": null,
"warningMessages": null,
"simulation": true
}
| Name | Type | Required | Description |
|---|---|---|---|
| voucher | string | Yes | The voucher number of the reservation (e.g. ETSR555555555). |
| guestGuidId | UUID | Yes | Unique identifier of the guest to remove. Returned as the guidId field in the Reservation Detail response. |
| simulation | bool | Yes | If true, the operation is not applied and only a preview is returned. If false, the guest is removed from the reservation. |
| Name | Type | Required | Description |
|---|---|---|---|
| success | bool | Yes | Indicates whether the request was processed successfully. |
| amountCost | decimal | Yes | Total cost amount of the reservation after removing the guest. |
| amount | decimal | Yes | Total amount of the reservation after removing the guest. |
| salesAmount | decimal | Yes | Total sales amount of the reservation after removing the guest. |
| amountBeforeTransaction | decimal | Yes | Reservation amount before this operation was applied. |
| transactionAmountDifference | decimal | Yes | Difference between the amount after and before the operation (negative when the total decreases, 0.00 when the price does not change). |
| currency | string | Yes | Currency of the amounts (e.g. EUR, TRY). |
| nightlyPrices | object-array | Yes | Per-night price breakdown for the stay. |
| nightlyPrices/date | string | Yes | The night the price applies to, in YYYY-MM-DD format. |
| nightlyPrices/amountCost | decimal | Yes | Cost amount for that night. |
| nightlyPrices/amount | decimal | Yes | Amount for that night. |
| nightlyPrices/salesAmountCost | decimal | Yes | Sales cost amount for that night. |
| nightlyPrices/conditionId | int | Yes | Identifier of the price condition applied to that night. |
| nightlyPrices/currency | string | Yes | Currency of the nightly amount. |
| nightlyPrices/priceSource | string | No | Source of the price (may be null). |
| nightlyPrices/discounts | object-array | No | Discounts applied to that night (may be null). |
| nightlyPrices/salesDiscounts | object-array | No | Sales discounts applied to that night (may be null). |
| currencyRate | decimal | No | Exchange rate applied when a currency conversion is involved (may be null). |
| warningMessages | string-array | No | Any warning messages returned for the operation (may be null). |
| simulation | bool | Yes | Echoes the simulation flag from the request. true = only previewed, false = applied. |
Errors specific to this endpoint (7 codes). Gateway and authentication errors apply to every endpoint and are listed in the Error Codes reference.
| Group | Code | Message | Description |
|---|---|---|---|
| Validation | 0904144 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904147 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904164 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904216 | Returned during payment processing when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. |
| Group | Code | Message | Description |
|---|---|---|---|
| System | 0904141 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904145 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904146 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Error groups
| Group | Meaning | Recommended action |
|---|---|---|
| Validation | Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| System | Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Change Guest
/api/v1/generic-api-service/royal/operation/change-guest
Replaces all details (type, gender, birth date, nationality, email) of an existing guest in the reservation. The guest to update is identified by oldGuestGuidId. Use Change Guest Name for name/surname corrections only.
- cURL
- Request
- Response
- Request Details
- Response Details
- Errors
curl --location 'https://api.etscore.com/api/v1/generic-api-service/royal/operation/change-guest' \
--header 'Accept-Language: en-US' \
--header 'X-CURRENCY: TRY' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"voucher": "ETSR555555555",
"oldGuestGuidId": "35559b10-89d2-4a5c-97bf-fe8e29477e45",
"simulation": true,
"guest": {
"name": "JOHN",
"surname": "DOE",
"type": "ADULT",
"gender": "MALE",
"birthDate": "1990-01-01",
"nationality": "DE",
"email": "[email protected]"
}
}'
| Name | Type | Required | Description |
|---|---|---|---|
| voucher | string | Yes | The voucher number of the reservation (e.g. ETSR555555555). |
| oldGuestGuidId | UUID | Yes | Identifier of the existing guest to update. Returned as the guidId field in the Reservation Detail response. |
| simulation | bool | Yes | If true, the operation is not applied and only a preview is returned. If false, the change is applied. |
| guest | object | Yes | New guest details to apply. |
| guest/name | string | Yes | Given name of the guest. |
| guest/surname | string | Yes | Surname of the guest. |
| guest/type | string | Yes | Guest type (e.g. ADULT, CHILD). |
| guest/gender | string | Yes | Guest gender (e.g. MALE, FEMALE). |
| guest/birthDate | string | Yes | Date of birth in YYYY-MM-DD format. |
| guest/nationality | string | Yes | Nationality as an ISO 3166-1 alpha-2 code (e.g. DE). |
| guest/email | string | No | Email address of the guest. |
| Name | Type | Required | Description |
|---|---|---|---|
| success | bool | Yes | Indicates whether the request was processed successfully. |
| amountCost | decimal | Yes | Total cost amount of the reservation after the change. |
| amount | decimal | Yes | Total amount of the reservation after the change. |
| salesAmount | decimal | Yes | Total sales amount of the reservation after the change. |
| amountBeforeTransaction | decimal | Yes | Reservation amount before this operation was applied. |
| transactionAmountDifference | decimal | Yes | Difference between the amount after and before the operation (negative when the total decreases, 0.00 when the price does not change). |
| currency | string | Yes | Currency of the amounts (e.g. EUR, TRY). |
| nightlyPrices | object-array | Yes | Per-night price breakdown for the stay. |
| nightlyPrices/date | string | Yes | The night the price applies to, in YYYY-MM-DD format. |
| nightlyPrices/amountCost | decimal | Yes | Cost amount for that night. |
| nightlyPrices/amount | decimal | Yes | Amount for that night. |
| nightlyPrices/salesAmountCost | decimal | Yes | Sales cost amount for that night. |
| nightlyPrices/conditionId | int | Yes | Identifier of the price condition applied to that night. |
| nightlyPrices/currency | string | Yes | Currency of the nightly amount. |
| nightlyPrices/priceSource | string | No | Source of the price (may be null). |
| nightlyPrices/discounts | object-array | No | Discounts applied to that night (may be null). |
| nightlyPrices/salesDiscounts | object-array | No | Sales discounts applied to that night (may be null). |
| currencyRate | decimal | No | Exchange rate applied when a currency conversion is involved (may be null). |
| changedGuest | object | Yes | The guest after the change. |
| changedGuest/name | string | Yes | Given name of the guest. |
| changedGuest/surname | string | Yes | Surname of the guest. |
| changedGuest/type | string | Yes | Guest type (e.g. ADULT). |
| changedGuest/birthDate | string | Yes | Date of birth of the guest. |
| changedGuest/gender | string | Yes | Gender of the guest. |
| changedGuest/nationality | string | Yes | Nationality of the guest (ISO 3166-1 alpha-2). |
| changedGuest/email | string | No | Email address of the guest (may be null). |
| changedGuest/guidId | UUID | Yes | Unique identifier assigned to the changed guest. |
| warningMessages | string-array | No | Any warning messages returned for the operation (may be null). |
| currentInvoices | object-array | Yes | Invoices currently associated with the reservation (may be empty). |
| simulation | bool | Yes | Echoes the simulation flag from the request. true = only previewed, false = applied. |
Errors specific to this endpoint (7 codes). Gateway and authentication errors apply to every endpoint and are listed in the Error Codes reference.
| Group | Code | Message | Description |
|---|---|---|---|
| Validation | 0904144 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904147 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904164 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904216 | Returned during payment processing when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. |
| Group | Code | Message | Description |
|---|---|---|---|
| System | 0904141 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904145 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904146 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Error groups
| Group | Meaning | Recommended action |
|---|---|---|
| Validation | Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| System | Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Change Guest Name
/api/v1/generic-api-service/royal/operation/change-guest-name
Corrects the details (including name/surname) of one or more existing guests in the reservation. Guests are sent as a list in the guest array and each one is identified by its guidId.
- cURL
- Request
- Response
- Request Details
- Response Details
- Errors
curl --location 'https://api.etscore.com/api/v1/generic-api-service/royal/operation/change-guest-name' \
--header 'Accept-Language: tr-TR' \
--header 'X-CURRENCY: TRY' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"voucher": "ETSR555555555",
"simulation": true,
"guest": [
{
"name": "JOHN",
"surname": "DOE SMITH",
"birthDate": "1990-01-01",
"email": "[email protected]",
"gender": "MALE",
"type": "ADULT",
"guidId": "6d7c5791-1d4d-4150-aaa3-fe8ecce9808a"
}
]
}'
| Name | Type | Required | Description |
|---|---|---|---|
| voucher | string | Yes | The voucher number of the reservation (e.g. ETSR555555555). |
| simulation | bool | Yes | If true, the operation is not applied and only a preview is returned. If false, the change is applied. |
| guest | object-array | Yes | List of guests to update. Each item carries the full guest details plus its guidId. |
| guest/name | string | Yes | Given name of the guest. |
| guest/surname | string | Yes | Surname of the guest. |
| guest/type | string | Yes | Guest type (e.g. ADULT, CHILD). |
| guest/gender | string | Yes | Guest gender (e.g. MALE, FEMALE). |
| guest/birthDate | string | Yes | Date of birth in YYYY-MM-DD format. |
| guest/email | string | No | Email address of the guest. |
| guest/guidId | UUID | Yes | Identifier of the guest. Returned as the guidId field in the Reservation Detail response. |
| Name | Type | Required | Description |
|---|---|---|---|
| success | bool | Yes | Indicates whether the request was processed successfully. |
| changedGuest | object-array | Yes | The list of guests after the change. |
| changedGuest/name | string | Yes | Given name of the guest. |
| changedGuest/surname | string | Yes | Surname of the guest. |
| changedGuest/type | string | Yes | Guest type (e.g. ADULT). |
| changedGuest/birthDate | string | Yes | Date of birth of the guest. |
| changedGuest/gender | string | Yes | Gender of the guest. |
| changedGuest/email | string | No | Email address of the guest. |
| changedGuest/guidId | UUID | Yes | Unique identifier of the changed guest. |
| warningMessages | string-array | No | Any warning messages returned for the operation (may be null). |
| currentInvoices | object-array | Yes | Invoices currently associated with the reservation (may be empty). |
| simulation | bool | Yes | Echoes the simulation flag from the request. true = only previewed, false = applied. |
Errors specific to this endpoint (7 codes). Gateway and authentication errors apply to every endpoint and are listed in the Error Codes reference.
| Group | Code | Message | Description |
|---|---|---|---|
| Validation | 0904144 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904147 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904164 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904216 | Returned during payment processing when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. |
| Group | Code | Message | Description |
|---|---|---|---|
| System | 0904141 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904145 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904146 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Error groups
| Group | Meaning | Recommended action |
|---|---|---|
| Validation | Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| System | Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Change Check-in / Check-out
/api/v1/generic-api-service/royal/operation/change-checkin-checkout
Changes the check-in/check-out dates of the reservation identified by the voucher. The room/rate for the new dates is selected with newPriceCode. Since a date change reprices the reservation, previewing it with simulation: true first is recommended.
- cURL
- Request
- Response
- Request Details
- Response Details
- Errors
curl --location 'https://api.etscore.com/api/v1/generic-api-service/royal/operation/change-checkin-checkout' \
--header 'Accept-Language: tr-TR' \
--header 'X-CURRENCY: EUR' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"checkIn": "2026-12-02",
"checkOut": "2026-12-05",
"newPriceCode": "<price code>",
"specialCase": false,
"voucher": "ETSR555555555",
"simulation": true
}'
| Name | Type | Required | Description |
|---|---|---|---|
| checkIn | string | Yes | New check-in date in YYYY-MM-DD format. |
| checkOut | string | Yes | New check-out date in YYYY-MM-DD format. |
| newPriceCode | string | Yes | Price code of the new room/rate for the new dates. Taken from the Room Search response. |
| specialCase | bool | No | Flag used to handle special date-change cases. Defaults to false. |
| voucher | string | Yes | The voucher number of the reservation (e.g. ETSR555555555). |
| simulation | bool | Yes | If true, the operation is not applied and only a preview is returned. If false, the new dates are applied. |
| Name | Type | Required | Description |
|---|---|---|---|
| success | bool | Yes | Indicates whether the request was processed successfully. |
| amountCost | decimal | Yes | Total cost amount of the reservation after the change. |
| amount | decimal | Yes | Total amount of the reservation after the change. |
| salesAmount | decimal | Yes | Total sales amount of the reservation after the change. |
| amountBeforeTransaction | decimal | Yes | Reservation amount before this operation was applied. |
| transactionAmountDifference | decimal | Yes | Difference between the amount after and before the operation (negative when the total decreases, 0.00 when the price does not change). |
| currency | string | Yes | Currency of the amounts (e.g. EUR, TRY). |
| nightlyPrices | object-array | Yes | Per-night price breakdown for the stay. |
| nightlyPrices/date | string | Yes | The night the price applies to, in YYYY-MM-DD format. |
| nightlyPrices/amountCost | decimal | Yes | Cost amount for that night. |
| nightlyPrices/amount | decimal | Yes | Amount for that night. |
| nightlyPrices/salesAmountCost | decimal | Yes | Sales cost amount for that night. |
| nightlyPrices/conditionId | int | Yes | Identifier of the price condition applied to that night. |
| nightlyPrices/currency | string | Yes | Currency of the nightly amount. |
| nightlyPrices/priceSource | string | No | Source of the price (may be null). |
| nightlyPrices/discounts | object-array | No | Discounts applied to that night (may be null). |
| nightlyPrices/salesDiscounts | object-array | No | Sales discounts applied to that night (may be null). |
| currencyRate | object | Yes | Exchange rate information applied to the amounts. |
| currencyRate/fromCurrencyCode | string | Yes | Source currency code of the conversion. |
| currencyRate/toCurrencyCode | string | Yes | Target currency code of the conversion. |
| currencyRate/rate | decimal | Yes | Exchange rate applied (1 when both currencies are the same). |
| confirmationCodeInfos | object-array | Yes | Confirmation code information of the reservation (may be empty). |
| currentInvoices | object-array | Yes | Invoices currently associated with the reservation (may be empty). |
| simulation | bool | Yes | Echoes the simulation flag from the request. true = only previewed, false = applied. |
Errors specific to this endpoint (7 codes). Gateway and authentication errors apply to every endpoint and are listed in the Error Codes reference.
| Group | Code | Message | Description |
|---|---|---|---|
| Validation | 0904144 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904147 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904164 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904216 | Returned during payment processing when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. |
| Group | Code | Message | Description |
|---|---|---|---|
| System | 0904141 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904145 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904146 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Error groups
| Group | Meaning | Recommended action |
|---|---|---|
| Validation | Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| System | Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Change Room
/api/v1/generic-api-service/royal/operation/change-room
Changes the room of the reservation identified by the voucher. The target room is selected with newRoomCode.
- cURL
- Request
- Response
- Request Details
- Response Details
- Errors
curl --location 'https://test-api.etscore.com/api/v1/generic-api-service/royal/operation/change-room' \
--header 'Accept-Language: tr-TR' \
--header 'X-CURRENCY: TRY' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"newRoomCode": "67575",
"voucher": "ETSR555555555",
"simulation": true
}'
| Name | Type | Required | Description |
|---|---|---|---|
| newRoomCode | string | Yes | Code of the target room. Taken from the Room Search response. |
| voucher | string | Yes | The voucher number of the reservation (e.g. ETSR555555555). |
| simulation | bool | Yes | If true, the operation is not applied and only a preview is returned. If false, the room change is applied. |
| Name | Type | Required | Description |
|---|---|---|---|
| success | bool | Yes | Indicates whether the request was processed successfully. |
| amountCost | decimal | Yes | Total cost amount of the reservation after the change. |
| amount | decimal | Yes | Total amount of the reservation after the change. |
| salesAmount | decimal | Yes | Total sales amount of the reservation after the change. |
| amountBeforeTransaction | decimal | Yes | Reservation amount before this operation was applied. |
| transactionAmountDifference | decimal | Yes | Difference between the amount after and before the operation (negative when the total decreases, 0.00 when the price does not change). |
| currency | string | Yes | Currency of the amounts (e.g. EUR, TRY). |
| nightlyPrices | object-array | Yes | Per-night price breakdown for the stay. |
| nightlyPrices/date | string | Yes | The night the price applies to, in YYYY-MM-DD format. |
| nightlyPrices/amountCost | decimal | Yes | Cost amount for that night. |
| nightlyPrices/amount | decimal | Yes | Amount for that night. |
| nightlyPrices/salesAmountCost | decimal | Yes | Sales cost amount for that night. |
| nightlyPrices/conditionId | int | Yes | Identifier of the price condition applied to that night. |
| nightlyPrices/currency | string | Yes | Currency of the nightly amount. |
| nightlyPrices/priceSource | string | No | Source of the price (may be null). |
| nightlyPrices/discounts | object-array | No | Discounts applied to that night (may be null). |
| nightlyPrices/salesDiscounts | object-array | No | Sales discounts applied to that night (may be null). |
| currencyRate | object | Yes | Exchange rate information applied to the amounts. |
| currencyRate/fromCurrencyCode | string | Yes | Source currency code of the conversion. |
| currencyRate/toCurrencyCode | string | Yes | Target currency code of the conversion. |
| currencyRate/rate | decimal | Yes | Exchange rate applied (1 when both currencies are the same). |
| currentInvoices | object-array | Yes | Invoices currently associated with the reservation (may be empty). |
| simulation | bool | Yes | Echoes the simulation flag from the request. true = only previewed, false = applied. |
Errors specific to this endpoint (7 codes). Gateway and authentication errors apply to every endpoint and are listed in the Error Codes reference.
| Group | Code | Message | Description |
|---|---|---|---|
| Validation | 0904144 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904147 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904164 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904216 | Returned during payment processing when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. |
| Group | Code | Message | Description |
|---|---|---|---|
| System | 0904141 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904145 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904146 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Error groups
| Group | Meaning | Recommended action |
|---|---|---|
| Validation | Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| System | Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Change Hotel Note
/api/v1/generic-api-service/royal/operation/change-hotel-note
Creates or updates the free-text note forwarded to the hotel for the reservation identified by the voucher (e.g. late check-in, high floor preference).
- cURL
- Request
- Response
- Request Details
- Response Details
- Errors
curl --location 'https://api.etscore.com/api/v1/generic-api-service/royal/operation/change-hotel-note' \
--header 'Accept-Language: tr-TR' \
--header 'X-CURRENCY: TRY' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"note": "test example test",
"voucher": "ETSR555555555",
"simulation": true
}'
| Name | Type | Required | Description |
|---|---|---|---|
| note | string | Yes | The note text to send to the hotel. Send an empty string to clear the existing note. |
| voucher | string | Yes | The voucher number of the reservation (e.g. ETSR555555555). |
| simulation | bool | Yes | If true, the operation is not applied and only a preview is returned. If false, the note is saved. |
| Name | Type | Required | Description |
|---|---|---|---|
| success | bool | Yes | Indicates whether the request was processed successfully. |
| remark | string | Yes | Informational message stating that the note will be forwarded to the hotel but cannot be guaranteed, as it depends on hotel availability. |
| currentInvoices | object-array | Yes | Invoices currently associated with the reservation (may be empty). |
| simulation | bool | Yes | Echoes the simulation flag from the request. true = only previewed, false = applied. |
Errors specific to this endpoint (7 codes). Gateway and authentication errors apply to every endpoint and are listed in the Error Codes reference.
| Group | Code | Message | Description |
|---|---|---|---|
| Validation | 0904144 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904147 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904164 | Returned during the booking flow when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| Validation | 0904216 | Returned during payment processing when the request contains missing or invalid data or breaks a business rule. Fix the request using the message details and send it again. Retrying the same request will fail again. |
| Group | Code | Message | Description |
|---|---|---|---|
| System | 0904141 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904145 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. | |
| System | 0904146 | Returned during the booking flow when an unexpected server-side or provider-side problem occurs. Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |
Error groups
| Group | Meaning | Recommended action |
|---|---|---|
| Validation | Fix the request using the message details and send it again. Retrying the same request will fail again. | |
| System | Retry with exponential backoff. If it persists, contact Etscore support with the error code and request time. |