Smart Distribution API

Version: v1


SmartDistribution Endpoints

POST /api/SmartDistribution/receivesdari.{format}

Parameters:

  • format (path) – required:Request Body:

  • Content-Type: text/xml

    • Schema: #/components/schemas/HotelARIUpdateRQResponses:

  • 200: Success

  • 400: Bad Request

POST /api/SmartDistribution

Request Body:

  • Content-Type: text/xml

    • Schema: #/components/schemas/HotelARIUpdateRQResponses:

  • 200: Success

  • 400: Bad Request

POST /api/SmartDistribution/PreCheckReservation

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: text/json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/xml

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: text/xml

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SmartDistributionReservationRQResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/CommitReservation

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: text/json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/xml

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: text/xml

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SmartDistributionReservationRQResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/CreateReservation

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: text/json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/xml

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: text/xml

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SmartDistributionReservationRQResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/ModifyReservation

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: text/json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/xml

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: text/xml

    • Schema: #/components/schemas/SmartDistributionReservationRQ

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SmartDistributionReservationRQResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/CancelReservation

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SDCancelReservationRequest

  • Content-Type: text/json

    • Schema: #/components/schemas/SDCancelReservationRequest

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SDCancelReservationRequest

  • Content-Type: application/xml

    • Schema: #/components/schemas/SDCancelReservationRequest

  • Content-Type: text/xml

    • Schema: #/components/schemas/SDCancelReservationRequest

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SDCancelReservationRequestResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/PreCheck.xml

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SmartDistributionPreBookRQ

  • Content-Type: text/json

    • Schema: #/components/schemas/SmartDistributionPreBookRQ

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SmartDistributionPreBookRQ

  • Content-Type: application/xml

    • Schema: #/components/schemas/SmartDistributionPreBookRQ

  • Content-Type: text/xml

    • Schema: #/components/schemas/SmartDistributionPreBookRQ

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SmartDistributionPreBookRQResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/CreateReservation.xml

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/HotelML

  • Content-Type: text/json

    • Schema: #/components/schemas/HotelML

  • Content-Type: application/*+json

    • Schema: #/components/schemas/HotelML

  • Content-Type: application/xml

    • Schema: #/components/schemas/HotelML

  • Content-Type: text/xml

    • Schema: #/components/schemas/HotelML

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/HotelMLResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/CommitReservation.xml

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/HotelML

  • Content-Type: text/json

    • Schema: #/components/schemas/HotelML

  • Content-Type: application/*+json

    • Schema: #/components/schemas/HotelML

  • Content-Type: application/xml

    • Schema: #/components/schemas/HotelML

  • Content-Type: text/xml

    • Schema: #/components/schemas/HotelML

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/HotelMLResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/ModifyReservation.xml

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SmartDistributionModifyRequest

  • Content-Type: text/json

    • Schema: #/components/schemas/SmartDistributionModifyRequest

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SmartDistributionModifyRequest

  • Content-Type: application/xml

    • Schema: #/components/schemas/SmartDistributionModifyRequest

  • Content-Type: text/xml

    • Schema: #/components/schemas/SmartDistributionModifyRequest

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SmartDistributionModifyRequestResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistribution/Cancel.xml

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SmartDistributionCancellationRQ

  • Content-Type: text/json

    • Schema: #/components/schemas/SmartDistributionCancellationRQ

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SmartDistributionCancellationRQ

  • Content-Type: application/xml

    • Schema: #/components/schemas/SmartDistributionCancellationRQ

  • Content-Type: text/xml

    • Schema: #/components/schemas/SmartDistributionCancellationRQ

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SmartDistributionCancellationRQResponses:

  • 201: Success

  • 400: Bad Request

GET /api/SmartDistribution/getproducts/{propertyID}

Parameters:

  • propertyID (path) – required:

  • numberOfRoom (query) – optional:

  • checkin (query) – optional:

  • checkout (query) – optional:

  • occupancy (query) – optional:Responses:

  • 200: Success

GET /api/SmartDistribution/getpropertydetails/{propertyID}

Parameters:

  • propertyID (path) – required:

  • roomcode (query) – optional:Responses:

  • 200: Success

GET /api/SmartDistribution/bestproperties

Parameters:

  • destinationCode (query) – optional:

  • checkin (query) – optional:

  • checkout (query) – optional:

  • occupancy (query) – optional:Responses:

  • 200: Success


SmartDistributionSetup Endpoints

POST /api/SmartDistributionSetup/login

Responses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistributionSetup/CreateUser

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/SDUser

  • Content-Type: text/json

    • Schema: #/components/schemas/SDUser

  • Content-Type: application/*+json

    • Schema: #/components/schemas/SDUser

  • Content-Type: application/xml

    • Schema: #/components/schemas/SDUser

  • Content-Type: text/xml

    • Schema: #/components/schemas/SDUser

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/SDUserResponses:

  • 201: Success

  • 400: Bad Request

POST /api/SmartDistributionSetup/DemandSetup

Request Body:

  • Content-Type: application/json

    • Schema: #/components/schemas/Demands

  • Content-Type: text/json

    • Schema: #/components/schemas/Demands

  • Content-Type: application/*+json

    • Schema: #/components/schemas/Demands

  • Content-Type: application/xml

    • Schema: #/components/schemas/Demands

  • Content-Type: text/xml

    • Schema: #/components/schemas/Demands

  • Content-Type: application/*+xml

    • Schema: #/components/schemas/DemandsResponses:

  • 201: Success

  • 400: Bad Request

GET /api/SmartDistributionSetup/GetDemands

Responses:

  • 201: Success

  • 400: Bad Request

GET /api/SmartDistributionSetup/GetSupplier

Responses:

  • 201: Success

  • 400: Bad Request