Skip to content

GUEST API OpenAPI3

GUEST API v1



Our GUEST API is organized around REST. It is documented according the OpenAPI Specification (OAS), based initially on the Swagger Specification and it is available in the link above

It accepts JSON-encoded and query parameters request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

We recommend to use the Swagger Editor as a starting point. Also note that there is new alpha version of the Swagger Editor with improved capabilities. It allows to import the GUEST API specification from a URL or a file. To do so, paste the JSON file from the link above.

It will load the GUEST API specification and you will be able to generate the client code in the language of your choice. Currently the supported languages are: csharp, csharp-dotnet2, dart, dynamic-html, go, html, html2, java, javascript, jaxrs-cxf-client, kotlin-client, openapi, openapi-yaml, php, python, r, ruby, scala, swift3, swift4, swift5, typescript-angular, typescript-axios, typescript-fetch.

To generate the client code, click on Generate Client and select the language of your choice. It will download a zip file with the generated code. Unzip it and follow the instructions in the README file. It will explain how to install the dependencies and how to use the generated code that includes all the classes and methods to call the GUEST API.

Important note: The code generated by the Swagger Editor is not production ready. It is just a starting point, you will need to adapt it to your needs. ISystems is not responsible for the code generated by the Swagger Editor nor is responsible for the code you write based on the code generated by the Swagger Editor.

Email: ISystems Web: ISystems

Auth

Our GUEST API manages authentication via login/password and authorization via JWT with refresh tokens.

First, you need to log in with your credentials and receive an AccessToken (aka JWT) and a RefreshToken. Once you have the AccessToken, you need to include it in the header of your API calls, as shown in the provided examples, to interact with our API.

The AccessToken has a short valid lifetime, and this is where the RefreshToken comes into play. The RefreshToken has a longer lifetime. When you encounter a 401 Unauthorized response, it means that your AccessToken has expired.

To obtain a new valid AccessToken without having to log in again, you can send the expired AccessToken along with the RefreshToken you received during the login process to the Refresh endpoint. This will allow you to obtain a new pair of valid AccessToken and RefreshToken to continue interacting with the API.

We recommend implementing a simple workflow in your code to handle the situation when you receive a 401 response with a prior working AccessToken. In this case, you can trigger a refresh by sending the expired AccessToken and the associated RefreshToken to the Refresh endpoint to obtain a new pair of tokens.

LogIn

Terminal window
# You can also use wget
curl -X POST /users/login?Username=string&Password=pa%24%24word \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /users/login

Username login to obtain a new authorization token

Parameters

NameInTypeRequiredDescription
UsernamequerystringtrueUsername
Passwordquerystring(password)truePassword

200 Response

