GET All Services Basic Information Per Page
The Services Basic Information API will show you a short overview of all your active services that are on Toursys. This method works with pagination.
[ENDPOINT]/ToursysConnectionApi/api/services/allServicesBasicInformationPerPage
Headers
X-API-KEY generatedToken
Parameters
pageNumber The page number you are requesting.
pageQuantity The quantity of objects you want to fetch per request. This value cannot be higher than 100.
Response parameters:
numberOfTotalServices - Integer - Total number of services that this company has.
numberOfServicesPerPage - Integer - Number of services fetched by page.
numberOfPages - Integer - Total number of pages that you can request.
currentPage - Integer - Current page you are seeing.
services - List - List of requested services.
service_id - Integer - Unique identificator for the service.
service_active - Boolean - Identifies if the service is active or not.
service_code - String - Unique identificator code for the service.
service_name - String - Service name given by the company.
service_supplier_code - String - Unique identificator for the supplier.
service_supplier_name - String - Supplier name given by the company.
service_location - String - Location of the service.
service_type - String - Service type name.
Example Request
curl --location -g --request GET '[ENDPOINT]/ToursysConnectionApi/api/services/allServicesBasicInformationPerPage/pageNumber=1&pageQuantity=30' \
--header 'X-API-KEY: generatedToken'
-- data '
{
"numberOfTotalServices": 4204,
"numberOfServicesPerPage": 30,
"numberOfPages": 141,
"currentPage": 1,
"services": [
{
"service_id": 00000,
"service_active": "Yes",
"service_code": "ODT",
"service_name": "One day Tour ",
"service_supplier_code": "AC Tours",
"service_supplier_name": "Acmetravel Tours",
"service_location": "USA",
"service_type": "Tours"
},
{...}
]
}
'