{
"accessToken": "string",
"refreshToken": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKLogged in correctlyTokenApi
400Bad RequestBad RequestNone
401UnauthorizedLogin Failed: incorrect username or passwordNone
429Too Many RequestsToo many requests, try again laterNone

Refresh

Terminal window
# You can also use wget
curl -X POST /users/refresh \
-H 'Content-Type: application/json' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /users/refresh

Refreshes the access token from a user given the expired access token and a valid refresh token

Body parameter

{
"accessToken": "string",
"refreshToken": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyTokenApifalsenone

200 Response

{
"accessToken": "string",
"refreshToken": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKOKTokenApi
400Bad RequestBad RequestNone
429Too Many RequestsToo many requests, try again laterNone

GetRoles

Terminal window
# You can also use wget
curl -X GET /users/roles \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /users/roles

Returns a list with all the roles the user has

200 Response

[
"string"
]

Responses

StatusMeaningDescriptionSchema
200OKList of user permissionsInline
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedUser unauthorizedNone
403ForbiddenForbiddenNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Response Schema

GetUserInformation

Terminal window
# You can also use wget
curl -X GET /users/userinfo \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /users/userinfo

This endpoint will return token’s user information

200 Response

{
"user_id": "string",
"username": "string",
"department_id": 0,
"department_code": "string",
"employee_id": 0,
"employee_code": "string",
"center_codes": [
"string"
],
"roles": [
{
"name": "string",
"permissions": [
"string"
]
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKUser InfoUserInfoResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
429Too Many RequestsToo many requests, try again laterNone

Availability

Endpoint related to managing the Availability of the rooms

GetAvailabilityList

Terminal window
# You can also use wget
curl -X GET /availability?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /availability

This endpoint will return a list of availability roomtypes given the CenterCode and can be filtered. If no dates are provided DateFrom = Today, DateTo = DateFrom + 365 days

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter Code
DateFromquerystring(date-time)falseStart Date filter
DateUntilquerystring(date-time)falseEnd Date filter
RoomTypesCodequeryarray[string]falseList of Room types codes to filter
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"center_id_fk": 0,
"center": "string",
"date": "2019-08-24T14:15:22Z",
"roomTypeCenter_id_fk": 0,
"roomType": "string",
"allotmentAvailable": 0,
"lockedRooms": 0
}

Responses

StatusMeaningDescriptionSchema
200OKAvailability listAvailabilityResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetAvailableRoomsList

Terminal window
# You can also use wget
curl -X GET /availability/rooms?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /availability/rooms

This endpoint will return a list of available rooms given the CenterCode and can be filtered. If no dates are provided DateFrom = Today, DateTo = Today + 365 days

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter Code
DateFromquerystring(date-time)falseStart Date filter
DateUntilquerystring(date-time)falseEnd Date filter
IsLockedquerybooleanfalseIs room locked
IsOccupiedquerybooleanfalseIs room occupied
RoomTypesCodequeryarray[string]falseList of Room types codes to filter

200 Response

{
"center_id_fk": 0,
"center": "string",
"date": "2019-08-24T14:15:22Z",
"roomTypeCenter_id_fk": 0,
"roomType": "string",
"allotmentAvailable": 0,
"lockedRooms": 0
}

Responses

StatusMeaningDescriptionSchema
200OKRoom Availability listAvailabilityResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Budgets

Endpoint related to managing the Budgets

GetCreditList

Terminal window
# You can also use wget
curl -X GET /budgets/caccounts/getlist?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /budgets/caccounts/getlist

This endpoint will return a list of Credit accounts that can be filtered

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
EmailquerystringfalseEmail
ClientCodequerystringfalseClient code
StatusCodesqueryarray[string]falseList of Budget status identifier to filter
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"taxAddress": "string",
"nif": "string",
"nationality_id_fk": "string",
"cardType": "string",
"budgetLines": [
{
"budgetLine_id_pk": 0,
"budgetHeader_id_fk": 0,
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"saleService_id_fk": 0,
"salesServiceName": "string",
"observations": "string",
"quantity": 0,
"value": 0,
"taxIncluded": true,
"automaticCharge": true,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"siL_id_fk": 0,
"reservation_id_fk": 0
}
],
"customerRetainers": [
{
"customerRetainer_id_pk": 0,
"retainerNumber": "string",
"customer_id_fk": 0,
"customerCode": "string",
"date": "2019-08-24T14:15:22Z",
"pM_id_fk": 0,
"pmCode": "string",
"amount": 0,
"retainerStatus_id": 0,
"retainerStatus": "string",
"bank_id_fk": 0,
"bankDescription": "string",
"observations": "string",
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"budgetHeader_id_fk": 0,
"percentageAmount": 0
}
],
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"comments": "string",
"externalCode": "string",
"futureProduction": true,
"isPending": true,
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Responses

StatusMeaningDescriptionSchema
200OKFiltered Credit accountsCreditAccResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetCredit

Terminal window
# You can also use wget
curl -X GET /budgets/caccounts?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /budgets/caccounts

This endpoint will return a single Credit account with all its related info provided a identifier or reference

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter Code
Budget_id_pkqueryinteger(int32)falseBudget identifier
BudgetReferencequerystringfalseBudget reference

200 Response

{
"taxAddress": "string",
"nif": "string",
"nationality_id_fk": "string",
"cardType": "string",
"budgetLines": [
{
"budgetLine_id_pk": 0,
"budgetHeader_id_fk": 0,
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"saleService_id_fk": 0,
"salesServiceName": "string",
"observations": "string",
"quantity": 0,
"value": 0,
"taxIncluded": true,
"automaticCharge": true,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"siL_id_fk": 0,
"reservation_id_fk": 0
}
],
"customerRetainers": [
{
"customerRetainer_id_pk": 0,
"retainerNumber": "string",
"customer_id_fk": 0,
"customerCode": "string",
"date": "2019-08-24T14:15:22Z",
"pM_id_fk": 0,
"pmCode": "string",
"amount": 0,
"retainerStatus_id": 0,
"retainerStatus": "string",
"bank_id_fk": 0,
"bankDescription": "string",
"observations": "string",
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"budgetHeader_id_fk": 0,
"percentageAmount": 0
}
],
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"comments": "string",
"externalCode": "string",
"futureProduction": true,
"isPending": true,
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Responses

StatusMeaningDescriptionSchema
200OKComplete Credit accountCreditAccResponse
204No ContentNo credit account was foundNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

NewCredit

Terminal window
# You can also use wget
curl -X POST /budgets/caccounts?CenterCode=string&GroupCode=string&Name=string&CustomerCode=string&DueDate=2019-08-24T14%3A15%3A22Z \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /budgets/caccounts

This endpoint will create a Credit account

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
GroupCodequerystringtrueCredit account code
NamequerystringtrueCredit account name
CustomerCodequerystringtrueCustomer code
DueDatequerystring(date-time)trueDue date
BudgetDatequerystring(date-time)falseCredit account date
EmailquerystringfalseEmail
TelephonequerystringfalsePhone number
CommentsquerystringfalseComments
TaxAddressquerystringfalseTax address
NIFquerystringfalseNIF
Nationality_id_fkquerystringfalseNationality

200 Response

{
"taxAddress": "string",
"nif": "string",
"nationality_id_fk": "string",
"cardType": "string",
"budgetLines": [
{
"budgetLine_id_pk": 0,
"budgetHeader_id_fk": 0,
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"saleService_id_fk": 0,
"salesServiceName": "string",
"observations": "string",
"quantity": 0,
"value": 0,
"taxIncluded": true,
"automaticCharge": true,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"siL_id_fk": 0,
"reservation_id_fk": 0
}
],
"customerRetainers": [
{
"customerRetainer_id_pk": 0,
"retainerNumber": "string",
"customer_id_fk": 0,
"customerCode": "string",
"date": "2019-08-24T14:15:22Z",
"pM_id_fk": 0,
"pmCode": "string",
"amount": 0,
"retainerStatus_id": 0,
"retainerStatus": "string",
"bank_id_fk": 0,
"bankDescription": "string",
"observations": "string",
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"budgetHeader_id_fk": 0,
"percentageAmount": 0
}
],
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"comments": "string",
"externalCode": "string",
"futureProduction": true,
"isPending": true,
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Responses

StatusMeaningDescriptionSchema
200OKCreated credit accountCreditAccResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetQuotesList

Terminal window
# You can also use wget
curl -X GET /budgets/quotes/getlist?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /budgets/quotes/getlist

This endpoint will return a list of Quotes that can be filtered

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
EmailquerystringfalseEmail
ClientCodequerystringfalseClient code
StatusCodesqueryarray[string]falseList of Budget status identifier to filter
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"isPending": true,
"arrivalDate": "2019-08-24T14:15:22Z",
"pendingInvoice": 0,
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Responses

StatusMeaningDescriptionSchema
200OKFiltered QuotesQuotesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetQuote

Terminal window
# You can also use wget
curl -X GET /budgets/quotes?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /budgets/quotes

This endpoint will return a single Quote account with all its related info provided a identifier or reference

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter Code
Budget_id_pkqueryinteger(int32)falseBudget identifier
BudgetReferencequerystringfalseBudget reference

200 Response

{
"arrivalDate": "2019-08-24T14:15:22Z",
"pendingInvoice": 0,
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"comments": "string",
"externalCode": "string",
"futureProduction": true,
"isPending": true,
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Responses

StatusMeaningDescriptionSchema
200OKComplete QuoteQuoteResponse
204No ContentNo quote was foundNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

NewQuote

Terminal window
# You can also use wget
curl -X POST /budgets/quotes?CenterCode=string&GroupCode=string&Name=string&CustomerCode=string&DueDate=2019-08-24T14%3A15%3A22Z \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /budgets/quotes

This endpoint will create a Quote

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
GroupCodequerystringtrueQuote code
NamequerystringtrueQuote name
CustomerCodequerystringtrueCustomer code
DueDatequerystring(date-time)trueDue date
BudgetDatequerystring(date-time)falseQuote date
EmailquerystringfalseEmail
TelephonequerystringfalsePhone number
CommentsquerystringfalseComments

200 Response

{
"arrivalDate": "2019-08-24T14:15:22Z",
"pendingInvoice": 0,
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"comments": "string",
"externalCode": "string",
"futureProduction": true,
"isPending": true,
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Responses

StatusMeaningDescriptionSchema
200OKCreated QuoteQuoteResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Config

Endpoint related to get config lists

GetRoomTypes

Terminal window
# You can also use wget
curl -X GET /config/roomtypes \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/roomtypes

This endpoint will return a list of all the RoomTypes

200 Response

{
"code": "string",
"roomType_id_pk": 0,
"description": "string",
"maximum_occupancy": 0,
"minimum_occupancy": 0,
"regular_occupancy": 0
}

Responses

StatusMeaningDescriptionSchema
200OKList of RoomTypesRoomTypesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetRoomTypesPerCenter

Terminal window
# You can also use wget
curl -X GET /config/roomtypesxcenter \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/roomtypesxcenter

This endpoint will return a list of all the RoomTypesPerCenter

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code

200 Response

{
"roomTypeCenter_id_pk": 0,
"centerCode": "string",
"center_id_fk": 0,
"roomTypeCode": "string",
"roomType_id_fk": 0,
"description": "string",
"descriptionDetailed": "string",
"real": true,
"order": 0,
"locked": true,
"rooms": 0,
"maximum_occupancy": 0,
"minimum_occupancy": 0,
"regular_occupancy": 0,
"establishmentCategoryCode": "string",
"establishmentCategory_id_fk": 0
}

Responses

StatusMeaningDescriptionSchema
200OKList of filtered RoomTypesPerCenterRoomTypesCenterResponse
204No ContentNo ContentNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetRooms

Terminal window
# You can also use wget
curl -X GET /config/rooms?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/rooms

This endpoint will return a list of all the Rooms

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter Code
RoomTypesFilterqueryarray[string]falseRoomTypes code to filter
RealquerybooleanfalseReal filter // null = ALL, true = YES, false = NO
VirtualquerybooleanfalseVirtual filter // null = ALL, true = YES, false = NO
CleanedquerybooleanfalseCleaned filter // null = ALL, true = YES, false = NO
LockedquerybooleanfalseLocked filter // null = ALL, true = YES, false = NO
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"room_id_pk": 0,
"centerCode": "string",
"center_id_fk": 0,
"roomTypeCode": "string",
"roomTypeCenter_id_fk": 0,
"roomType_id_fk": 0,
"number": "string",
"phone": 0,
"floorCode": "string",
"floor_id_fk": 0,
"roomRangeCode": "string",
"roomRange_id_fk": 0,
"blockCode": "string",
"block_id_fk": 0,
"description": "string",
"descriptionDetailed": "string",
"real": true,
"virtual": true,
"cleaned": true,
"locked": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of filtered RoomsRoomsResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetBlocks

Terminal window
# You can also use wget
curl -X GET /config/rooms/blocks \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/rooms/blocks

This endpoint will return a list of all the Room Blocks

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code

200 Response

{
"roomRange_id": 0,
"description": "string",
"center_id": 0,
"centerCode": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of RoomBlocksRoomRangeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetFloors

Terminal window
# You can also use wget
curl -X GET /config/rooms/floors \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/rooms/floors

This endpoint will return a list of all the Room Floors

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code

200 Response

{
"roomRange_id": 0,
"description": "string",
"center_id": 0,
"centerCode": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of RoomFloorsRoomRangeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetRanges

Terminal window
# You can also use wget
curl -X GET /config/rooms/ranges \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/rooms/ranges

This endpoint will return a list of all the Room Ranges

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code

200 Response

{
"roomRange_id": 0,
"description": "string",
"center_id": 0,
"centerCode": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of RoomRangesRoomRangeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetBoardTypes

Terminal window
# You can also use wget
curl -X GET /config/boardtypes \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/boardtypes

This endpoint will return a list of all the BoardTypes

200 Response

{
"boardType_id_pk": 0,
"code": "string",
"description": "string",
"breakfast": true,
"lunch": true,
"dinner": true,
"allInclusive": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of BoardTypesBoardTypesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetBoardTypesCenter

Terminal window
# You can also use wget
curl -X GET /config/boardtypesxcenter \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/boardtypesxcenter

This endpoint will return a list of all the BoardTypesCenter

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code

200 Response

{
"boardTypeCenter_id_pk": 0,
"centerCode": "string",
"center_id_fk": 0,
"boardTypeCode": "string",
"boardType_id_fk": 0,
"description": "string",
"descriptionDetailed": "string",
"defaultBoard": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of filtered BoardTypesCenterBoardTypesCenterResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetCenters

Terminal window
# You can also use wget
curl -X GET /config/centers \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/centers

This endpoint will return a list of all Centers the user has access to

200 Response

{
"center_id": 0,
"centerCode": "string",
"centerName": "string",
"currency": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of CentersCentersResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetCenterZones

Terminal window
# You can also use wget
curl -X GET /config/centers/zones \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/centers/zones

This endpoint will return a list of all Center zones

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code

200 Response

{
"centerZone_id": 0,
"centerZone_code": "string",
"center_id": 0,
"centerCode": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of CenterZonesCenterZoneResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetCustomerTypes

Terminal window
# You can also use wget
curl -X GET /config/customertypes \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/customertypes

This endpoint will return a list of all the CustomerTypes

200 Response

{
"customerType_id": 0,
"customerType": "string",
"description": "string",
"withoutChargeLodgment": true,
"withoutChargeSupplies": true,
"isDefault": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of CustomerTypeCustomerTypeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetDepartments

Terminal window
# You can also use wget
curl -X GET /config/RRHH/departments \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/RRHH/departments

This endpoint will return a list of all the Departments configured by the user

200 Response

{
"department_id": 0,
"departmentName": "string",
"isLocked": true,
"type": 0,
"centerDepartments": [
{
"centerCode": "string",
"notifyLocked": true,
"email": "string"
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKList of DepartmentsDepartmentsResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetContractTypes

Terminal window
# You can also use wget
curl -X GET /config/RRHH/contracttypes \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/RRHH/contracttypes

This endpoint will return a list of all the Contract Types configured by the user

200 Response

{
"contractType_id": 0,
"code": "string",
"description": "string",
"isLocked": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of ContractTypesRRHHContractTypeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetPositions

Terminal window
# You can also use wget
curl -X GET /config/RRHH/positions \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/RRHH/positions

This endpoint will return a list of all Contract Positions configured by the user

200 Response

{
"position_id": 0,
"description": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of PositionsRRHH_PositionsResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetIncidenceTypes

Terminal window
# You can also use wget
curl -X GET /config/RRHH/incidencetypes \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/RRHH/incidencetypes

This endpoint will return a list of all Incidence Types configured by the user

200 Response

{
"incicenceType_id": 0,
"incicenceType_code": "string",
"description": "string",
"format": "string",
"group_id": 0,
"group_code": "string",
"type": "string",
"overtime": "string",
"locked": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of Incidence TypesRRHH_IncidenceTypesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetSalesServices

Terminal window
# You can also use wget
curl -X GET /config/salesservices \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/salesservices

This endpoint will return the filtered list of SalesServices that can be filtered.

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenterCode
SaleServiceCodequerystringfalseSales Service code
ServiceType_idqueryinteger(int32)falseService type filter
Group_idsqueryarray[integer]falseSuppliesGroup identifiers to filter

200 Response

{
"service_id": 0,
"centerCode": "string",
"name": "string",
"description": "string",
"externalCode": "string",
"serviceType_id": 0,
"serviceType_desc": "string",
"salesServiceGroup_id": 0,
"salesServiceGroup_name": "string",
"vatPercent": 0,
"price": 0,
"dailyPrice": true,
"department_code": "string",
"salesServicesConditions": [
{
"salesServicesConditions_id": 0,
"name": "string",
"language": "string",
"description": "string"
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKList of SalesServicesSalesServicesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetSalesServicesGroups

Terminal window
# You can also use wget
curl -X GET /config/salesservices/groups \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/salesservices/groups

This endpoint the filtered list of SalesServicesGroup

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code

200 Response

{
"salesServiceGroup_id": 0,
"salesServiceGroup_name": "string",
"centerCode": "string",
"description": "string",
"isOmit": true,
"isLodgement": true,
"isBoard": true,
"isLocked": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of SalesServicesGroupSalesServicesGroupResonse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetPaymentMethodList

Terminal window
# You can also use wget
curl -X GET /config/paymentmethod \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /config/paymentmethod

This endpoint will return the filtered list of Payment Methods avaliable for the Retainers

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code

200 Response

{
"paymentMehod_id": 0,
"center_id": 0,
"centerCode": "string",
"description": "string",
"cashRegister": "string",
"carryBalance": true,
"pmType": "string",
"ticketCopyNumber": 0,
"onlyTPV": true,
"code": "string",
"externalCode": "string",
"pmOrder": 0,
"accCommission": "string",
"transferPerMovment": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of Payment methodsPaymentMethodsResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

CRM

Endpoint related to managing the CRM

GetCardexList

Terminal window
# You can also use wget
curl -X GET /CRM/cardex \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /CRM/cardex

This endpoint will return a list of Cardex ordered by timestamp that can filtered

Parameters

NameInTypeRequiredDescription
NationalityquerystringfalseNationality ISO2
AuthReceiveAdvertisingquerybooleanfalseAdvertising authorization
AuthDataExchangequerybooleanfalseData exchange authorization
AuthMessageAndPhonequerybooleanfalseContact authorization
AuthLocalizationquerybooleanfalseLocalization authorization
TimestampquerystringfalseTimestamp filter
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"cardex_id_pk": 0,
"timestamp": "string",
"nationality": "string",
"documentType": "string",
"documentNumber": "string",
"dateExpDocument": "2019-08-24T14:15:22Z",
"name": "string",
"surname": "string",
"surname2": "string",
"sex": "string",
"birthdate": "2019-08-24T14:15:22Z",
"email": "string",
"residenceCountry_id_fk": "string",
"postalcode": "string",
"province": "string",
"population": "string",
"telephone": "string",
"telephone2": "string",
"fax": "string",
"address": "string",
"unsuscribeDate": "2019-08-24T14:15:22Z",
"unsuscribeReason": "string",
"authReceiveAdvertising": true,
"authDataExchange": true,
"authMessageAndPhone": true,
"authLocalization": true,
"anniversaryDate": "2019-08-24T14:15:22Z",
"language_id_fk": "string",
"cardexSource_id_fk": 0,
"state_id_fk": 0
}

Responses

StatusMeaningDescriptionSchema
200OKCardex listCardexResponse
204No ContentNo ContentNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

PostCardexList

Terminal window
# You can also use wget
curl -X POST /CRM/cardex \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /CRM/cardex

This endpoint will create a list of Cardex provided

Body parameter

[
{
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24",
"documentID": "string",
"documentType": "string",
"expeditionDateDocument": "2019-08-24",
"address": "string",
"postalCode": "string",
"state": "string",
"city": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"sex": "s",
"email": "user@example.com",
"supportNumber": null,
"language": "string",
"anniversaryDate": null,
"authDataExchange": false,
"authReceiveAdvertising": false,
"authMessageAndPhone": false,
"authLocalization": false,
"segment_code": null,
"cardexSource_code": null
}
]

Parameters

NameInTypeRequiredDescription
AppCustomerOverridequeryinteger(int32)falseAppCustomer override (Admin)
bodybodyCardexPostfalsenone

Responses

StatusMeaningDescriptionSchema
200OKSuccessfulNone
204No ContentNo ContentNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetSegmentList

Terminal window
# You can also use wget
curl -X GET /CRM/segments \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /CRM/segments

This endpoint will return the list of CRM Segments

Parameters

NameInTypeRequiredDescription
AppCustomerOverridequeryinteger(int32)falseAppCustomer override (Admin)

200 Response

{
"segment_id": 0,
"segment_name": "string",
"isDynamic": true,
"scope": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSegment listSegmentResponse
204No ContentNo ContentNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetCardexSources

Terminal window
# You can also use wget
curl -X GET /CRM/sources \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /CRM/sources

This endpoint will return the list of Cardex Sources

200 Response

{
"cardexSource_id": 0,
"externalCode": "string",
"description": "string",
"default": true
}

Responses

StatusMeaningDescriptionSchema
200OKCardexSources listCardexSourceResponse
204No ContentNo ContentNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

UnsubCardex

Terminal window
# You can also use wget
curl -X POST /CRM/unsubscribe?cardexEmail=user%40example.com \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /CRM/unsubscribe

This endpoint will Unsubscribe a list of Cardex given a valid email

Parameters

NameInTypeRequiredDescription
cardexEmailquerystring(email)trueEmail list
AppCustomerOverridequeryinteger(int32)falseAppCustomer override (Admin)

200 Response

0

Responses

StatusMeaningDescriptionSchema
200OKAmount of Cardex unsubscribedinteger
204No ContentNo ContentNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Documents

Endpoint related to managing and retrieving Documents

GetDocumentTypes

Terminal window
# You can also use wget
curl -X GET /documents/types \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /documents/types

This endpoint will return a list of all the DocumentTypes the user has access to

200 Response

{
"documentType_id": 0,
"description": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of DocumentTypesDocumentTypesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetDocuments

Terminal window
# You can also use wget
curl -X GET /documents?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /documents

This endpoint will return a list of filtered documents given a CenterCode. Regarding the “Has” filters: null: All results, true: results with property != null, false: results with property == null. When providing a reference, only one “Has” property can be set to TRUE

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
Document_idqueryinteger(int32)falseDocument identifier
Reference_idqueryinteger(int32)falseReference identifier
DocumentTypes_idsqueryarray[integer]falseList of DocumentTypes identifiers to filter
HasTaskquerybooleanfalseAssociated to Task
HasCustomerquerybooleanfalseAssociated to Customer
HasSIHquerybooleanfalseAssociated to SIH
HasBudgetquerybooleanfalseAssociated to Budget
HasCollectionHeaderquerybooleanfalseAssociated to ColletionHeader
HasExpenseInvoicequerybooleanfalseAssociated to ExpenseInvoice
HasNotequerybooleanfalseAssociated to Note
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"document_id": 0,
"date": "2019-08-24T14:15:22Z",
"documentType_id": 0,
"description": "string",
"typeIO": true,
"centerCode": "string",
"fileName": "string",
"accessUrl": "string",
"customer_id": 0,
"storE_Supplier_id": 0,
"task_id": 0,
"note_id": 0,
"siH_id": 0,
"budget_id": 0,
"collectionHeader_id": 0,
"expenseInvoice_id": 0,
"parentType": 0,
"parent_id": 0
}

Responses

StatusMeaningDescriptionSchema
200OKList of DocumentsDocumentResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

DeleteDocuments

Terminal window
# You can also use wget
curl -X DELETE /documents \
-H 'Authorization: Bearer {access-token}'
DELETE /documents

This endpoint will remove a document given the Document_id

Parameters

NameInTypeRequiredDescription
Document_idqueryinteger(int32)falseDocument identifier

Responses

StatusMeaningDescriptionSchema
200OKDocument deleted successfullyNone
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Occupancy

Endpoint related to managing the Occupancy of the rooms

GetOccupancyRoomsList

Terminal window
# You can also use wget
curl -X GET /occupancy?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /occupancy

This endpoint will return a list of occupancy given the CenterCode and can be filtered. If no dates are provided DateFrom = Today, DateTo = Today + 365 days

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
DateFromquerystring(date-time)falseStart Date filter
DateUntilquerystring(date-time)falseEnd Date filter
RoomTypesCodequeryarray[string]falseList of Room types codes to filter
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"center_id_fk": 0,
"center": "string",
"date": "2019-08-24T14:15:22Z",
"roomTypeCenter_id_fk": 0,
"roomType": "string",
"occupancy": 0
}

Responses

StatusMeaningDescriptionSchema
200OKOccupancy listOccupancyRoomsResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Operations

Endpoint related to managing and retrieving information from Operations and Tasks

GetTaskTypes

Terminal window
# You can also use wget
curl -X GET /operations/tasks/types \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /operations/tasks/types

This endpoint will return a list of TaskTypes given the CenterCode

Parameters

NameInTypeRequiredDescription
Department_codequeryarray[string]falseDepartment codes
ShowForecastquerybooleanfalseIs show forecast

200 Response

{
"taskType_id": 0,
"taskType_name": "string",
"department_id": 0,
"department_name": "string",
"showForecast": true
}

Responses

StatusMeaningDescriptionSchema
200OKList of TaskTypesTaskTypeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetTasks

Terminal window
# You can also use wget
curl -X GET /operations/tasks \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /operations/tasks

This endpoint will return a list of Task the user has access to. TaskStatus = All by default

Parameters

NameInTypeRequiredDescription
CenterCodequerystringfalseCenter code
Task_idqueryinteger(int32)falseTask identifier
StartDateFromquerystring(date-time)falseFrom start date
StartDateToquerystring(date-time)falseTo start date
EndingDateFromquerystring(date-time)falseFrom ending date
EndingDateToquerystring(date-time)falseTo ending date
Departmentsqueryarray[string]falseList of department codes to filter
CreatedByquerystringfalseCreated by user
TaskStatusqueryinteger(int32)falseTask status
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"task_id": 0,
"centerCode": "string",
"taskNumber": 0,
"status": 0,
"blockPlanned": true,
"priority": 0,
"department_id": 0,
"department_code": "string",
"taskType_id": 0,
"taskType_code": "string",
"employeeInformed_id": 0,
"employeeInformed": "string",
"employeeRepair_id": 0,
"employeeRepair": "string",
"employeeNoticed_id": 0,
"employeeNoticed": "string",
"room_code": "string",
"centerZone_code": "string",
"asset_id": 0,
"store_id": 0,
"fixedAsset": "string",
"lockedRoom": true,
"dateCommunication": "2019-08-24T14:15:22Z",
"dateStartingTask": "2019-08-24T14:15:22Z",
"dateEndingTask": "2019-08-24T14:15:22Z",
"insuranceNotified": true,
"courtesyCall": 0,
"observations": "string",
"taskPlanning_id": 0,
"taskPlanningDescription": "string",
"creationUser": "string",
"amountServices": 0,
"amountProducts": 0,
"documents": [
{
"document_id": 0,
"date": "2019-08-24T14:15:22Z",
"description": "string",
"fileName": "string",
"accessUrl": "string"
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKList of TasksTasksResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

AddTask

Terminal window
# You can also use wget
curl -X POST /operations/tasks \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /operations/tasks

This endpoint will create a new Task

Body parameter

CenterCode: string
TaskType_id: 0
DateCommunication: 2019-08-24T14:15:22Z
DateStartingTask: 2019-08-24T14:15:22Z
DateEndingTask: 2019-08-24T14:15:22Z
Status: 0
Room_code: string
LockedRoom: true
CenterZone_code: string
Asset_id: 0
Store_id: 0
Priority: 0
LockPrevision: true
EmployeeInformed_id: 0
EmployeeRepair_id: 0
EmployeeNoticed_id: 0
CourtesyCall: 0
InsuranceNotified: true
Observations: string
Documents:
- string

Parameters

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» CenterCodebodystringtrueCenter code
» TaskType_idbodyinteger(int32)trueTaskType identifier
» DateCommunicationbodystring(date-time)trueCommunication date
» DateStartingTaskbodystring(date-time)trueStart date
» DateEndingTaskbodystring(date-time)falseEnd date
» Statusbodyinteger(int32)falseStatus
» Room_codebodystringfalseRoom code
» LockedRoombodybooleanfalseIs room locked
» CenterZone_codebodystringfalseCenterZone code
» Asset_idbodyinteger(int32)falseAsset identifier
» Store_idbodyinteger(int32)falseStore identifier
» Prioritybodyinteger(int32)falsePriority (0-3)
» LockPrevisionbodybooleanfalseLock prevision
» EmployeeInformed_idbodyinteger(int32)falseEmployee informed identifier
» EmployeeRepair_idbodyinteger(int32)falseEmployee repair identifier
» EmployeeNoticed_idbodyinteger(int32)falseEmployee noticed
» CourtesyCallbodyinteger(int32)falseCourtesy call code
» InsuranceNotifiedbodybooleanfalseIs insurance notified
» ObservationsbodystringfalseObservations
» Documentsbody[string]falseDocument list

200 Response

{
"task_id": 0,
"centerCode": "string",
"taskNumber": 0,
"status": 0,
"blockPlanned": true,
"priority": 0,
"department_id": 0,
"department_code": "string",
"taskType_id": 0,
"taskType_code": "string",
"employeeInformed_id": 0,
"employeeInformed": "string",
"employeeRepair_id": 0,
"employeeRepair": "string",
"employeeNoticed_id": 0,
"employeeNoticed": "string",
"room_code": "string",
"centerZone_code": "string",
"asset_id": 0,
"store_id": 0,
"fixedAsset": "string",
"lockedRoom": true,
"dateCommunication": "2019-08-24T14:15:22Z",
"dateStartingTask": "2019-08-24T14:15:22Z",
"dateEndingTask": "2019-08-24T14:15:22Z",
"insuranceNotified": true,
"courtesyCall": 0,
"observations": "string",
"taskPlanning_id": 0,
"taskPlanningDescription": "string",
"creationUser": "string",
"amountServices": 0,
"amountProducts": 0,
"documents": [
{
"document_id": 0,
"date": "2019-08-24T14:15:22Z",
"description": "string",
"fileName": "string",
"accessUrl": "string"
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKTask createdTasksResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

UpdateTask

Terminal window
# You can also use wget
curl -X PATCH /operations/tasks/{task_id} \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
PATCH /operations/tasks/{task_id}

This endpoint will update a task given a Task_id

Body parameter

CenterCode: string
TaskType_id: 0
DateCommunication: 2019-08-24T14:15:22Z
DateStartingTask: 2019-08-24T14:15:22Z
DateEndingTask: 2019-08-24T14:15:22Z
Status: 0
Room_code: string
LockedRoom: true
CenterZone_code: string
Asset_id: 0
Store_id: 0
Priority: 0
LockPrevision: true
EmployeeInformed_id: 0
EmployeeRepair_id: 0
EmployeeNoticed_id: 0
CourtesyCall: 0
InsuranceNotified: true
Observations: string
Documents:
- string

Parameters

NameInTypeRequiredDescription
task_idpathinteger(int32)trueTask identifier
bodybodyobjectfalsenone
» CenterCodebodystringfalseCenter code
» TaskType_idbodyinteger(int32)falseTaskType identifier
» DateCommunicationbodystring(date-time)falseCommunication date
» DateStartingTaskbodystring(date-time)falseStart date
» DateEndingTaskbodystring(date-time)falseEnd date
» Statusbodyinteger(int32)falseStatus
» Room_codebodystringfalseRoom code
» LockedRoombodybooleanfalseIs room locked
» CenterZone_codebodystringfalseCenterZone code
» Asset_idbodyinteger(int32)falseAsset identifier
» Store_idbodyinteger(int32)falseStore identifier
» Prioritybodyinteger(int32)falsePriority (0-3)
» LockPrevisionbodybooleanfalseLock prevision
» EmployeeInformed_idbodyinteger(int32)falseEmployee informed identifier
» EmployeeRepair_idbodyinteger(int32)falseEmployee repair identifier
» EmployeeNoticed_idbodyinteger(int32)falseEmployee noticed
» CourtesyCallbodyinteger(int32)falseCourtesy call code
» InsuranceNotifiedbodybooleanfalseIs insurance notified
» ObservationsbodystringfalseObservations
» Documentsbody[string]falseDocument list

200 Response

{
"task_id": 0,
"centerCode": "string",
"taskNumber": 0,
"status": 0,
"blockPlanned": true,
"priority": 0,
"department_id": 0,
"department_code": "string",
"taskType_id": 0,
"taskType_code": "string",
"employeeInformed_id": 0,
"employeeInformed": "string",
"employeeRepair_id": 0,
"employeeRepair": "string",
"employeeNoticed_id": 0,
"employeeNoticed": "string",
"room_code": "string",
"centerZone_code": "string",
"asset_id": 0,
"store_id": 0,
"fixedAsset": "string",
"lockedRoom": true,
"dateCommunication": "2019-08-24T14:15:22Z",
"dateStartingTask": "2019-08-24T14:15:22Z",
"dateEndingTask": "2019-08-24T14:15:22Z",
"insuranceNotified": true,
"courtesyCall": 0,
"observations": "string",
"taskPlanning_id": 0,
"taskPlanningDescription": "string",
"creationUser": "string",
"amountServices": 0,
"amountProducts": 0,
"documents": [
{
"document_id": 0,
"date": "2019-08-24T14:15:22Z",
"description": "string",
"fileName": "string",
"accessUrl": "string"
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKTask modified sucessfullyTasksResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetFixedAssets

Terminal window
# You can also use wget
curl -X GET /operations/assets?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /operations/assets

This endpoint will return a list of Fixed Assets given a CenterCode

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
Store_codequerystringfalseStore external code
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"product_id": 0,
"productName": "string",
"store_id": 0,
"storeCode": "string",
"storeName": "string",
"description": "string",
"reference": "string",
"code": "string",
"centerCode": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKFixed Assets ListFixedAssetResponse
204No ContentNo Fixed Assets were foundNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

UpdateCleanStatus

Terminal window
# You can also use wget
curl -X PATCH /operations/rooms/clean_status/{room_id}?IsClean=true \
-H 'Authorization: Bearer {access-token}'
PATCH /operations/rooms/clean_status/{room_id}

This endpoint is used to change the clean status of a given room

Parameters

NameInTypeRequiredDescription
room_idpathinteger(int32)trueRoom identifier
IsCleanquerybooleantrueIs the Room clean

Responses

StatusMeaningDescriptionSchema
200OKStatus updated sucessfullyNone
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

PaxByRoom

Endpoint related to managing information from the occupants in a Reservation. They might be referred also as Pax, ReservationPax and PaxByRoom

GetPax

Terminal window
# You can also use wget
curl -X GET /pxr?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /pxr

This endpoint will return the reservationPax info given a Hotel code and an identifier, RoomNumber or stayDate

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
room_numberquerystringfalseRoom number filter
pms_idqueryinteger(int32)falseOccupant Identifier
ReservationIdqueryinteger(int32)falseReservation Identifier
arrivalDatequerystring(date-time)falseArrival date
exitDatequerystring(date-time)falseExit date
emailquerystringfalseEmail filter
stayDatequerystring(date-time)falseDate between ArrivalDate and ExitDate
ReservationStatusqueryarray[string]falseReservation status filter

200 Response

{
"pmS_id": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"sex": "string",
"paxType": "string",
"arrival": "2019-08-24T14:15:22Z",
"exit": "2019-08-24T14:15:22Z",
"birthDate": "2019-08-24T14:15:22Z",
"nationality": "string",
"birthCountry": "string",
"countryResidence": "string",
"documentID": "string",
"email": "string",
"address": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"phone": "string",
"ad": 0,
"jr": 0,
"bb": 0,
"ch": 0,
"reservation_id": 0,
"reservationStatus": "string",
"rsvStatusCode": 0,
"room_number": "string",
"room_type": "string",
"salesDate": "2019-08-24T14:15:22Z",
"res_channel": "string",
"res_agency": "string",
"board_type": "string",
"comments": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of filtered PaxPaxbyRoomResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

UpdatePax

Terminal window
# You can also use wget
curl -X PATCH /pxr?CenterCode=string&pms_id=0 \
-H 'Authorization: Bearer {access-token}'
PATCH /pxr

This endpoint will update the ReservationPax email and marketing_consent attributes

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
pms_idqueryinteger(int32)trueOccupant Identifier
emailquerystring(email)falseNew Email
marketing_consentquerybooleanfalseIf the Pax accepts marketing emails

Responses

StatusMeaningDescriptionSchema
200OKPax updated successfullyNone
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

AddPax

Terminal window
# You can also use wget
curl -X POST /pxr \
-H 'Content-Type: application/json' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /pxr

This endpoint will add a Pax to a Reservation

Body parameter

{
"reservationId": 0,
"occupants": [
{
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"paxType": "AD",
"sex": "string",
"email": "user@example.com",
"repeaterClient": false,
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true
}
]
}

Parameters

NameInTypeRequiredDescription
bodybodyPaxPostfalsenone

200 Response

{
"pmS_id": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"sex": "string",
"paxType": "string",
"arrival": "2019-08-24T14:15:22Z",
"exit": "2019-08-24T14:15:22Z",
"birthDate": "2019-08-24T14:15:22Z",
"nationality": "string",
"birthCountry": "string",
"countryResidence": "string",
"documentID": "string",
"email": "string",
"address": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"phone": "string",
"ad": 0,
"jr": 0,
"bb": 0,
"ch": 0,
"reservation_id": 0,
"reservationStatus": "string",
"rsvStatusCode": 0,
"room_number": "string",
"room_type": "string",
"salesDate": "2019-08-24T14:15:22Z",
"res_channel": "string",
"res_agency": "string",
"board_type": "string",
"comments": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKPax added succesfullyPaxbyRoomResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

PutPax

Terminal window
# You can also use wget
curl -X PUT /pxr \
-H 'Content-Type: application/json' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'

PUT /pxr

This endpoint will update a Pax given its identifier and a complete Pax data. Fields not provided will not retain previous data

Body parameter

{
"pmS_id": 0,
"occupant": {
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"paxType": "AD",
"sex": "string",
"email": "user@example.com",
"repeaterClient": false,
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true
}
}

Parameters

NameInTypeRequiredDescription
bodybodyPaxPutfalsenone

200 Response

{
"pmS_id": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"sex": "string",
"paxType": "string",
"arrival": "2019-08-24T14:15:22Z",
"exit": "2019-08-24T14:15:22Z",
"birthDate": "2019-08-24T14:15:22Z",
"nationality": "string",
"birthCountry": "string",
"countryResidence": "string",
"documentID": "string",
"email": "string",
"address": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"phone": "string",
"ad": 0,
"jr": 0,
"bb": 0,
"ch": 0,
"reservation_id": 0,
"reservationStatus": "string",
"rsvStatusCode": 0,
"room_number": "string",
"room_type": "string",
"salesDate": "2019-08-24T14:15:22Z",
"res_channel": "string",
"res_agency": "string",
"board_type": "string",
"comments": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKPax modified succesfullyPaxbyRoomResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Prices

Endpoint related to managing the Prices from the reservations

GetPrice

Terminal window
# You can also use wget
curl -X GET /prices?ReservationId=0 \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /prices

This endpoint will return the Prices info given a ReservationId. If Contract number is provided in the response, the price is from a contract.

Parameters

NameInTypeRequiredDescription
ReservationIdqueryinteger(int32)trueReservation Identifier
PriceType_idquerystringfalsePrice Type identifier

200 Response

{
"priceId": 0,
"reservationId": 0,
"contractId": 0,
"contractNumber": "string",
"dailyPrice": 0,
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"priceType_id": "string",
"paxType": "string",
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"roomType": "string",
"boardType": "string",
"currency": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of pricesPricesResponse
204No ContentNo prices were foundNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

AddPrice

Terminal window
# You can also use wget
curl -X POST /prices \
-H 'Content-Type: application/json' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /prices

This endpoint will add a ManualPrice to a Reservation given the ReservationId

Body parameter

{
"reservationId": 0,
"pricesList": [
{
"date": "2019-08-24T14:15:22Z",
"amount": 0,
"currency": "string",
"taxes": 0
}
]
}

Parameters

NameInTypeRequiredDescription
bodybodyPricePostfalsenone

200 Response

{
"priceId": 0,
"reservationId": 0,
"contractId": 0,
"contractNumber": "string",
"dailyPrice": 0,
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"priceType_id": "string",
"paxType": "string",
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"roomType": "string",
"boardType": "string",
"currency": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKManualPrice added successfullyPricesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Rates

Endpoint related to managing the Rates

GetRatesList

Terminal window
# You can also use wget
curl -X GET /rates?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /rates

This endpoint will return a list of Rates given the CenterCode and can be filtered, returns at MAX 2000 objects

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueHotel code
DateFromquerystring(date-time)falseStart date filter
DateUntilquerystring(date-time)falseEnt date filter
RoomTypesCodequeryarray[string]falseList of Room types codes to filter
BoardTypesCodequeryarray[string]falseList of Board types codes to filter
RateTypesCodequeryarray[string]falseList of Rate types codes to filter
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"rateId": 0,
"center_id_fk": 0,
"centerCode": "string",
"date": "2019-08-24T14:15:22Z",
"roomTypeCenter_id_fk": 0,
"roomTypeCenterCode": "string",
"boardTypeCenter_id_fk": 0,
"boardTypeCenterCode": "string",
"rateType_id_fk": 0,
"rateTypeCode": "string",
"description": "string",
"roomRate": 0,
"adRate": 0,
"jrRate": 0,
"chRate": 0,
"bbRate": 0,
"lastUpdate": "2019-08-24T14:15:22Z"
}

Responses

StatusMeaningDescriptionSchema
200OKList of filtered RatesRatesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetRateTypes

Terminal window
# You can also use wget
curl -X GET /rates/ratetypes \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /rates/ratetypes

This endpoint will return a list of Ratetypes that can be filtered

Parameters

NameInTypeRequiredDescription
PricePerqueryarray[string]falseList of Price Type identifier to filter
PriceTypesqueryarray[string]falseList of Discount type to filter (b: base, p: percentage
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"rateType_id_pk": 0,
"name": "string",
"pricePer": "string",
"discountType": "string",
"associatedRateType_id_fk": 0,
"associatedRateType": "string",
"quantity": 0,
"valueType": true,
"valueTypeCode": "string",
"position": 0,
"description": "string",
"locked": true,
"lockRetainersReturn": true,
"advertismentCheckIn": true,
"advertismentCheckInText": "string",
"paymentPercentage": 0
}

Responses

StatusMeaningDescriptionSchema
200OKList of filtered Rate typesRateTypesResponse
204No ContentNo Rate types were found with applied filtersNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Reservations

Endpoint related to managing and retrieving information from Reservations

GetReservations

Terminal window
# You can also use wget
curl -X GET /reservations?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /reservations

This endpoint will return a list of filtered Reservations given a CenterCode. You can specify a date ranges using the Arrival and Exit dates

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
ReservationIdqueryinteger(int32)falseReservation identifier
ReferencequerystringfalseReservation reference
SurnamequerystringfalseResponsible surname filter
RoomNumberquerystringfalseRoom number filter
ArrivalDateFromquerystring(date-time)falseArrival date from
ArrivalDateToquerystring(date-time)falseArrival date to
ExitDateFromquerystring(date-time)falseExit date from
ExitDateToquerystring(date-time)falseExit date to
ReservationStatusqueryarray[string]falseReservation status filter
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"reservationId": 0,
"reference": "string",
"reservationNumber": 0,
"year": 0,
"arrivalDate": "2019-08-24T14:15:22Z",
"exitDate": "2019-08-24T14:15:22Z",
"rsvStatus_id": 0,
"rsvStatus_code": "string",
"responsible": "string",
"paxHab": 0,
"email": "string",
"preferences": "string",
"comments": "string",
"roomNumber": "string",
"fixedRoom": true,
"centerCode": "string",
"centerNumberPrefix": "string",
"reservationType": "string",
"desglose": 0,
"roomTypeFra": "string",
"roomTypeUse": "string",
"boardTypeFra": "string",
"boardTypeUse": "string",
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0,
"preCheckIn": true,
"salesChannel_id": 0,
"salesChannel": "string",
"campaign_id": 0,
"campaign": "string",
"crmSegment_id": 0,
"crmSegment": "string",
"triplet": {
"clientComposition_id": 0,
"ttoO_id": 0,
"ttoO_code": "string",
"agency_id": 0,
"agency_code": "string",
"customer_id": 0,
"customer_code": "string"
},
"occupants": [
{
"reservationPaxId": 0,
"position": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentType": "string",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"country": "string",
"nationality": "string",
"language": "string",
"paxType": "string",
"sex": "string",
"email": "string",
"phone": "string",
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true,
"cardexId": 0
}
],
"observations": [
"string"
]
}

Responses

StatusMeaningDescriptionSchema
200OKReservation listReservationResponse
204No ContentNo Reservations were foundNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

CreateReservation

Terminal window
# You can also use wget
curl -X POST /reservations \
-H 'Content-Type: application/json' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /reservations

This endpoint will Create a Reservation with all the attributes from the body. If multiple rooms are provided, a new reservation will be created for each room

Body parameter

{
"desglose": 0,
"year": 0,
"arrivalDate": "2019-08-24T14:15:22Z",
"exitDate": "2019-08-24T14:15:22Z",
"centerCode": "string",
"salesDate": "2019-08-24T14:15:22Z",
"localizer": "string",
"crS_NotificationSended": true,
"responsible": "string",
"crM_SegmentCode": "string",
"futureProduction": true,
"campaignCode": "string",
"sentToPushTech": false,
"dayUse": true,
"preCheckin": false,
"sentToReviewPro": false,
"triplet": {
"tourOperator": "string",
"agency": "string",
"customer": "string"
},
"roomList": [
{
"roomNumber": "string",
"isFixed": true,
"groupIdentifier": "string",
"roomTypeFRA": "string",
"roomTypeUSE": "string",
"boardType": "string",
"rateCode": "string",
"desglose": 0,
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0,
"commentList": [
"string"
],
"preferencesList": [
"string"
],
"paxes": [
{
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"paxType": "AD",
"sex": "string",
"email": "user@example.com",
"repeaterClient": false,
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true
}
],
"prices": [
{
"date": "2019-08-24T14:15:22Z",
"amount": 0,
"currency": "string",
"taxes": 0
}
],
"extras": [
{
"postMappingSaleServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"chargeType": "string"
}
]
}
],
"retainersList": [
{
"code": "string",
"retainerBreakDown": 0,
"rAmount": 0,
"paymentMethod": "string",
"observations": "string",
"retainerDateTime": "2019-08-24T14:15:22Z",
"retainerType_id": 0,
"retainerDate": "string",
"formatDate": "string"
}
]
}

Parameters

NameInTypeRequiredDescription
bodybodyReservationsPostfalsenone

200 Response

{
"reservationId": 0,
"reference": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKReservation created successfullyReservationPostResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

UpdateReservation

Terminal window
# You can also use wget
curl -X PATCH /reservations/{reservationId} \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
PATCH /reservations/{reservationId}

This endpoint will update the Reservation observations and Preferences given a ReservationId. Does not override previous comment values. The Reservation must not have a room assigned and The ReservationStatus must be New or Confirmed

Parameters

NameInTypeRequiredDescription
reservationIdpathinteger(int32)trueReservation Identifier
newBoardTypeUsequerystringfalseNew BoardType use code
newRoomTypeUsequerystringfalseNew RoomType use code
observationsqueryarray[string]falseList of new observations
Preferencesqueryarray[string]falseList of new preferences
PreCheckinquerybooleanfalsePre-CheckIn

200 Response

{
"reservationId": 0,
"reference": "string",
"reservationNumber": 0,
"year": 0,
"arrivalDate": "2019-08-24T14:15:22Z",
"exitDate": "2019-08-24T14:15:22Z",
"rsvStatus_id": 0,
"rsvStatus_code": "string",
"responsible": "string",
"paxHab": 0,
"email": "string",
"preferences": "string",
"comments": "string",
"roomNumber": "string",
"fixedRoom": true,
"centerCode": "string",
"centerNumberPrefix": "string",
"reservationType": "string",
"desglose": 0,
"roomTypeFra": "string",
"roomTypeUse": "string",
"boardTypeFra": "string",
"boardTypeUse": "string",
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0,
"preCheckIn": true,
"salesChannel_id": 0,
"salesChannel": "string",
"campaign_id": 0,
"campaign": "string",
"crmSegment_id": 0,
"crmSegment": "string",
"triplet": {
"clientComposition_id": 0,
"ttoO_id": 0,
"ttoO_code": "string",
"agency_id": 0,
"agency_code": "string",
"customer_id": 0,
"customer_code": "string"
},
"occupants": [
{
"reservationPaxId": 0,
"position": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentType": "string",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"country": "string",
"nationality": "string",
"language": "string",
"paxType": "string",
"sex": "string",
"email": "string",
"phone": "string",
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true,
"cardexId": 0
}
],
"observations": [
"string"
]
}

Responses

StatusMeaningDescriptionSchema
200OKReservation updated successfullyReservationResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

CancelReservation

Terminal window
# You can also use wget
curl -X DELETE /reservations/{reservationId} \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
DELETE /reservations/{reservationId}

This endpoint will Cancel a Reservation given a ReservationId

Parameters

NameInTypeRequiredDescription
reservationIdpathinteger(int32)trueReservation Identifier
cancellationDatequerystring(date-time)falseCancellation date

200 Response

{
"reservationId": 0,
"reference": "string",
"reservationNumber": 0,
"year": 0,
"arrivalDate": "2019-08-24T14:15:22Z",
"exitDate": "2019-08-24T14:15:22Z",
"rsvStatus_id": 0,
"rsvStatus_code": "string",
"responsible": "string",
"paxHab": 0,
"email": "string",
"preferences": "string",
"comments": "string",
"roomNumber": "string",
"fixedRoom": true,
"centerCode": "string",
"centerNumberPrefix": "string",
"reservationType": "string",
"desglose": 0,
"roomTypeFra": "string",
"roomTypeUse": "string",
"boardTypeFra": "string",
"boardTypeUse": "string",
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0,
"preCheckIn": true,
"salesChannel_id": 0,
"salesChannel": "string",
"campaign_id": 0,
"campaign": "string",
"crmSegment_id": 0,
"crmSegment": "string",
"triplet": {
"clientComposition_id": 0,
"ttoO_id": 0,
"ttoO_code": "string",
"agency_id": 0,
"agency_code": "string",
"customer_id": 0,
"customer_code": "string"
},
"occupants": [
{
"reservationPaxId": 0,
"position": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentType": "string",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"country": "string",
"nationality": "string",
"language": "string",
"paxType": "string",
"sex": "string",
"email": "string",
"phone": "string",
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true,
"cardexId": 0
}
],
"observations": [
"string"
]
}

Responses

StatusMeaningDescriptionSchema
200OKReservation canceled successfullyReservationResponse
204No ContentNo ContentNone
400Bad RequestReservation could not be cancelled, see response errorNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetTTOOAgency

Terminal window
# You can also use wget
curl -X GET /ttoo_agency \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /ttoo_agency

This endpoint will return a list of all the Tour operators and Agencies

200 Response

{
"documentType_id": 0,
"description": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKList of DocumentTypesDocumentTypesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Retainers

Endpoint related to managing the Retainers from the Reservations. The Retainers are, in essence, the bill of the stay and a Reservation can have multiple retainers.

GetRetainersList

Terminal window
# You can also use wget
curl -X GET /retainers \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /retainers

This endpoint will return the Retainers info given a ReservationId, or RetainerNumber

Parameters

NameInTypeRequiredDescription
ReservationIdqueryinteger(int32)falseReservation identifier
RetainerNumberquerystringfalseRetainer number
RetainerDatequerystring(date-time)falseRetainer Date

200 Response

{
"reservationId": 0,
"reservationReference": "string",
"retainerId": 0,
"retainerNumber": "string",
"retainerType_id": 0,
"retainerType": "string",
"amount": 0,
"date": "2019-08-24T14:15:22Z",
"retainerStatus_id": 0,
"retainerStatus": "string",
"observations": "string",
"paymentMethod": "string",
"cashRegister": true,
"invStatus_id_fk": 0,
"invoiceStatus": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKRetainers listRetainersResponse
204No ContentNo retainers were foundNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

AddRetainer

Terminal window
# You can also use wget
curl -X POST /retainers \
-H 'Content-Type: application/json' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /retainers

This endpoint will add a Retainer to a Reservation given the ReservationId

Body parameter

{
"reservationId": 0,
"retainerCRX": {
"code": "string",
"retainerBreakDown": 0,
"rAmount": 0,
"paymentMethod": "string",
"observations": "string",
"retainerDateTime": "2019-08-24T14:15:22Z",
"retainerType_id": 0,
"retainerDate": "string",
"formatDate": "string"
}
}

Parameters

NameInTypeRequiredDescription
bodybodyRetainersPostfalsenone

200 Response

{
"reservationId": 0,
"reservationReference": "string",
"retainerId": 0,
"retainerNumber": "string",
"retainerType_id": 0,
"retainerType": "string",
"amount": 0,
"date": "2019-08-24T14:15:22Z",
"retainerStatus_id": 0,
"retainerStatus": "string",
"observations": "string",
"paymentMethod": "string",
"cashRegister": true,
"invStatus_id_fk": 0,
"invoiceStatus": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKReservation retainers listRetainersResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

RRHH

Endpoint related to RRHH and Employees information

AddEmployee

Terminal window
# You can also use wget
curl -X POST /RRHH/employees \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /RRHH/employees

This endpoint will create an Employee given the information provided. If the Employee already exists, only the Contracts are added in case they don’t overlap with existing ones

Body parameter

AppCustomer_id: 0
EmployeeCode: string
HiringType: string
Name: string
Surname1: string
Surname2: string
Document: string
SSNumber: string
DossierCode: string
BirthDate: 2019-08-24T14:15:22Z
Gender: s
BankAccount: string
Address: string
PostalCode: string
City: string
Country: string
Phone: string
Mobile: string
Email: user@example.com
EmergencyPhone: string
EmployeeImage: string
Contracts:
- centerCode: string
department_id: 0
contractType_id: 0
dailyWorkHours: 0
weeklyWorkDays: 0
initialDate: 2019-08-24T14:15:22Z
position_id: 0
vacationDays: 0
seniorityDate: 2019-08-24T14:15:22Z
endDate: 2019-08-24T14:15:22Z
endDateVacation: 2019-08-24T14:15:22Z
wageLevel: 0

Parameters

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» AppCustomer_idbodyinteger(int32)trueAppCustomer identifier
» EmployeeCodebodystringtrueEmployee code
» HiringTypebodystringtrueHiring type
» NamebodystringtrueName
» Surname1bodystringtrueSurname 1
» Surname2bodystringfalseSurname 2
» DocumentbodystringfalseEmployee document
» SSNumberbodystringfalseSocial security number
» DossierCodebodystringfalseDossier code
» BirthDatebodystring(date-time)falseBirth date
» GenderbodystringfalseGender F/M
» BankAccountbodystringfalseBank Account
» AddressbodystringfalseAddress
» PostalCodebodystringfalsePostal code
» CitybodystringfalseCity
» CountrybodystringfalseCountry ISO3
» PhonebodystringfalsePhone
» MobilebodystringfalseMobile
» Emailbodystring(email)falseEmail
» EmergencyPhonebodystringfalseEmergency phone
» EmployeeImagebodystring(binary)falseEmployee image
» Contractsbody[RRHH_ContractPost]falseList of contracts
»» centerCodebodystringtrueCenter code
»» department_idbodyinteger(int32)trueDepartment identifier
»» contractType_idbodyinteger(int32)trueContract Type identifier
»» dailyWorkHoursbodynumber(double)trueDaily work hours
»» weeklyWorkDaysbodyinteger(int32)trueWeekly work hours
»» initialDatebodystring(date-time)trueInitial date
»» position_idbodyinteger(int32)¦nullfalsePosition identifier
»» vacationDaysbodynumber(double)¦nullfalseAnnual vacation days
»» seniorityDatebodystring(date-time)¦nullfalseSeniority date
»» endDatebodystring(date-time)¦nullfalseEnd date
»» endDateVacationbodystring(date-time)¦nullfalseEnd date with vacations
»» wageLevelbodyinteger(int32)¦nullfalseWage level

200 Response

{
"employee_id": 0,
"employeeCode": "string",
"hiringType": "string",
"name": "string",
"surname1": "string",
"surname2": "string",
"document": "string",
"ssNumber": "string",
"dossierCode": "string",
"birthDate": "2019-08-24T14:15:22Z",
"gender": "string",
"bankAccount": "string",
"address": "string",
"postalCode": "string",
"city": "string",
"country": "string",
"phone": "string",
"mobile": "string",
"email": "string",
"emergencyPhone": "string",
"contracts": [
{
"contract_id_pk": 0,
"centerCode": "string",
"department_id": 0,
"department": "string",
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"contractType": "string",
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"finishContractReason": "string",
"position": "string",
"wageLevel": 0,
"extension": true,
"seniorityDate": "2019-08-24T14:15:22Z",
"onLeave": true,
"guarenteedPeriod": 0,
"testContratEndDate": "2019-08-24T14:15:22Z",
"annualVacation": 0
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKCreated EmployeeEmployeeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetEmployees

Terminal window
# You can also use wget
curl -X GET /RRHH/employees \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /RRHH/employees

This endpoint will return a list of Employees with their Contracts

Parameters

NameInTypeRequiredDescription
Employee_codequerystringfalseEmployee code
Employee_idqueryinteger(int32)falseEmployee identifier
ActiveDatequerystring(date-time)falseActive date // None by default
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"employee_id": 0,
"employeeCode": "string",
"hiringType": "string",
"name": "string",
"surname1": "string",
"surname2": "string",
"document": "string",
"ssNumber": "string",
"dossierCode": "string",
"birthDate": "2019-08-24T14:15:22Z",
"gender": "string",
"bankAccount": "string",
"address": "string",
"postalCode": "string",
"city": "string",
"country": "string",
"phone": "string",
"mobile": "string",
"email": "string",
"emergencyPhone": "string",
"contracts": [
{
"contract_id_pk": 0,
"centerCode": "string",
"department_id": 0,
"department": "string",
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"contractType": "string",
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"finishContractReason": "string",
"position": "string",
"wageLevel": 0,
"extension": true,
"seniorityDate": "2019-08-24T14:15:22Z",
"onLeave": true,
"guarenteedPeriod": 0,
"testContratEndDate": "2019-08-24T14:15:22Z",
"annualVacation": 0
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKList of EmployeesEmployeeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

UpdateEmployee

Terminal window
# You can also use wget
curl -X PATCH /RRHH/employees/{employeeId} \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
PATCH /RRHH/employees/{employeeId}

This endpoint will modify an Employee given it’s unique identifier. Only provided values will be updated

Body parameter

EmployeeCode: string
HiringType: string
Name: string
Surname1: string
Surname2: string
Document: string
SSNumber: string
DossierCode: string
BirthDate: 2019-08-24T14:15:22Z
Gender: s
BankAccount: string
Address: string
PostalCode: string
City: string
Country: string
Phone: string
Mobile: string
Email: user@example.com
EmergencyPhone: string
EmployeeImage: string

Parameters

NameInTypeRequiredDescription
employeeIdpathinteger(int32)trueEmployee identifier
bodybodyobjectfalsenone
» EmployeeCodebodystringfalseEmployee code
» HiringTypebodystringfalseHiring type
» NamebodystringfalseName
» Surname1bodystringfalseSurname 1
» Surname2bodystringfalseSurname 2
» DocumentbodystringfalseEmployee document
» SSNumberbodystringfalseSocial security number
» DossierCodebodystringfalseDossier code
» BirthDatebodystring(date-time)falseBirth date
» GenderbodystringfalseGender F/M
» BankAccountbodystringfalseBank Account
» AddressbodystringfalseAddress
» PostalCodebodystringfalsePostal code
» CitybodystringfalseCity
» CountrybodystringfalseCountry ISO3
» PhonebodystringfalsePhone
» MobilebodystringfalseMobile
» Emailbodystring(email)falseEmail
» EmergencyPhonebodystringfalseEmergency phone
» EmployeeImagebodystring(binary)falseEmployee image

200 Response

{
"employee_id": 0,
"employeeCode": "string",
"hiringType": "string",
"name": "string",
"surname1": "string",
"surname2": "string",
"document": "string",
"ssNumber": "string",
"dossierCode": "string",
"birthDate": "2019-08-24T14:15:22Z",
"gender": "string",
"bankAccount": "string",
"address": "string",
"postalCode": "string",
"city": "string",
"country": "string",
"phone": "string",
"mobile": "string",
"email": "string",
"emergencyPhone": "string",
"contracts": [
{
"contract_id_pk": 0,
"centerCode": "string",
"department_id": 0,
"department": "string",
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"contractType": "string",
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"finishContractReason": "string",
"position": "string",
"wageLevel": 0,
"extension": true,
"seniorityDate": "2019-08-24T14:15:22Z",
"onLeave": true,
"guarenteedPeriod": 0,
"testContratEndDate": "2019-08-24T14:15:22Z",
"annualVacation": 0
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKModified EmployeeEmployeeResponse
204No ContentCould not find the EmployeeNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

AddIncidence

Terminal window
# You can also use wget
curl -X POST /RRHH/incidences \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /RRHH/incidences

This endpoint will add an incidence to an Employee given the Employee code and department or a Contract identifier. CAUTION: Content-Type: multipart/form-data

Body parameter

CenterCode: string
Contract_id: 0
Employee_code: string
Department_id: 0
StartDate: 2019-08-24T14:15:22Z
EndDate: 2019-08-24T14:15:22Z
Quantity: 0
IncidenceType_id: 0
Group_id: 0
Description: string
IncidenceFile: string

Parameters

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» CenterCodebodystringtrueCenter code
» Contract_idbodyinteger(int32)falseContract identifier
» Employee_codebodystringfalseEmployee code
» Department_idbodyinteger(int32)falseDepartment identifier
» StartDatebodystring(date-time)trueStart date
» EndDatebodystring(date-time)trueEnd date
» Quantitybodynumber(double)trueQuantity
» IncidenceType_idbodyinteger(int32)trueIncidenceType identifier
» Group_idbodyinteger(int32)falseGroup identifier
» DescriptionbodystringfalseDescription
» IncidenceFilebodystring(binary)falseInicidence file

200 Response

{
"employee_id": 0,
"employeeCode": "string",
"hiringType": "string",
"name": "string",
"surname1": "string",
"surname2": "string",
"document": "string",
"ssNumber": "string",
"dossierCode": "string",
"birthDate": "2019-08-24T14:15:22Z",
"gender": "string",
"bankAccount": "string",
"address": "string",
"postalCode": "string",
"city": "string",
"country": "string",
"phone": "string",
"mobile": "string",
"email": "string",
"emergencyPhone": "string",
"contracts": [
{
"contract_id_pk": 0,
"centerCode": "string",
"department_id": 0,
"department": "string",
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"contractType": "string",
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"finishContractReason": "string",
"position": "string",
"wageLevel": 0,
"extension": true,
"seniorityDate": "2019-08-24T14:15:22Z",
"onLeave": true,
"guarenteedPeriod": 0,
"testContratEndDate": "2019-08-24T14:15:22Z",
"annualVacation": 0
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKEmployee with it’s contractsEmployeeResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

AddSchedule

Terminal window
# You can also use wget
curl -X POST /RRHH/schedules \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /RRHH/schedules

This endpoint will add or modify an employee schedule given the Employee code and department

Body parameter

{
"schedules": [
{
"centerCode": "string",
"employeeCode": "string",
"dateTime": "2019-08-24T14:15:22Z",
"department": "string",
"type": 0
}
]
}

Parameters

NameInTypeRequiredDescription
bodybodySchedulePostfalsenone

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully importedNone
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

ModifyContract

Terminal window
# You can also use wget
curl -X PUT /RRHH/contracts/{contract_id} \
-H 'Content-Type: application/json' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'

PUT /RRHH/contracts/{contract_id}

This endpoint will modify an existing contract provided a contract_id. If null values are provided on non-required fields, prior values will be kept.

Body parameter

{
"centerCode": "string",
"department_id": 0,
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"initialDate": "2019-08-24T14:15:22Z",
"position_id": 0,
"vacationDays": 0,
"seniorityDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"wageLevel": 0
}

Parameters

NameInTypeRequiredDescription
contract_idpathinteger(int32)trueEmployee contract identifier
bodybodyRRHH_ContractPosttruenone

200 Response

[
{
"employee_id": 0,
"employeeCode": "string",
"hiringType": "string",
"name": "string",
"surname1": "string",
"surname2": "string",
"document": "string",
"ssNumber": "string",
"dossierCode": "string",
"birthDate": "2019-08-24T14:15:22Z",
"gender": "string",
"bankAccount": "string",
"address": "string",
"postalCode": "string",
"city": "string",
"country": "string",
"phone": "string",
"mobile": "string",
"email": "string",
"emergencyPhone": "string",
"contracts": [
{
"contract_id_pk": 0,
"centerCode": "string",
"department_id": 0,
"department": "string",
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"contractType": "string",
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"finishContractReason": "string",
"position": "string",
"wageLevel": 0,
"extension": true,
"seniorityDate": "2019-08-24T14:15:22Z",
"onLeave": true,
"guarenteedPeriod": 0,
"testContratEndDate": "2019-08-24T14:15:22Z",
"annualVacation": 0
}
]
}
]

Responses

StatusMeaningDescriptionSchema
200OKEmployee with it’s contractsInline
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[EmployeeResponse]falsenonenone
» employee_idinteger(int32)falsenoneEmployee identifier
» employeeCodestring¦nullfalsenoneEmployee code
» hiringTypestring¦nullfalsenoneHiring type
» namestring¦nullfalsenoneName
» surname1string¦nullfalsenoneSurname 1
» surname2string¦nullfalsenoneSurname 2
» documentstring¦nullfalsenoneEmployee document
» ssNumberstring¦nullfalsenoneSocial security number
» dossierCodestring¦nullfalsenoneDossier code
» birthDatestring(date-time)¦nullfalsenoneBirth date
» genderstring¦nullfalsenoneGender F/M
» bankAccountstring¦nullfalsenoneBank Account
» addressstring¦nullfalsenoneAddress
» postalCodestring¦nullfalsenonePostal code
» citystring¦nullfalsenoneCity
» countrystring¦nullfalsenoneCountry ISO3
» phonestring¦nullfalsenonePhone
» mobilestring¦nullfalsenoneMobile
» emailstring¦nullfalsenoneEmail
» emergencyPhonestring¦nullfalsenoneEmergency phone
» contracts[RRHH_ContractResponse]¦nullfalsenoneList of contracts
»» contract_id_pkinteger(int32)falsenoneContract identifier
»» centerCodestring¦nullfalsenoneCenter code
»» department_idinteger(int32)¦nullfalsenoneDepartment identifier
»» departmentstring¦nullfalsenoneDepartment
»» initialDatestring(date-time)¦nullfalsenoneInitial date
»» endDatestring(date-time)¦nullfalsenoneEnd date
»» endDateVacationstring(date-time)¦nullfalsenoneEnd date with vacations
»» contractTypestring¦nullfalsenoneContract Type
»» contractType_idinteger(int32)¦nullfalsenoneContract Type identifier
»» dailyWorkHoursnumber(double)¦nullfalsenoneDaily work hours
»» weeklyWorkDaysinteger(int32)¦nullfalsenoneWeekly work hours
»» finishContractReasonstring¦nullfalsenoneFinish contract reason
»» positionstring¦nullfalsenonePosition
»» wageLevelinteger(int32)¦nullfalsenoneWage level
»» extensionbooleanfalsenoneis Extension
»» seniorityDatestring(date-time)¦nullfalsenoneSeniority date
»» onLeavebooleanfalsenoneis OnLeave
»» guarenteedPeriodinteger(int32)¦nullfalsenoneGuarantedPeriod
»» testContratEndDatestring(date-time)¦nullfalsenoneTest contract end date
»» annualVacationnumber(double)¦nullfalsenoneAnnual vacation days

Stats

Endpoint related to managing the statistics of Centers

GetStatsByCenter

Terminal window
# You can also use wget
curl -X GET /stats/statsbycenter/${centercode}?dateFrom=2019-08-24&dateUntil=2019-08-24 \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /stats/statsbycenter/${centercode}

This endpoint will return a list of stats by day based on the Benchmarking Alliance standard. Both dateFrom and dateUntil are included

Parameters

NameInTypeRequiredDescription
centercodepathstringtrueCenter code
dateFromquerystring(date)trueDate from
dateUntilquerystring(date)trueDate until

200 Response

{
"date": "2019-08-24T14:15:22Z",
"roomsAvaliable": 0,
"roomsSold": 0,
"roomsOutOfOrder": 0,
"centerGuests": 0,
"roomRevenue": 0,
"totalRevenue": 0
}

Responses

StatusMeaningDescriptionSchema
200OKStats by center listStatsByCenterResponse
204No ContentNo stats were foundNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Stays

Endpoint related to managing the stays

GetStaysXPaxList

Terminal window
# You can also use wget
curl -X GET /stays/staysxpax?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /stays/staysxpax

This endpoint will return a list of stays x pax given the CenterCode and can be filtered. If no dates are provided DateFrom = Today, DateTo = Today + 365 days

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter Code
DateFromquerystring(date-time)falseStart Date filter
DateUntilquerystring(date-time)falseEnd Date filter
RealquerybooleanfalseReal filter // null = ALL, true = YES, false = NO
CustomerTypesqueryarray[string]falseCustomerType filter
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"center_id_fk": 0,
"center": "string",
"date": "2019-08-24T14:15:22Z",
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0
}

Responses

StatusMeaningDescriptionSchema
200OKStays x pax listStaysXPaxResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Supplies

Endpoint related to managing the Supplies from the reservations

GetSuppliesList

Terminal window
# You can also use wget
curl -X GET /supplies/list?CenterCode=string \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /supplies/list

This endpoint will return a list of ReservationSupplies given a Center code

Parameters

NameInTypeRequiredDescription
CenterCodequerystringtrueCenter code
SalesServiceCodequerystringfalseSalesService code
InvStatus_idqueryinteger(int32)falseInvoice status identifier
StartDateFromquerystring(date-time)falseFrom start date
StartDateToquerystring(date-time)falseTo start date
EndingDateFromquerystring(date-time)falseFrom ending date
EndingDateToquerystring(date-time)falseTo ending date
PageNumberqueryinteger(int32)falsePage Number
PageSizequeryinteger(int32)falsePage Size

200 Response

{
"supplyId": 0,
"reservationId": 0,
"salesService": "string",
"salesServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"taxIncluded": true,
"chargeType": "string",
"priceCalculated": true,
"comments": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKSupplies ListSuppliesResponse
204No ContentNo ReservationSupplies were foundNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

GetSupplies

Terminal window
# You can also use wget
curl -X GET /supplies/{ReservationId} \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
GET /supplies/{ReservationId}

This endpoint will return a list of Room Supplies given a reservation identifier

Parameters

NameInTypeRequiredDescription
ReservationIdpathinteger(int32)trueReservation Identifier

200 Response

{
"supplyId": 0,
"reservationId": 0,
"salesService": "string",
"salesServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"taxIncluded": true,
"chargeType": "string",
"priceCalculated": true,
"comments": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKSupplies ListSuppliesResponse
204No ContentNo Supplies were found for the reservationNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

AddSupply

Terminal window
# You can also use wget
curl -X POST /supplies?ReservationId=0&ServiceCode=string&StartDate=2019-08-24T14%3A15%3A22Z&EndDate=2019-08-24T14%3A15%3A22Z&Quantity=0&Value=0 \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
POST /supplies

This endpoint will add a ReservationSupply to a Reservation

Parameters

NameInTypeRequiredDescription
ReservationIdqueryinteger(int32)trueReservation Identifier
ServiceCodequerystringtrueService code / External code
StartDatequerystring(date-time)trueStart Date
EndDatequerystring(date-time)trueEnd Date
Quantityqueryinteger(int32)trueQuantity
Valuequerynumber(double)trueValue
InvoiceStatusquerystringfalseInvoice status description
DescriptionquerystringfalseDescription
ChargeTypequerystringfalseCharge Type
CommentsquerystringfalseComments

200 Response

{
"supplyId": 0,
"reservationId": 0,
"salesService": "string",
"salesServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"taxIncluded": true,
"chargeType": "string",
"priceCalculated": true,
"comments": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKReservationSupply added successfullySuppliesResponse
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

DeleteSupply

Terminal window
# You can also use wget
curl -X DELETE /supplies/{SupplyId} \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
DELETE /supplies/{SupplyId}

This endpoint will remove a Reservation Supply from a Reservation given a ReservationSupply identifier

Parameters

NameInTypeRequiredDescription
SupplyIdpathinteger(int32)trueReservationSupply identifier

200 Response

[
{
"supplyId": 0,
"reservationId": 0,
"salesService": "string",
"salesServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"taxIncluded": true,
"chargeType": "string",
"priceCalculated": true,
"comments": "string"
}
]

Responses

StatusMeaningDescriptionSchema
200OKReservationSupply removed successfullyInline
204No ContentNo ContentNone
400Bad RequestBad RequestNone
401UnauthorizedNo valid token was providedNone
403ForbiddenUser permission level insufficientNone
429Too Many RequestsToo many requests, try again laterNone
500Internal Server ErrorInternal Server ErrorNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[SuppliesResponse]falsenonenone
» supplyIdinteger(int32)falsenoneSupply identifier
» reservationIdinteger(int32)falsenoneReservation identifier
» salesServicestring¦nullfalsenoneSalesService description
» salesServiceCodestring¦nullfalsenoneSalesService code
» startDatestring(date-time)¦nullfalsenoneStart date
» endDatestring(date-time)¦nullfalsenoneEnd date
» descriptionstring¦nullfalsenoneDescription
» quantityinteger(int32)¦nullfalsenoneQuantity
» valuenumber(double)¦nullfalsenoneValue
» invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
» invoiceStatusstring¦nullfalsenoneInvoice status description
» taxIncludedboolean¦nullfalsenoneIs VAT inclusive
» chargeTypestring¦nullfalsenoneCharge Type
» priceCalculatedbooleanfalsenoneIs price calculated
» commentsstring¦nullfalsenoneComments

Schemas

AvailabilityResponse

{
"center_id_fk": 0,
"center": "string",
"date": "2019-08-24T14:15:22Z",
"roomTypeCenter_id_fk": 0,
"roomType": "string",
"allotmentAvailable": 0,
"lockedRooms": 0
}

Properties

NameTypeRequiredRestrictionsDescription
center_id_fkinteger(int32)falsenoneCenter identifier
centerstring¦nullfalsenoneHotel Code
datestring(date-time)¦nullfalsenoneDate
roomTypeCenter_id_fkinteger(int32)falsenoneRoom type identifier
roomTypestring¦nullfalsenoneRoom type code
allotmentAvailableinteger(int32)¦nullfalsenoneAmount available
lockedRoomsinteger(int32)¦nullfalsenoneAmount of locked rooms

BoardTypesCenterResponse

{
"boardTypeCenter_id_pk": 0,
"centerCode": "string",
"center_id_fk": 0,
"boardTypeCode": "string",
"boardType_id_fk": 0,
"description": "string",
"descriptionDetailed": "string",
"defaultBoard": true
}

Properties

NameTypeRequiredRestrictionsDescription
boardTypeCenter_id_pkinteger(int32)falsenoneBoardTypeCenter Identifier
centerCodestring¦nullfalsenoneCenter Code
center_id_fkinteger(int32)falsenoneCenter Identifier
boardTypeCodestring¦nullfalsenoneBoardType Code
boardType_id_fkinteger(int32)falsenoneBoardType Identifier
descriptionstring¦nullfalsenoneDescription
descriptionDetailedstring¦nullfalsenoneDescription detailed
defaultBoardbooleanfalsenoneIs default board

BoardTypesResponse

{
"boardType_id_pk": 0,
"code": "string",
"description": "string",
"breakfast": true,
"lunch": true,
"dinner": true,
"allInclusive": true
}

Properties

NameTypeRequiredRestrictionsDescription
boardType_id_pkinteger(int32)falsenoneBoardType Identifier
codestring¦nullfalsenoneBoardType code
descriptionstring¦nullfalsenoneDescription
breakfastbooleanfalsenoneBreakfast
lunchbooleanfalsenoneLunch
dinnerbooleanfalsenoneDinner
allInclusivebooleanfalsenoneAllInclusive

BudgetLine

{
"budgetLine_id_pk": 0,
"budgetHeader_id_fk": 0,
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"saleService_id_fk": 0,
"salesServiceName": "string",
"observations": "string",
"quantity": 0,
"value": 0,
"taxIncluded": true,
"automaticCharge": true,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"siL_id_fk": 0,
"reservation_id_fk": 0
}

Properties

NameTypeRequiredRestrictionsDescription
budgetLine_id_pkinteger(int32)falsenoneBudget line identifier
budgetHeader_id_fkinteger(int32)¦nullfalsenoneBudget header identifier
initialDatestring(date-time)¦nullfalsenoneInitial date
endDatestring(date-time)¦nullfalsenoneEnd date
saleService_id_fkinteger(int32)¦nullfalsenoneSales service identifier
salesServiceNamestring¦nullfalsenoneSales service name
observationsstring¦nullfalsenoneObservations
quantitynumber(double)¦nullfalsenoneQuantity
valuenumber(double)¦nullfalsenoneValue
taxIncludedboolean¦nullfalsenoneIs tax included
automaticChargeboolean¦nullfalsenoneIs automatic charge
invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
invoiceStatusstring¦nullfalsenoneInvoice status description
siL_id_fkinteger(int32)¦nullfalsenoneSales invoice line identifier
reservation_id_fkinteger(int32)¦nullfalsenoneReservation identifier

CardexPost

{
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24",
"documentID": "string",
"documentType": "string",
"expeditionDateDocument": "2019-08-24",
"address": "string",
"postalCode": "string",
"state": "string",
"city": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"sex": "s",
"email": "user@example.com",
"supportNumber": null,
"language": "string",
"anniversaryDate": null,
"authDataExchange": false,
"authReceiveAdvertising": false,
"authMessageAndPhone": false,
"authLocalization": false,
"segment_code": null,
"cardexSource_code": null
}

Properties

NameTypeRequiredRestrictionsDescription
namestringtruenoneName
surname1stringtruenoneSurname 1
surname2string¦nullfalsenoneSurname 2
birthDatestring(date)¦nullfalsenoneDate of birth
documentIDstring¦nullfalsenoneDocumentID
documentTypestring¦nullfalsenonePax Document Type
expeditionDateDocumentstring(date)¦nullfalsenoneDocument date of expedition
addressstring¦nullfalsenoneAddress
postalCodestring¦nullfalsenonePostal code
statestring¦nullfalsenoneState
citystring¦nullfalsenoneCity
phonestring¦nullfalsenonePhone number
countrystring¦nullfalsenoneCountry
nationalitystring¦nullfalsenoneNationality
sexstring¦nullfalsenoneGender. Allowed values: [“Z”, “M”, “F”]
emailstring(email)truenoneEmail
supportNumberstring¦nullfalsenoneSupport number
languagestring¦nullfalsenoneLanguage
anniversaryDatestring(date)¦nullfalsenoneAnniversary date
authDataExchangebooleantruenoneData exchange auth
authReceiveAdvertisingbooleantruenoneAdvertising auth
authMessageAndPhonebooleantruenoneCommunication auth
authLocalizationbooleantruenoneLocalization auth
segment_codestring¦nullfalsenoneSegment code
cardexSource_codestring¦nullfalsenoneCardex source external code

CardexResponse

{
"cardex_id_pk": 0,
"timestamp": "string",
"nationality": "string",
"documentType": "string",
"documentNumber": "string",
"dateExpDocument": "2019-08-24T14:15:22Z",
"name": "string",
"surname": "string",
"surname2": "string",
"sex": "string",
"birthdate": "2019-08-24T14:15:22Z",
"email": "string",
"residenceCountry_id_fk": "string",
"postalcode": "string",
"province": "string",
"population": "string",
"telephone": "string",
"telephone2": "string",
"fax": "string",
"address": "string",
"unsuscribeDate": "2019-08-24T14:15:22Z",
"unsuscribeReason": "string",
"authReceiveAdvertising": true,
"authDataExchange": true,
"authMessageAndPhone": true,
"authLocalization": true,
"anniversaryDate": "2019-08-24T14:15:22Z",
"language_id_fk": "string",
"cardexSource_id_fk": 0,
"state_id_fk": 0
}

Properties

NameTypeRequiredRestrictionsDescription
cardex_id_pkinteger(int32)falsenoneCardex identifier
timestampstring¦nullfalsenoneTimestamp
nationalitystring¦nullfalsenoneNationality
documentTypestring¦nullfalsenonePax Document Type
documentNumberstring¦nullfalsenoneDocument ID
dateExpDocumentstring(date-time)¦nullfalsenoneDocument expedition date
namestring¦nullfalsenoneName
surnamestring¦nullfalsenoneSurname
surname2string¦nullfalsenoneSurname 2
sexstring¦nullfalsenoneGender
birthdatestring(date-time)¦nullfalsenoneDate of birth
emailstring¦nullfalsenoneEmail
residenceCountry_id_fkstring¦nullfalsenoneCountry of residence
postalcodestring¦nullfalsenonePostal code
provincestring¦nullfalsenoneProvince
populationstring¦nullfalsenonePopulation
telephonestring¦nullfalsenonePhone number
telephone2string¦nullfalsenonePhone number 2
faxstring¦nullfalsenoneFax number
addressstring¦nullfalsenoneAddress
unsuscribeDatestring(date-time)¦nullfalsenoneUnsubscribe date
unsuscribeReasonstring¦nullfalsenoneUnsubscribe reason
authReceiveAdvertisingboolean¦nullfalsenoneAdvertising auth
authDataExchangeboolean¦nullfalsenoneData exchange auth
authMessageAndPhoneboolean¦nullfalsenoneCommunication auth
authLocalizationboolean¦nullfalsenoneLocalization auth
anniversaryDatestring(date-time)¦nullfalsenoneWedding aniversary date
language_id_fkstring¦nullfalsenoneLanguage
cardexSource_id_fkinteger(int32)¦nullfalsenoneCardex source identifier
state_id_fkinteger(int32)¦nullfalsenoneState

CardexSourceResponse

{
"cardexSource_id": 0,
"externalCode": "string",
"description": "string",
"default": true
}

Properties

NameTypeRequiredRestrictionsDescription
cardexSource_idinteger(int32)falsenoneCardexSource identifier
externalCodestring¦nullfalsenoneExternal code
descriptionstring¦nullfalsenoneDescription
defaultbooleanfalsenoneIs default

CenterDepartmentsResponse

{
"centerCode": "string",
"notifyLocked": true,
"email": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
centerCodestring¦nullfalsenoneCenter code
notifyLockedbooleanfalsenoneNotify locked room
emailstring¦nullfalsenoneEmail

CenterZoneResponse

{
"centerZone_id": 0,
"centerZone_code": "string",
"center_id": 0,
"centerCode": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
centerZone_idinteger(int32)falsenoneCenterZone identifier
centerZone_codestring¦nullfalsenoneCenterZone code
center_idinteger(int32)¦nullfalsenoneCenter identifier
centerCodestring¦nullfalsenoneCenter code

CentersResponse

{
"center_id": 0,
"centerCode": "string",
"centerName": "string",
"currency": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
center_idinteger(int32)falsenoneCenter identifer
centerCodestring¦nullfalsenoneCenter code
centerNamestring¦nullfalsenoneCenter name
currencystring¦nullfalsenoneCurrency

CreditAccResponse

{
"taxAddress": "string",
"nif": "string",
"nationality_id_fk": "string",
"cardType": "string",
"budgetLines": [
{
"budgetLine_id_pk": 0,
"budgetHeader_id_fk": 0,
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"saleService_id_fk": 0,
"salesServiceName": "string",
"observations": "string",
"quantity": 0,
"value": 0,
"taxIncluded": true,
"automaticCharge": true,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"siL_id_fk": 0,
"reservation_id_fk": 0
}
],
"customerRetainers": [
{
"customerRetainer_id_pk": 0,
"retainerNumber": "string",
"customer_id_fk": 0,
"customerCode": "string",
"date": "2019-08-24T14:15:22Z",
"pM_id_fk": 0,
"pmCode": "string",
"amount": 0,
"retainerStatus_id": 0,
"retainerStatus": "string",
"bank_id_fk": 0,
"bankDescription": "string",
"observations": "string",
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"budgetHeader_id_fk": 0,
"percentageAmount": 0
}
],
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"comments": "string",
"externalCode": "string",
"futureProduction": true,
"isPending": true,
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Properties

NameTypeRequiredRestrictionsDescription
taxAddressstring¦nullfalsenoneTax address
nifstring¦nullfalsenoneNIF
nationality_id_fkstring¦nullfalsenoneNationality
cardTypestring¦nullfalsenoneCard type
budgetLines[BudgetLine]¦nullfalsenoneList of Budget lines
customerRetainers[CustRetainer]¦nullfalsenoneList of Customer retainers
budgetHeader_id_pkinteger(int32)falsenoneBudget identifier
budgetTypestring¦nullfalsenoneBudget type
center_id_fkinteger(int32)¦nullfalsenoneCenter identifier
centerCodestring¦nullfalsenoneCenter code
groupCodestring¦nullfalsenoneReference Code
namestring¦nullfalsenoneDate
emailstring¦nullfalsenoneEmail
telephonestring¦nullfalsenonePhone
customer_id_fkinteger(int32)¦nullfalsenoneCustomer identifier
customerCodestring¦nullfalsenoneCustomer code
budgetDatestring(date-time)¦nullfalsenoneBudget date
lastUpdateDatestring(date-time)¦nullfalsenoneLast update date
dueDatestring(date-time)¦nullfalsenoneDue date
lastUpdateUserstring¦nullfalsenoneLast update user
budgetStatus_idinteger(int32)¦nullfalsenoneBudget status identifier
budgetStatusstring¦nullfalsenoneBudget status description
invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
invStatusstring¦nullfalsenoneInvoice status description
commentsstring¦nullfalsenoneComments
externalCodestring¦nullfalsenoneExternal code
futureProductionbooleanfalsenoneFuture production
isPendingbooleanfalseread-onlyAre billings pending
totalAmountnumber(double)falsenoneTotal amount
totalInvoicednumber(double)falsenoneTotal invoiced
totalRetainersnumber(double)falsenoneAnticipated
totalCollectedInvoicenumber(double)falsenoneTotal collected from invoice
pendingAmountRetainersnumber(double)¦nullfalsenonePending amount from retainers
pendingAmountnumber(double)¦nullfalseread-onlyPending collection

CustRetainer

{
"customerRetainer_id_pk": 0,
"retainerNumber": "string",
"customer_id_fk": 0,
"customerCode": "string",
"date": "2019-08-24T14:15:22Z",
"pM_id_fk": 0,
"pmCode": "string",
"amount": 0,
"retainerStatus_id": 0,
"retainerStatus": "string",
"bank_id_fk": 0,
"bankDescription": "string",
"observations": "string",
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"budgetHeader_id_fk": 0,
"percentageAmount": 0
}

Properties

NameTypeRequiredRestrictionsDescription
customerRetainer_id_pkinteger(int32)falsenoneCustomer retainer identifier
retainerNumberstring¦nullfalsenoneRetainer number
customer_id_fkinteger(int32)falsenoneCustomer identifier
customerCodestring¦nullfalsenoneCustomer code
datestring(date-time)¦nullfalsenoneRetainer date
pM_id_fkinteger(int32)¦nullfalsenonePayment method identifier
pmCodestring¦nullfalsenonePayment method code
amountnumber(double)¦nullfalsenoneAmount
retainerStatus_idinteger(int32)¦nullfalsenoneRetainer status identifier
retainerStatusstring¦nullfalsenoneRetainer status description
bank_id_fkinteger(int32)¦nullfalsenoneBank identifier
bankDescriptionstring¦nullfalsenoneBank description
observationsstring¦nullfalsenoneObservations
invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
invoiceStatusstring¦nullfalsenoneInvoice status description
budgetHeader_id_fkinteger(int32)¦nullfalsenoneDate
percentageAmountnumber(double)¦nullfalsenonePercentage amount

CustomerTypeResponse

{
"customerType_id": 0,
"customerType": "string",
"description": "string",
"withoutChargeLodgment": true,
"withoutChargeSupplies": true,
"isDefault": true
}

Properties

NameTypeRequiredRestrictionsDescription
customerType_idinteger(int32)falsenoneCustomer Type identifier
customerTypestring¦nullfalsenoneCustomer Type name
descriptionstring¦nullfalsenoneDescription
withoutChargeLodgmentbooleanfalsenoneIs without charge lodgment
withoutChargeSuppliesbooleanfalsenoneIs without charge supplies
isDefaultbooleanfalsenoneIs default

DepartmentsResponse

{
"department_id": 0,
"departmentName": "string",
"isLocked": true,
"type": 0,
"centerDepartments": [
{
"centerCode": "string",
"notifyLocked": true,
"email": "string"
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
department_idinteger(int32)falsenoneDepartment identifier
departmentNamestring¦nullfalsenoneDepartment name
isLockedbooleanfalsenoneIs Department locked
typeinteger(int32)¦nullfalsenoneDepartment type
centerDepartments[CenterDepartmentsResponse]¦nullfalsenoneList of Center departments

DocumentResponse

{
"document_id": 0,
"date": "2019-08-24T14:15:22Z",
"documentType_id": 0,
"description": "string",
"typeIO": true,
"centerCode": "string",
"fileName": "string",
"accessUrl": "string",
"customer_id": 0,
"storE_Supplier_id": 0,
"task_id": 0,
"note_id": 0,
"siH_id": 0,
"budget_id": 0,
"collectionHeader_id": 0,
"expenseInvoice_id": 0,
"parentType": 0,
"parent_id": 0
}

Properties

NameTypeRequiredRestrictionsDescription
document_idinteger(int32)falsenoneDocument identifier
datestring(date-time)¦nullfalsenoneDate
documentType_idinteger(int32)¦nullfalsenoneDocumentType identifier
descriptionstring¦nullfalsenoneDescription
typeIOboolean¦nullfalsenoneIs IO
centerCodestring¦nullfalsenoneCenter code
fileNamestring¦nullfalsenoneFile name
accessUrlstring¦nullfalsenoneAccess URL
customer_idinteger(int32)¦nullfalsenoneCustomer identifier
storE_Supplier_idinteger(int32)¦nullfalsenoneStore Supplier identifier
task_idinteger(int32)¦nullfalsenoneTask identifier
note_idinteger(int32)¦nullfalsenoneNote identifier
siH_idinteger(int32)¦nullfalsenoneSales Invoice Header identifier
budget_idinteger(int32)¦nullfalsenoneBudget identifier
collectionHeader_idinteger(int32)¦nullfalsenoneCollection Header identifier
expenseInvoice_idinteger(int32)¦nullfalsenoneExpense invoice identifier
parentTypeinteger(int32)¦nullfalsenoneParent type
parent_idinteger(int32)¦nullfalsenoneParent identifier

DocumentResponse_min

{
"document_id": 0,
"date": "2019-08-24T14:15:22Z",
"description": "string",
"fileName": "string",
"accessUrl": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
document_idinteger(int32)falsenoneDocument identifier
datestring(date-time)¦nullfalsenoneDate
descriptionstring¦nullfalsenoneDescription
fileNamestring¦nullfalsenoneFile name
accessUrlstring¦nullfalsenoneAccess URL

DocumentTypesResponse

{
"documentType_id": 0,
"description": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
documentType_idinteger(int32)falsenoneDocumentType identifier
descriptionstring¦nullfalsenoneDescription

EmployeeResponse

{
"employee_id": 0,
"employeeCode": "string",
"hiringType": "string",
"name": "string",
"surname1": "string",
"surname2": "string",
"document": "string",
"ssNumber": "string",
"dossierCode": "string",
"birthDate": "2019-08-24T14:15:22Z",
"gender": "string",
"bankAccount": "string",
"address": "string",
"postalCode": "string",
"city": "string",
"country": "string",
"phone": "string",
"mobile": "string",
"email": "string",
"emergencyPhone": "string",
"contracts": [
{
"contract_id_pk": 0,
"centerCode": "string",
"department_id": 0,
"department": "string",
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"contractType": "string",
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"finishContractReason": "string",
"position": "string",
"wageLevel": 0,
"extension": true,
"seniorityDate": "2019-08-24T14:15:22Z",
"onLeave": true,
"guarenteedPeriod": 0,
"testContratEndDate": "2019-08-24T14:15:22Z",
"annualVacation": 0
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
employee_idinteger(int32)falsenoneEmployee identifier
employeeCodestring¦nullfalsenoneEmployee code
hiringTypestring¦nullfalsenoneHiring type
namestring¦nullfalsenoneName
surname1string¦nullfalsenoneSurname 1
surname2string¦nullfalsenoneSurname 2
documentstring¦nullfalsenoneEmployee document
ssNumberstring¦nullfalsenoneSocial security number
dossierCodestring¦nullfalsenoneDossier code
birthDatestring(date-time)¦nullfalsenoneBirth date
genderstring¦nullfalsenoneGender F/M
bankAccountstring¦nullfalsenoneBank Account
addressstring¦nullfalsenoneAddress
postalCodestring¦nullfalsenonePostal code
citystring¦nullfalsenoneCity
countrystring¦nullfalsenoneCountry ISO3
phonestring¦nullfalsenonePhone
mobilestring¦nullfalsenoneMobile
emailstring¦nullfalsenoneEmail
emergencyPhonestring¦nullfalsenoneEmergency phone
contracts[RRHH_ContractResponse]¦nullfalsenoneList of contracts

Extra

{
"postMappingSaleServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"chargeType": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
postMappingSaleServiceCodestringtruenonePost Mapping Sale service code
startDatestring(date-time)truenoneStart date
endDatestring(date-time)truenoneEnd date
descriptionstringtruenoneDescription
quantityinteger(int32)truenoneQuantity
valuenumber(double)truenoneValue
chargeTypestringtruenoneCharge Type

FixedAssetResponse

{
"product_id": 0,
"productName": "string",
"store_id": 0,
"storeCode": "string",
"storeName": "string",
"description": "string",
"reference": "string",
"code": "string",
"centerCode": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
product_idinteger(int32)falsenoneProduct identifier
productNamestring¦nullfalsenoneProduct name
store_idinteger(int32)falsenoneStore identifier
storeCodestring¦nullfalsenoneStore code
storeNamestring¦nullfalsenoneStore name
descriptionstring¦nullfalsenoneDescription
referencestring¦nullfalsenoneReference
codestring¦nullfalsenoneCode
centerCodestring¦nullfalsenoneCenter code

InfoRoles

{
"name": "string",
"permissions": [
"string"
]
}

Properties

NameTypeRequiredRestrictionsDescription
namestring¦nullfalsenoneRole name
permissions[string]¦nullfalsenoneRole permissions

OccupancyRoomsResponse

{
"center_id_fk": 0,
"center": "string",
"date": "2019-08-24T14:15:22Z",
"roomTypeCenter_id_fk": 0,
"roomType": "string",
"occupancy": 0
}

Properties

NameTypeRequiredRestrictionsDescription
center_id_fkinteger(int32)falsenoneCenter identifier
centerstring¦nullfalsenoneHotel Code
datestring(date-time)¦nullfalsenoneDate
roomTypeCenter_id_fkinteger(int32)falsenoneRoom type identifier
roomTypestring¦nullfalsenoneRoom type code
occupancyinteger(int32)¦nullfalsenoneAmount available

OccupantPost

{
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"paxType": "AD",
"sex": "string",
"email": "user@example.com",
"repeaterClient": false,
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true
}

Properties

NameTypeRequiredRestrictionsDescription
namestringtruenoneName
surname1stringtruenoneSurname 1
surname2string¦nullfalsenoneSurname 2
birthDatestring(date-time)truenoneDate of birth
documentIDstringtruenoneDocumentID
expeditionDateDocumentstring(date-time)¦nullfalsenoneDocument date of expedition
addressstring¦nullfalsenoneAddress
postalCodestring¦nullfalsenonePostal code
statestring¦nullfalsenoneState
phonestring¦nullfalsenonePhone number
countrystring¦nullfalsenoneCountry ISO2
nationalitystring¦nullfalsenoneNationality ISO2
paxTypestringtruenonePax type
sexstring¦nullfalsenoneGender
emailstring(email)¦nullfalsenoneEmail
repeaterClientbooleantruenoneIs repeater client
primaryPaxbooleantruenoneIs primary pax
authDataExchangebooleantruenoneData exchange auth
authReceiveAdvertisingbooleantruenoneAdvertising auth
authMessageAndPhonebooleantruenoneCommunication auth
authLocalizationbooleantruenoneLocalization auth

OccupantResponse

{
"reservationPaxId": 0,
"position": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentType": "string",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"country": "string",
"nationality": "string",
"language": "string",
"paxType": "string",
"sex": "string",
"email": "string",
"phone": "string",
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true,
"cardexId": 0
}

Properties

NameTypeRequiredRestrictionsDescription
reservationPaxIdinteger(int32)¦nullfalsenoneRerservationPax identifier
positioninteger(int32)¦nullfalsenonePosition (deprecated)
namestring¦nullfalsenoneName
surname1string¦nullfalsenoneSurname 1
surname2string¦nullfalsenoneSurname 2
birthDatestring(date-time)¦nullfalsenoneBirthday
documentTypestring¦nullfalsenoneDocument Type
documentIDstring¦nullfalsenoneDocument ID
expeditionDateDocumentstring(date-time)¦nullfalsenoneDocument expedition date
addressstring¦nullfalsenoneAddress
postalCodestring¦nullfalsenonePostal code
statestring¦nullfalsenoneState
countrystring¦nullfalsenoneCountry
nationalitystring¦nullfalsenoneNationality
languagestring¦nullfalsenoneLanguage (ISO2)
paxTypestring¦nullfalsenoneOccupant type
sexstring¦nullfalsenoneGender
emailstring¦nullfalsenoneEmail
phonestring¦nullfalsenonePhone number
primaryPaxboolean¦nullfalsenoneIs primary pax
authDataExchangeboolean¦nullfalsenoneData exchange auth
authReceiveAdvertisingboolean¦nullfalsenoneAdvertising auth
authMessageAndPhoneboolean¦nullfalsenoneCommunication auth
authLocalizationboolean¦nullfalsenoneLocation auth
cardexIdinteger(int32)¦nullfalsenoneCardex identifier

PaxPost

{
"reservationId": 0,
"occupants": [
{
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"paxType": "AD",
"sex": "string",
"email": "user@example.com",
"repeaterClient": false,
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
reservationIdinteger(int32)truenoneReservation Identifier
occupants[OccupantPost]truenoneOccupants list

PaxPut

{
"pmS_id": 0,
"occupant": {
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"paxType": "AD",
"sex": "string",
"email": "user@example.com",
"repeaterClient": false,
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true
}
}

Properties

NameTypeRequiredRestrictionsDescription
pmS_idinteger(int32)truenoneOccupant Identifier
occupantOccupantPosttruenonenone

PaxbyRoomResponse

{
"pmS_id": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"sex": "string",
"paxType": "string",
"arrival": "2019-08-24T14:15:22Z",
"exit": "2019-08-24T14:15:22Z",
"birthDate": "2019-08-24T14:15:22Z",
"nationality": "string",
"birthCountry": "string",
"countryResidence": "string",
"documentID": "string",
"email": "string",
"address": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"phone": "string",
"ad": 0,
"jr": 0,
"bb": 0,
"ch": 0,
"reservation_id": 0,
"reservationStatus": "string",
"rsvStatusCode": 0,
"room_number": "string",
"room_type": "string",
"salesDate": "2019-08-24T14:15:22Z",
"res_channel": "string",
"res_agency": "string",
"board_type": "string",
"comments": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
pmS_idinteger(int32)¦nullfalsenoneOccupant Identifier
namestring¦nullfalsenoneName
surname1string¦nullfalsenoneSurname 1
surname2string¦nullfalsenoneSurname 2
sexstring¦nullfalsenoneGender
paxTypestring¦nullfalsenoneOccupant Type
arrivalstring(date-time)¦nullfalsenoneArrival date
exitstring(date-time)¦nullfalsenoneExit date
birthDatestring(date-time)¦nullfalsenoneBirthday
nationalitystring¦nullfalsenoneNationality
birthCountrystring¦nullfalsenoneBirth country
countryResidencestring¦nullfalsenoneResidence country
documentIDstring¦nullfalsenoneDocument Id
emailstring¦nullfalsenoneEmail
addressstring¦nullfalsenoneAddress
citystring¦nullfalsenoneCity
statestring¦nullfalsenoneState
postalCodestring¦nullfalsenonePostal Code
phonestring¦nullfalsenonePhone number
adinteger(int32)falsenoneNum Adult
jrinteger(int32)falsenoneNum Junior
bbinteger(int32)falsenoneNum Baby
chinteger(int32)falsenoneNum Child
reservation_idinteger(int32)¦nullfalsenoneReservation identifier
reservationStatusstring¦nullfalsenoneReservation status code
rsvStatusCodeinteger(int32)¦nullfalsenoneReservation status identifier
room_numberstring¦nullfalsenoneRoom number
room_typestring¦nullfalsenoneRoomType code
salesDatestring(date-time)¦nullfalsenoneSales Date
res_channelstring¦nullfalsenoneReservation channel code
res_agencystring¦nullfalsenoneReservation agency code
board_typestring¦nullfalsenoneBoardType code
commentsstring¦nullfalsenoneComments

PaymentMethodsResponse

{
"paymentMehod_id": 0,
"center_id": 0,
"centerCode": "string",
"description": "string",
"cashRegister": "string",
"carryBalance": true,
"pmType": "string",
"ticketCopyNumber": 0,
"onlyTPV": true,
"code": "string",
"externalCode": "string",
"pmOrder": 0,
"accCommission": "string",
"transferPerMovment": true
}

Properties

NameTypeRequiredRestrictionsDescription
paymentMehod_idinteger(int32)falsenonePayment Method identifier
center_idinteger(int32)¦nullfalsenoneCenter identifier
centerCodestring¦nullfalsenoneCenter code
descriptionstring¦nullfalsenoneDescription
cashRegisterstring¦nullfalsenoneCashRegister name
carryBalancebooleanfalsenoneCarry balance
pmTypestring¦nullfalsenonePayment Method type
ticketCopyNumberinteger(int32)¦nullfalsenoneNum of ticket copies
onlyTPVbooleanfalsenoneIs OnlyTPV
codestring¦nullfalsenoneCode
externalCodestring¦nullfalsenoneExternalCode (Related to Retainers)
pmOrderinteger(int32)¦nullfalsenoneOrder
accCommissionstring¦nullfalsenoneComission Account
transferPerMovmentbooleanfalsenoneIs Transfer per movement

Price

{
"date": "2019-08-24T14:15:22Z",
"amount": 0,
"currency": "string",
"taxes": 0
}

Properties

NameTypeRequiredRestrictionsDescription
datestring(date-time)truenonePrice date
amountnumber(double)truenoneAmount
currencystringtruenoneCurrency code. Ex: EUR
taxesnumber(double)¦nullfalsenoneTax percent --- COMPROBAR

PricePost

{
"reservationId": 0,
"pricesList": [
{
"date": "2019-08-24T14:15:22Z",
"amount": 0,
"currency": "string",
"taxes": 0
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
reservationIdinteger(int32)truenoneReservation Identifier
pricesList[Price]truenoneList of Prices

PricesResponse

{
"priceId": 0,
"reservationId": 0,
"contractId": 0,
"contractNumber": "string",
"dailyPrice": 0,
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"priceType_id": "string",
"paxType": "string",
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"roomType": "string",
"boardType": "string",
"currency": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
priceIdinteger(int32)falsenonePrice identifier
reservationIdinteger(int32)falsenoneReservation identifier
contractIdinteger(int32)¦nullfalsenoneContract identifier
contractNumberstring¦nullfalsenoneContract number
dailyPricenumber(double)¦nullfalsenoneDaily price
startDatestring(date-time)falsenoneStart date
endDatestring(date-time)falsenoneEnd Date
priceType_idstring¦nullfalsenonePrice Type identifier
paxTypestring¦nullfalsenoneOccupant Type
invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
invoiceStatusstring¦nullfalsenoneInvoice status description
roomTypestring¦nullfalsenoneRoomType code
boardTypestring¦nullfalsenoneBoardType code
currencystring¦nullfalsenoneCurrency code

QuoteResponse

{
"arrivalDate": "2019-08-24T14:15:22Z",
"pendingInvoice": 0,
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"comments": "string",
"externalCode": "string",
"futureProduction": true,
"isPending": true,
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Properties

NameTypeRequiredRestrictionsDescription
arrivalDatestring(date-time)¦nullfalsenoneArrival date
pendingInvoicenumber(double)falseread-onlyPending invoice
budgetHeader_id_pkinteger(int32)falsenoneBudget identifier
budgetTypestring¦nullfalsenoneBudget type
center_id_fkinteger(int32)¦nullfalsenoneCenter identifier
centerCodestring¦nullfalsenoneCenter code
groupCodestring¦nullfalsenoneReference Code
namestring¦nullfalsenoneDate
emailstring¦nullfalsenoneEmail
telephonestring¦nullfalsenonePhone
customer_id_fkinteger(int32)¦nullfalsenoneCustomer identifier
customerCodestring¦nullfalsenoneCustomer code
budgetDatestring(date-time)¦nullfalsenoneBudget date
lastUpdateDatestring(date-time)¦nullfalsenoneLast update date
dueDatestring(date-time)¦nullfalsenoneDue date
lastUpdateUserstring¦nullfalsenoneLast update user
budgetStatus_idinteger(int32)¦nullfalsenoneBudget status identifier
budgetStatusstring¦nullfalsenoneBudget status description
invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
invStatusstring¦nullfalsenoneInvoice status description
commentsstring¦nullfalsenoneComments
externalCodestring¦nullfalsenoneExternal code
futureProductionbooleanfalsenoneFuture production
isPendingbooleanfalseread-onlyAre billings pending
totalAmountnumber(double)falsenoneTotal amount
totalInvoicednumber(double)falsenoneTotal invoiced
totalRetainersnumber(double)falsenoneAnticipated
totalCollectedInvoicenumber(double)falsenoneTotal collected from invoice
pendingAmountRetainersnumber(double)¦nullfalsenonePending amount from retainers
pendingAmountnumber(double)¦nullfalseread-onlyPending collection

QuotesResponse

{
"isPending": true,
"arrivalDate": "2019-08-24T14:15:22Z",
"pendingInvoice": 0,
"budgetHeader_id_pk": 0,
"budgetType": "string",
"center_id_fk": 0,
"centerCode": "string",
"groupCode": "string",
"name": "string",
"email": "string",
"telephone": "string",
"customer_id_fk": 0,
"customerCode": "string",
"budgetDate": "2019-08-24T14:15:22Z",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"lastUpdateUser": "string",
"budgetStatus_id": 0,
"budgetStatus": "string",
"invStatus_id_fk": 0,
"invStatus": "string",
"totalAmount": 0,
"totalInvoiced": 0,
"totalRetainers": 0,
"totalCollectedInvoice": 0,
"pendingAmountRetainers": 0,
"pendingAmount": 0
}

Properties

NameTypeRequiredRestrictionsDescription
isPendingbooleanfalseread-onlyAre billings pending
arrivalDatestring(date-time)¦nullfalsenoneArrival date
pendingInvoicenumber(double)falseread-onlyPending invoice
budgetHeader_id_pkinteger(int32)falsenoneBudget identifier
budgetTypestring¦nullfalsenoneBudget type
center_id_fkinteger(int32)¦nullfalsenoneCenter identifier
centerCodestring¦nullfalsenoneCenter code
groupCodestring¦nullfalsenoneBudget reference
namestring¦nullfalsenoneName
emailstring¦nullfalsenoneEmail
telephonestring¦nullfalsenonePhone
customer_id_fkinteger(int32)¦nullfalsenoneCustomer identifer
customerCodestring¦nullfalsenoneCustomer code
budgetDatestring(date-time)¦nullfalsenoneBudget date
lastUpdateDatestring(date-time)¦nullfalsenoneLast update date
dueDatestring(date-time)¦nullfalsenoneDue date
lastUpdateUserstring¦nullfalsenoneLast update user
budgetStatus_idinteger(int32)¦nullfalsenoneBudget status identifier
budgetStatusstring¦nullfalsenoneBudget status description
invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
invStatusstring¦nullfalsenoneInvoice status description
totalAmountnumber(double)falsenoneTotal amount
totalInvoicednumber(double)falsenoneTotal invoiced
totalRetainersnumber(double)falsenoneAnticipated
totalCollectedInvoicenumber(double)falsenoneTotal collected from invoice
pendingAmountRetainersnumber(double)falsenonePending amount from retainers
pendingAmountnumber(double)falseread-onlyPending collection

RRHHContractTypeResponse

{
"contractType_id": 0,
"code": "string",
"description": "string",
"isLocked": true
}

Properties

NameTypeRequiredRestrictionsDescription
contractType_idinteger(int32)falsenoneContractType identifier
codestring¦nullfalsenoneContractType code
descriptionstring¦nullfalsenoneContractType description
isLockedbooleanfalsenoneIs ContractType locked

RRHH_ContractPost

{
"centerCode": "string",
"department_id": 0,
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"initialDate": "2019-08-24T14:15:22Z",
"position_id": 0,
"vacationDays": 0,
"seniorityDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"wageLevel": 0
}

Properties

NameTypeRequiredRestrictionsDescription
centerCodestringtruenoneCenter code
department_idinteger(int32)truenoneDepartment identifier
contractType_idinteger(int32)truenoneContract Type identifier
dailyWorkHoursnumber(double)truenoneDaily work hours
weeklyWorkDaysinteger(int32)truenoneWeekly work hours
initialDatestring(date-time)truenoneInitial date
position_idinteger(int32)¦nullfalsenonePosition identifier
vacationDaysnumber(double)¦nullfalsenoneAnnual vacation days
seniorityDatestring(date-time)¦nullfalsenoneSeniority date
endDatestring(date-time)¦nullfalsenoneEnd date
endDateVacationstring(date-time)¦nullfalsenoneEnd date with vacations
wageLevelinteger(int32)¦nullfalsenoneWage level

RRHH_ContractResponse

{
"contract_id_pk": 0,
"centerCode": "string",
"department_id": 0,
"department": "string",
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"endDateVacation": "2019-08-24T14:15:22Z",
"contractType": "string",
"contractType_id": 0,
"dailyWorkHours": 0,
"weeklyWorkDays": 0,
"finishContractReason": "string",
"position": "string",
"wageLevel": 0,
"extension": true,
"seniorityDate": "2019-08-24T14:15:22Z",
"onLeave": true,
"guarenteedPeriod": 0,
"testContratEndDate": "2019-08-24T14:15:22Z",
"annualVacation": 0
}

Properties

NameTypeRequiredRestrictionsDescription
contract_id_pkinteger(int32)falsenoneContract identifier
centerCodestring¦nullfalsenoneCenter code
department_idinteger(int32)¦nullfalsenoneDepartment identifier
departmentstring¦nullfalsenoneDepartment
initialDatestring(date-time)¦nullfalsenoneInitial date
endDatestring(date-time)¦nullfalsenoneEnd date
endDateVacationstring(date-time)¦nullfalsenoneEnd date with vacations
contractTypestring¦nullfalsenoneContract Type
contractType_idinteger(int32)¦nullfalsenoneContract Type identifier
dailyWorkHoursnumber(double)¦nullfalsenoneDaily work hours
weeklyWorkDaysinteger(int32)¦nullfalsenoneWeekly work hours
finishContractReasonstring¦nullfalsenoneFinish contract reason
positionstring¦nullfalsenonePosition
wageLevelinteger(int32)¦nullfalsenoneWage level
extensionbooleanfalsenoneis Extension
seniorityDatestring(date-time)¦nullfalsenoneSeniority date
onLeavebooleanfalsenoneis OnLeave
guarenteedPeriodinteger(int32)¦nullfalsenoneGuarantedPeriod
testContratEndDatestring(date-time)¦nullfalsenoneTest contract end date
annualVacationnumber(double)¦nullfalsenoneAnnual vacation days

RRHH_IncidenceTypesResponse

{
"incicenceType_id": 0,
"incicenceType_code": "string",
"description": "string",
"format": "string",
"group_id": 0,
"group_code": "string",
"type": "string",
"overtime": "string",
"locked": true
}

Properties

NameTypeRequiredRestrictionsDescription
incicenceType_idinteger(int32)falsenoneIncidence type identifier
incicenceType_codestring¦nullfalsenoneIncidence type code
descriptionstring¦nullfalsenoneDescription
formatstring¦nullfalsenoneFormat
group_idinteger(int32)¦nullfalsenoneGroup identifier
group_codestring¦nullfalsenoneGroup code
typestring¦nullfalsenoneType
overtimestring¦nullfalsenoneOvertime
lockedbooleanfalsenoneIs locked

RRHH_PositionsResponse

{
"position_id": 0,
"description": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
position_idinteger(int32)falsenonePosition identifier
descriptionstring¦nullfalsenonePosition description

RateTypesResponse

{
"rateType_id_pk": 0,
"name": "string",
"pricePer": "string",
"discountType": "string",
"associatedRateType_id_fk": 0,
"associatedRateType": "string",
"quantity": 0,
"valueType": true,
"valueTypeCode": "string",
"position": 0,
"description": "string",
"locked": true,
"lockRetainersReturn": true,
"advertismentCheckIn": true,
"advertismentCheckInText": "string",
"paymentPercentage": 0
}

Properties

NameTypeRequiredRestrictionsDescription
rateType_id_pkinteger(int32)falsenoneRateType identifier
namestring¦nullfalsenoneName
pricePerstring¦nullfalsenonePrice per
discountTypestring¦nullfalsenoneDiscount type
associatedRateType_id_fkinteger(int32)¦nullfalsenoneAssociated RateType identifier
associatedRateTypestring¦nullfalsenoneAssociated RateType code
quantitynumber(double)¦nullfalsenoneQuantity
valueTypeboolean¦nullfalsenoneValue type
valueTypeCodestring¦nullfalsenoneValue type code
positioninteger(int32)¦nullfalsenonePosition
descriptionstring¦nullfalsenoneDescription
lockedbooleanfalsenoneIs locked
lockRetainersReturnbooleanfalsenonenone
advertismentCheckInbooleanfalsenonenone
advertismentCheckInTextstring¦nullfalsenonenone
paymentPercentagenumber(double)¦nullfalsenonePayment Percentage

RatesResponse

{
"rateId": 0,
"center_id_fk": 0,
"centerCode": "string",
"date": "2019-08-24T14:15:22Z",
"roomTypeCenter_id_fk": 0,
"roomTypeCenterCode": "string",
"boardTypeCenter_id_fk": 0,
"boardTypeCenterCode": "string",
"rateType_id_fk": 0,
"rateTypeCode": "string",
"description": "string",
"roomRate": 0,
"adRate": 0,
"jrRate": 0,
"chRate": 0,
"bbRate": 0,
"lastUpdate": "2019-08-24T14:15:22Z"
}

Properties

NameTypeRequiredRestrictionsDescription
rateIdinteger(int32)falsenoneObservations
center_id_fkinteger(int32)falsenoneCenter identifier
centerCodestring¦nullfalsenoneCenter code
datestring(date-time)¦nullfalsenoneDate
roomTypeCenter_id_fkinteger(int32)¦nullfalsenoneRoomTypeCenter identifier
roomTypeCenterCodestring¦nullfalsenoneRoomType code
boardTypeCenter_id_fkinteger(int32)¦nullfalsenoneBoardTypeCenter identifier
boardTypeCenterCodestring¦nullfalsenoneBoardType code
rateType_id_fkinteger(int32)¦nullfalsenoneRateType identifier
rateTypeCodestring¦nullfalsenoneRateType code
descriptionstring¦nullfalsenoneDescription
roomRatenumber(double)falsenoneRoom rate
adRatenumber(double)falsenoneAdult rate
jrRatenumber(double)falsenoneJunior rate
chRatenumber(double)falsenoneChild rate
bbRatenumber(double)falsenoneBaby rate
lastUpdatestring(date-time)¦nullfalsenoneLast update

ReqRooms

{
"roomNumber": "string",
"isFixed": true,
"groupIdentifier": "string",
"roomTypeFRA": "string",
"roomTypeUSE": "string",
"boardType": "string",
"rateCode": "string",
"desglose": 0,
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0,
"commentList": [
"string"
],
"preferencesList": [
"string"
],
"paxes": [
{
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"paxType": "AD",
"sex": "string",
"email": "user@example.com",
"repeaterClient": false,
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true
}
],
"prices": [
{
"date": "2019-08-24T14:15:22Z",
"amount": 0,
"currency": "string",
"taxes": 0
}
],
"extras": [
{
"postMappingSaleServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"chargeType": "string"
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
roomNumberstringtruenoneRoom number
isFixedboolean¦nullfalsenoneFix room
groupIdentifierstring¦nullfalsenoneGroup identifier
roomTypeFRAstringtruenoneRoom type bill code
roomTypeUSEstring¦nullfalsenoneRoom type use code
boardTypestringtruenoneBoard type code
rateCodestring¦nullfalsenoneRate code
desgloseinteger(int32)¦nullfalsenoneBreakdown
adinteger(int32)truenoneNum Adult
jrinteger(int32)truenoneNum Junior
chinteger(int32)truenoneNum Child
bbinteger(int32)truenoneNum Baby
commentList[string]¦nullfalsenoneComments list
preferencesList[string]¦nullfalsenonePreferences list
paxes[OccupantPost]truenonePax list
prices[Price]¦nullfalsenonePrices list
extras[Extra]¦nullfalsenoneExtrass list

ReservationPostResponse

{
"reservationId": 0,
"reference": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
reservationIdinteger(int32)falsenoneReservation identifier
referencestring¦nullfalsenoneReservation reference

ReservationResponse

{
"reservationId": 0,
"reference": "string",
"reservationNumber": 0,
"year": 0,
"arrivalDate": "2019-08-24T14:15:22Z",
"exitDate": "2019-08-24T14:15:22Z",
"rsvStatus_id": 0,
"rsvStatus_code": "string",
"responsible": "string",
"paxHab": 0,
"email": "string",
"preferences": "string",
"comments": "string",
"roomNumber": "string",
"fixedRoom": true,
"centerCode": "string",
"centerNumberPrefix": "string",
"reservationType": "string",
"desglose": 0,
"roomTypeFra": "string",
"roomTypeUse": "string",
"boardTypeFra": "string",
"boardTypeUse": "string",
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0,
"preCheckIn": true,
"salesChannel_id": 0,
"salesChannel": "string",
"campaign_id": 0,
"campaign": "string",
"crmSegment_id": 0,
"crmSegment": "string",
"triplet": {
"clientComposition_id": 0,
"ttoO_id": 0,
"ttoO_code": "string",
"agency_id": 0,
"agency_code": "string",
"customer_id": 0,
"customer_code": "string"
},
"occupants": [
{
"reservationPaxId": 0,
"position": 0,
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentType": "string",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"country": "string",
"nationality": "string",
"language": "string",
"paxType": "string",
"sex": "string",
"email": "string",
"phone": "string",
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true,
"cardexId": 0
}
],
"observations": [
"string"
]
}

Properties

NameTypeRequiredRestrictionsDescription
reservationIdinteger(int32)¦nullfalsenoneReservation indentifier
referencestring¦nullfalsenoneReference
reservationNumberinteger(int32)falsenoneReservation number
yearinteger(int32)¦nullfalsenoneYear
arrivalDatestring(date-time)¦nullfalsenoneArrival Date
exitDatestring(date-time)¦nullfalsenoneExit date
rsvStatus_idinteger(int32)¦nullfalsenoneReservation status identifier
rsvStatus_codestring¦nullfalsenoneReservation status code
responsiblestring¦nullfalsenoneReservation responsible
paxHabinteger(int32)¦nullfalsenoneNum Occupants (deprecated)
emailstring¦nullfalsenoneEmail
preferencesstring¦nullfalsenonePreferences
commentsstring¦nullfalsenoneComments
roomNumberstring¦nullfalsenoneRoom Number
fixedRoombooleanfalsenoneIs room fixed
centerCodestring¦nullfalsenoneCenter code
centerNumberPrefixstring¦nullfalsenoneCenter number prefix
reservationTypestring¦nullfalsenoneReservationType code
desgloseinteger(int32)¦nullfalsenoneBreakdown
roomTypeFrastring¦nullfalsenoneRoomType bill code
roomTypeUsestring¦nullfalsenoneRoomType use code
boardTypeFrastring¦nullfalsenoneBoardType bill code
boardTypeUsestring¦nullfalsenoneBoardType use code
adinteger(int32)¦nullfalsenoneNum Adult
jrinteger(int32)¦nullfalsenoneNum Junior
chinteger(int32)¦nullfalsenoneNum Child
bbinteger(int32)¦nullfalsenoneNum Baby
preCheckInbooleanfalsenonePreCheckin
salesChannel_idinteger(int32)¦nullfalsenoneSales channel identifier
salesChannelstring¦nullfalsenoneSales channel
campaign_idinteger(int32)¦nullfalsenoneCampaign identifier
campaignstring¦nullfalsenoneCampaign
crmSegment_idinteger(int32)¦nullfalsenoneCRM segment identifier
crmSegmentstring¦nullfalsenoneCRM segment
tripletTripletCodesResponsefalsenonenone
occupants[OccupantResponse]¦nullfalsenoneOccupants list
observations[string]¦nullfalsenoneObservations list

ReservationsPost

{
"desglose": 0,
"year": 0,
"arrivalDate": "2019-08-24T14:15:22Z",
"exitDate": "2019-08-24T14:15:22Z",
"centerCode": "string",
"salesDate": "2019-08-24T14:15:22Z",
"localizer": "string",
"crS_NotificationSended": true,
"responsible": "string",
"crM_SegmentCode": "string",
"futureProduction": true,
"campaignCode": "string",
"sentToPushTech": false,
"dayUse": true,
"preCheckin": false,
"sentToReviewPro": false,
"triplet": {
"tourOperator": "string",
"agency": "string",
"customer": "string"
},
"roomList": [
{
"roomNumber": "string",
"isFixed": true,
"groupIdentifier": "string",
"roomTypeFRA": "string",
"roomTypeUSE": "string",
"boardType": "string",
"rateCode": "string",
"desglose": 0,
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0,
"commentList": [
"string"
],
"preferencesList": [
"string"
],
"paxes": [
{
"name": "string",
"surname1": "string",
"surname2": "string",
"birthDate": "2019-08-24T14:15:22Z",
"documentID": "string",
"expeditionDateDocument": "2019-08-24T14:15:22Z",
"address": "string",
"postalCode": "string",
"state": "string",
"phone": "string",
"country": "string",
"nationality": "string",
"paxType": "AD",
"sex": "string",
"email": "user@example.com",
"repeaterClient": false,
"primaryPax": true,
"authDataExchange": true,
"authReceiveAdvertising": true,
"authMessageAndPhone": true,
"authLocalization": true
}
],
"prices": [
{
"date": "2019-08-24T14:15:22Z",
"amount": 0,
"currency": "string",
"taxes": 0
}
],
"extras": [
{
"postMappingSaleServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"chargeType": "string"
}
]
}
],
"retainersList": [
{
"code": "string",
"retainerBreakDown": 0,
"rAmount": 0,
"paymentMethod": "string",
"observations": "string",
"retainerDateTime": "2019-08-24T14:15:22Z",
"retainerType_id": 0,
"retainerDate": "string",
"formatDate": "string"
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
desgloseinteger(int32)¦nullfalsenoneBreakdown
yearinteger(int32)truenoneYear
arrivalDatestring(date-time)truenoneArrival date
exitDatestring(date-time)truenoneExit date
centerCodestringtruenoneCener code
salesDatestring(date-time)¦nullfalsenoneSales date
localizerstring¦nullfalsenoneLocalizer
crS_NotificationSendedbooleantruenoneCRS Notification Sended
responsiblestring¦nullfalsenoneAdult responsible
crM_SegmentCodestring¦nullfalsenoneCRM segment code
futureProductionbooleantruenoneFuture production
campaignCodestring¦nullfalsenoneCampaign code
sentToPushTechbooleantruenonenone
dayUsebooleantruenoneIs day use
preCheckinbooleantruenonePre Check In indicator
sentToReviewProbooleantruenonenone
tripletTripletCodestruenonenone
roomList[ReqRooms]truenoneRooms list
retainersList[RetainersCrx]¦nullfalsenoneRetainers list

ReservationsUpdateDTO

{
"reservation_id": 0,
"appCustomer_id": 0,
"center_id": 0,
"arrivalDate": "2019-08-24T14:15:22Z",
"exitDate": "2019-08-24T14:15:22Z",
"rsvStatus": 0,
"rsvInvoiceStatus": 0,
"roomTypeUse_id_fk": 0,
"roomTypeFra_id_fk": 0,
"boardTypeUse_id_fk": 0,
"boardTypeFra_id_fk": 0,
"roomId": 0,
"reference": "string",
"responsible": "string",
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0
}

Properties

NameTypeRequiredRestrictionsDescription
reservation_idinteger(int32)falsenoneReservation identifier
appCustomer_idinteger(int32)falsenoneAppCustomer identifier
center_idinteger(int32)¦nullfalsenoneCenter identifier
arrivalDatestring(date-time)¦nullfalsenoneArrival date
exitDatestring(date-time)¦nullfalsenoneExit date
rsvStatusinteger(int32)¦nullfalsenoneReservation status identifier
rsvInvoiceStatusinteger(int32)¦nullfalsenoneReservation Invoice status identifier
roomTypeUse_id_fkinteger(int32)¦nullfalsenoneRoomType use identifier
roomTypeFra_id_fkinteger(int32)¦nullfalsenoneRoomType bill identifier
boardTypeUse_id_fkinteger(int32)¦nullfalsenoneBoardType use identifier
boardTypeFra_id_fkinteger(int32)¦nullfalsenoneBoardType bill identifier
roomIdinteger(int32)¦nullfalsenoneRoom identifer
referencestring¦nullfalsenoneReference
responsiblestring¦nullfalsenoneReserevation responsible
adinteger(int32)falsenoneNum Adult
jrinteger(int32)falsenoneNum Junior
chinteger(int32)falsenoneNum Child
bbinteger(int32)falsenoneNum Baby

RetainersCrx

{
"code": "string",
"retainerBreakDown": 0,
"rAmount": 0,
"paymentMethod": "string",
"observations": "string",
"retainerDateTime": "2019-08-24T14:15:22Z",
"retainerType_id": 0,
"retainerDate": "string",
"formatDate": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
codestring¦nullfalsenoneRetainer code
retainerBreakDowninteger(int32)truenoneRetainer BreakDown key
rAmountnumber(double)truenoneAmount
paymentMethodstringtruenonePayment Method code
observationsstring¦nullfalsenoneObservations
retainerDateTimestring(date-time)¦nullfalsenoneRetainer Date (DateTime type)
retainerType_idinteger(int32)¦nullfalsenoneRetainer Type identifier
retainerDatestring¦nullfalsenoneRetainer Date (String type)
formatDatestring¦nullfalsenoneDate format (For string type, usually not needed)

RetainersPost

{
"reservationId": 0,
"retainerCRX": {
"code": "string",
"retainerBreakDown": 0,
"rAmount": 0,
"paymentMethod": "string",
"observations": "string",
"retainerDateTime": "2019-08-24T14:15:22Z",
"retainerType_id": 0,
"retainerDate": "string",
"formatDate": "string"
}
}

Properties

NameTypeRequiredRestrictionsDescription
reservationIdinteger(int32)truenoneReservation identifier
retainerCRXRetainersCrxtruenonenone

RetainersResponse

{
"reservationId": 0,
"reservationReference": "string",
"retainerId": 0,
"retainerNumber": "string",
"retainerType_id": 0,
"retainerType": "string",
"amount": 0,
"date": "2019-08-24T14:15:22Z",
"retainerStatus_id": 0,
"retainerStatus": "string",
"observations": "string",
"paymentMethod": "string",
"cashRegister": true,
"invStatus_id_fk": 0,
"invoiceStatus": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
reservationIdinteger(int32)¦nullfalsenoneReservation identifier
reservationReferencestring¦nullfalsenoneReservation reference
retainerIdinteger(int32)falsenoneRetainer identifier
retainerNumberstring¦nullfalsenoneRetainer number
retainerType_idinteger(int32)¦nullfalsenoneRetainer Type identifier
retainerTypestring¦nullfalsenoneRetainer Type description
amountnumber(double)¦nullfalsenoneAmount
datestring(date-time)¦nullfalsenoneDate
retainerStatus_idinteger(int32)¦nullfalsenoneRetainer status identifier
retainerStatusstring¦nullfalsenoneRetainer status description
observationsstring¦nullfalsenoneObservations
paymentMethodstring¦nullfalsenonePayment method
cashRegisterboolean¦nullfalsenoneIs cash register
invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
invoiceStatusstring¦nullfalsenoneInvoice status description

RoomRangeResponse

{
"roomRange_id": 0,
"description": "string",
"center_id": 0,
"centerCode": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
roomRange_idinteger(int32)falsenoneRoom Range identifier
descriptionstring¦nullfalsenoneDescription
center_idinteger(int32)falsenoneCenter identifier
centerCodestring¦nullfalsenoneCenter code

RoomTypesCenterResponse

{
"roomTypeCenter_id_pk": 0,
"centerCode": "string",
"center_id_fk": 0,
"roomTypeCode": "string",
"roomType_id_fk": 0,
"description": "string",
"descriptionDetailed": "string",
"real": true,
"order": 0,
"locked": true,
"rooms": 0,
"maximum_occupancy": 0,
"minimum_occupancy": 0,
"regular_occupancy": 0,
"establishmentCategoryCode": "string",
"establishmentCategory_id_fk": 0
}

Properties

NameTypeRequiredRestrictionsDescription
roomTypeCenter_id_pkinteger(int32)falsenoneRoomTypeCenter identifier
centerCodestring¦nullfalsenoneCenter code
center_id_fkinteger(int32)falsenoneCenter identifier
roomTypeCodestring¦nullfalsenoneRoomType code
roomType_id_fkinteger(int32)falsenoneRoomType identifier
descriptionstring¦nullfalsenoneDescription
descriptionDetailedstring¦nullfalsenoneDescriptionDetailed
realboolean¦nullfalsenoneIs real
orderinteger(int32)¦nullfalsenoneOrder
lockedbooleanfalsenoneIs locked
roomsinteger(int32)falsenoneNum associated Rooms
maximum_occupancyinteger(int32)¦nullfalsenoneMax occupancy
minimum_occupancyinteger(int32)¦nullfalsenoneMin occupancy
regular_occupancyinteger(int32)¦nullfalsenoneRegular occupancy
establishmentCategoryCodestring¦nullfalsenoneEstablishment code
establishmentCategory_id_fkinteger(int32)¦nullfalsenoneEstablishment identifier

RoomTypesResponse

{
"code": "string",
"roomType_id_pk": 0,
"description": "string",
"maximum_occupancy": 0,
"minimum_occupancy": 0,
"regular_occupancy": 0
}

Properties

NameTypeRequiredRestrictionsDescription
codestring¦nullfalsenoneRoomType code
roomType_id_pkinteger(int32)falsenoneRoomType identifier
descriptionstring¦nullfalsenoneDescription
maximum_occupancyinteger(int32)¦nullfalsenoneMax occupancy
minimum_occupancyinteger(int32)¦nullfalsenoneMin occupancy
regular_occupancyinteger(int32)¦nullfalsenoneRegular occupancy

RoomsResponse

{
"room_id_pk": 0,
"centerCode": "string",
"center_id_fk": 0,
"roomTypeCode": "string",
"roomTypeCenter_id_fk": 0,
"roomType_id_fk": 0,
"number": "string",
"phone": 0,
"floorCode": "string",
"floor_id_fk": 0,
"roomRangeCode": "string",
"roomRange_id_fk": 0,
"blockCode": "string",
"block_id_fk": 0,
"description": "string",
"descriptionDetailed": "string",
"real": true,
"virtual": true,
"cleaned": true,
"locked": true
}

Properties

NameTypeRequiredRestrictionsDescription
room_id_pkinteger(int32)falsenoneRoom identifier
centerCodestring¦nullfalsenoneCenter code
center_id_fkinteger(int32)¦nullfalsenoneCenter identifier
roomTypeCodestring¦nullfalsenoneRoomType code
roomTypeCenter_id_fkinteger(int32)¦nullfalsenoneRoomTypeCenter identifier
roomType_id_fkinteger(int32)¦nullfalsenoneRoomType identifier
numberstring¦nullfalsenoneRoom number
phoneinteger(int32)¦nullfalsenoneRoom phone
floorCodestring¦nullfalsenoneFloor code
floor_id_fkinteger(int32)¦nullfalsenoneFloor identifier
roomRangeCodestring¦nullfalsenoneRoomRange code
roomRange_id_fkinteger(int32)¦nullfalsenoneRoomRange identifier
blockCodestring¦nullfalsenoneBlock code
block_id_fkinteger(int32)¦nullfalsenoneBlock identifier
descriptionstring¦nullfalsenoneDescription
descriptionDetailedstring¦nullfalsenoneDescription detailed
realboolean¦nullfalsenoneIs real
virtualbooleanfalsenoneIs virtual
cleanedbooleanfalsenoneIs cleaned
lockedbooleanfalsenoneIs locked

SalesServicesConditions

{
"salesServicesConditions_id": 0,
"name": "string",
"language": "string",
"description": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
salesServicesConditions_idinteger(int32)falsenoneSales service condition identifier
namestring¦nullfalsenoneCondition name
languagestring¦nullfalsenoneCondition language
descriptionstring¦nullfalsenoneCondition description

SalesServicesGroupResonse

{
"salesServiceGroup_id": 0,
"salesServiceGroup_name": "string",
"centerCode": "string",
"description": "string",
"isOmit": true,
"isLodgement": true,
"isBoard": true,
"isLocked": true
}

Properties

NameTypeRequiredRestrictionsDescription
salesServiceGroup_idinteger(int32)falsenoneSales service group identifier
salesServiceGroup_namestring¦nullfalsenoneSales service group name
centerCodestring¦nullfalsenoneCenter code
descriptionstring¦nullfalsenoneDescription
isOmitbooleanfalsenoneIs omit
isLodgementbooleanfalsenoneIs lodgement
isBoardbooleanfalsenoneIs board
isLockedbooleanfalsenoneIs locked

SalesServicesResponse

{
"service_id": 0,
"centerCode": "string",
"name": "string",
"description": "string",
"externalCode": "string",
"serviceType_id": 0,
"serviceType_desc": "string",
"salesServiceGroup_id": 0,
"salesServiceGroup_name": "string",
"vatPercent": 0,
"price": 0,
"dailyPrice": true,
"department_code": "string",
"salesServicesConditions": [
{
"salesServicesConditions_id": 0,
"name": "string",
"language": "string",
"description": "string"
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
service_idinteger(int32)falsenoneService identifier
centerCodestring¦nullfalsenoneCenter code
namestring¦nullfalsenoneService name
descriptionstring¦nullfalsenoneDescription
externalCodestring¦nullfalsenoneService external code
serviceType_idinteger(int32)¦nullfalsenoneService type identifier
serviceType_descstring¦nullfalsenoneService type code
salesServiceGroup_idinteger(int32)¦nullfalsenoneSales service group identifier
salesServiceGroup_namestring¦nullfalsenoneSales service group code
vatPercentnumber(double)¦nullfalsenoneTaxes
pricenumber(double)¦nullfalsenonePrice
dailyPricebooleanfalsenoneIs daily price
department_codestring¦nullfalsenoneDepartment code
salesServicesConditions[SalesServicesConditions]¦nullfalsenoneConditions

Schedule

{
"centerCode": "string",
"employeeCode": "string",
"dateTime": "2019-08-24T14:15:22Z",
"department": "string",
"type": 0
}

Properties

NameTypeRequiredRestrictionsDescription
centerCodestringtruenonenone
employeeCodestringtruenonenone
dateTimestring(date-time)truenonenone
departmentstring¦nullfalsenonenone
typeinteger(int32)falsenonenone

SchedulePost

{
"schedules": [
{
"centerCode": "string",
"employeeCode": "string",
"dateTime": "2019-08-24T14:15:22Z",
"department": "string",
"type": 0
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
schedules[Schedule]truenonenone

SegmentResponse

{
"segment_id": 0,
"segment_name": "string",
"isDynamic": true,
"scope": 0
}

Properties

NameTypeRequiredRestrictionsDescription
segment_idinteger(int32)falsenoneSegment identifier
segment_namestring¦nullfalsenoneSegment name
isDynamicbooleanfalsenoneIs dynamic
scopeinteger(int32)falsenoneScope

StatsByCenterResponse

{
"date": "2019-08-24T14:15:22Z",
"roomsAvaliable": 0,
"roomsSold": 0,
"roomsOutOfOrder": 0,
"centerGuests": 0,
"roomRevenue": 0,
"totalRevenue": 0
}

Properties

NameTypeRequiredRestrictionsDescription
datestring(date-time)falsenoneDate
roomsAvaliableinteger(int32)falsenoneRooms avaliable / Availability
roomsSoldinteger(int32)falsenoneRooms sold / Occupancy
roomsOutOfOrderinteger(int32)falsenoneRooms out of order / Locked
centerGuestsinteger(int32)falsenoneCenter guests / Stays
roomRevenuenumber(double)falsenoneRoom revenue (no Tax)
totalRevenuenumber(double)falsenoneTotal revenue (no Tax)

StaysXPaxResponse

{
"center_id_fk": 0,
"center": "string",
"date": "2019-08-24T14:15:22Z",
"ad": 0,
"jr": 0,
"ch": 0,
"bb": 0
}

Properties

NameTypeRequiredRestrictionsDescription
center_id_fkinteger(int32)falsenoneCenter identifier
centerstring¦nullfalsenoneHotel Code
datestring(date-time)¦nullfalsenoneDate
adinteger(int32)¦nullfalsenoneAdults counter
jrinteger(int32)¦nullfalsenoneJunior counter
chinteger(int32)¦nullfalsenoneChildren counter
bbinteger(int32)¦nullfalsenoneBaby counter

SuppliesResponse

{
"supplyId": 0,
"reservationId": 0,
"salesService": "string",
"salesServiceCode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"description": "string",
"quantity": 0,
"value": 0,
"invStatus_id_fk": 0,
"invoiceStatus": "string",
"taxIncluded": true,
"chargeType": "string",
"priceCalculated": true,
"comments": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
supplyIdinteger(int32)falsenoneSupply identifier
reservationIdinteger(int32)falsenoneReservation identifier
salesServicestring¦nullfalsenoneSalesService description
salesServiceCodestring¦nullfalsenoneSalesService code
startDatestring(date-time)¦nullfalsenoneStart date
endDatestring(date-time)¦nullfalsenoneEnd date
descriptionstring¦nullfalsenoneDescription
quantityinteger(int32)¦nullfalsenoneQuantity
valuenumber(double)¦nullfalsenoneValue
invStatus_id_fkinteger(int32)¦nullfalsenoneInvoice status identifier
invoiceStatusstring¦nullfalsenoneInvoice status description
taxIncludedboolean¦nullfalsenoneIs VAT inclusive
chargeTypestring¦nullfalsenoneCharge Type
priceCalculatedbooleanfalsenoneIs price calculated
commentsstring¦nullfalsenoneComments

TaskTypeResponse

{
"taskType_id": 0,
"taskType_name": "string",
"department_id": 0,
"department_name": "string",
"showForecast": true
}

Properties

NameTypeRequiredRestrictionsDescription
taskType_idinteger(int32)falsenoneTaskType identifier
taskType_namestring¦nullfalsenoneTaskType name
department_idinteger(int32)¦nullfalsenoneDepartment identifier
department_namestring¦nullfalsenoneDepartment name
showForecastbooleanfalsenoneIs show forecast

TasksResponse

{
"task_id": 0,
"centerCode": "string",
"taskNumber": 0,
"status": 0,
"blockPlanned": true,
"priority": 0,
"department_id": 0,
"department_code": "string",
"taskType_id": 0,
"taskType_code": "string",
"employeeInformed_id": 0,
"employeeInformed": "string",
"employeeRepair_id": 0,
"employeeRepair": "string",
"employeeNoticed_id": 0,
"employeeNoticed": "string",
"room_code": "string",
"centerZone_code": "string",
"asset_id": 0,
"store_id": 0,
"fixedAsset": "string",
"lockedRoom": true,
"dateCommunication": "2019-08-24T14:15:22Z",
"dateStartingTask": "2019-08-24T14:15:22Z",
"dateEndingTask": "2019-08-24T14:15:22Z",
"insuranceNotified": true,
"courtesyCall": 0,
"observations": "string",
"taskPlanning_id": 0,
"taskPlanningDescription": "string",
"creationUser": "string",
"amountServices": 0,
"amountProducts": 0,
"documents": [
{
"document_id": 0,
"date": "2019-08-24T14:15:22Z",
"description": "string",
"fileName": "string",
"accessUrl": "string"
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
task_idinteger(int32)falsenoneDescription
centerCodestring¦nullfalsenoneCenter code
taskNumberinteger(int32)¦nullfalsenoneTask number
statusinteger(int32)¦nullfalsenoneStatus
blockPlannedbooleanfalsenoneIs block planned
priorityinteger(int32)¦nullfalsenonePriority
department_idinteger(int32)¦nullfalsenoneDepartment identifier
department_codestring¦nullfalsenoneDepartment code
taskType_idinteger(int32)¦nullfalsenoneTaskType identifier
taskType_codestring¦nullfalsenoneTaskType code
employeeInformed_idinteger(int32)¦nullfalsenoneEmployee informed identifier
employeeInformedstring¦nullfalsenoneEmployee informed
employeeRepair_idinteger(int32)¦nullfalsenoneEmployee repair identifier
employeeRepairstring¦nullfalsenoneEmployee repair
employeeNoticed_idinteger(int32)¦nullfalsenoneEmployee noticed
employeeNoticedstring¦nullfalsenoneEmployee noticed
room_codestring¦nullfalsenoneRoom code
centerZone_codestring¦nullfalsenoneCenterZone code
asset_idinteger(int32)¦nullfalsenoneAsset identifier
store_idinteger(int32)¦nullfalsenoneStore identifier
fixedAssetstring¦nullfalsenoneFixes asset
lockedRoombooleanfalsenoneis LocedRoom
dateCommunicationstring(date-time)¦nullfalsenoneCommunication date
dateStartingTaskstring(date-time)¦nullfalsenoneStart date
dateEndingTaskstring(date-time)¦nullfalsenoneEnd date
insuranceNotifiedboolean¦nullfalsenoneIs insurance notified
courtesyCallinteger(int32)¦nullfalsenoneCourtesy call code
observationsstring¦nullfalsenoneObservations
taskPlanning_idinteger(int32)¦nullfalsenoneTask planning identifier
taskPlanningDescriptionstring¦nullfalsenoneTask planning description
creationUserstring¦nullfalsenoneCreation user
amountServicesnumber(double)falsenoneObservations
amountProductsnumber(double)falsenoneObservations
documents[DocumentResponse_min]¦nullfalsenoneList of associated documents

TasksUpdateDTO

{
"task_id": 0,
"taskNumber": 0,
"appCustomer_id": 0,
"center_id": 0,
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"taskStatus": 0,
"priority": 0,
"room_id": 0,
"lockedRoom": true
}

Properties

NameTypeRequiredRestrictionsDescription
task_idinteger(int32)falsenoneTask identifier
taskNumberinteger(int32)¦nullfalsenoneTask number
appCustomer_idinteger(int32)falsenoneAppCustomer identifier
center_idinteger(int32)¦nullfalsenoneCenter identifier
startDatestring(date-time)¦nullfalsenoneStarting date
endDatestring(date-time)¦nullfalsenoneEnding date
taskStatusinteger(int32)¦nullfalsenoneTask status identifier
priorityinteger(int32)¦nullfalsenoneTask priority
room_idinteger(int32)¦nullfalsenoneRoom identifier
lockedRoombooleanfalsenoneIs Room locked

TokenApi

{
"accessToken": "string",
"refreshToken": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
accessTokenstring¦nullfalsenoneAccess Token
refreshTokenstring¦nullfalsenoneRefresh Token

TripletCodes

{
"tourOperator": "string",
"agency": "string",
"customer": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
tourOperatorstringtruenonePMS Tour operator code
agencystringtruenonePMS Agency operator code
customerstringtruenonePMS Customer operator code

TripletCodesResponse

{
"clientComposition_id": 0,
"ttoO_id": 0,
"ttoO_code": "string",
"agency_id": 0,
"agency_code": "string",
"customer_id": 0,
"customer_code": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
clientComposition_idinteger(int32)¦nullfalsenoneClient composition identifier
ttoO_idinteger(int32)¦nullfalsenoneTour operator identifier
ttoO_codestring¦nullfalsenoneTour operator code
agency_idinteger(int32)¦nullfalsenoneAgency identifier
agency_codestring¦nullfalsenoneAgency code
customer_idinteger(int32)¦nullfalsenoneCustomer identifier
customer_codestring¦nullfalsenoneCustomer code

UserInfoResponse

{
"user_id": "string",
"username": "string",
"department_id": 0,
"department_code": "string",
"employee_id": 0,
"employee_code": "string",
"center_codes": [
"string"
],
"roles": [
{
"name": "string",
"permissions": [
"string"
]
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
user_idstring¦nullfalsenoneUser identifier
usernamestring¦nullfalsenoneUsername
department_idinteger(int32)¦nullfalsenoneDepartment identifier
department_codestring¦nullfalsenoneDepartment code
employee_idinteger(int32)¦nullfalsenoneEmployee identifier
employee_codestring¦nullfalsenoneEmployee code
center_codes[string]¦nullfalsenoneCenters the user has access to
roles[InfoRoles]¦nullfalsenoneList of user roles