< BACK

B2B - v1.0.0 Client

B2B Apis.

Beta

Api Messages

Api Authorization

Api Key
Api Secret
Token:
If you already have a token, you can put it here directly.
The token must be embeded in the request as "AuthToken" HTTP Header or as "authtoken" Querystring Parameter.
The examples in this client uses the token as a querystring parameter.

Method: GET

Description: Get the account information for the current login id.

Route: api/B2BAccount

Route: api/B2BAccount/{arg1}

Route: api/B2BAccount/{arg1}/{arg2}

Input Parameters: lid

CacheResponse Header: 5 seconds

Response Object: AccountRS (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: GET

Description: Get the agency information from the AgencyId in arg1.

Route: api/B2BAgency

Route: api/B2BAgency/{arg1}

Route: api/B2BAgency/{arg1}/{arg2}

Input Parameters: arg1

CacheResponse Header: 5 seconds

Response Object: AgencyRS (XSD / Schema)


Request

arg1:

Response

Url:
Response:

Method: GET

Description: Get Agent information for B2B login, you can retrieve one agent using the arg1 param.

Route: api/B2BAgents

Route: api/B2BAgents/{arg1}

Route: api/B2BAgents/{arg1}/{arg2}

Input Parameters: lid, arg1

CacheResponse Header: 2 seconds


Request

lid:
arg1:

Response

Url:
Response:

Method: POST

Description: Create a new Agent client .

Route: api/B2BAgents

Route: api/B2BAgents/{arg1}

Route: api/B2BAgents/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:B2BNewAgent (XSD / Schema)

Response Object: AgentManagementRS (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: PUT

Description: Update an existing Agent client .

Route: api/B2BAgents

Route: api/B2BAgents/{arg1}

Route: api/B2BAgents/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:Agent (XSD / Schema)

Response Object: AgentManagementRS (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: GET

Description: Retrieves a list of all elements by ClientId.

Route: api/B2BClientMargin

Route: api/B2BClientMargin/{arg1}

Route: api/B2BClientMargin/{arg1}/{arg2}

Input Parameters: lid, toRange [optional, default=(null)]

CacheResponse Header: 2 seconds

Response Object: List Of EntClientMargin (XSD / Schema)


Request

lid:
toRange [optional]:

Response

Url:
Response:

Method: POST

Description: Inserts a Client Margin.

Route: api/B2BClientMargin

Route: api/B2BClientMargin/{arg1}

Route: api/B2BClientMargin/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:EntClientMargin (XSD / Schema)

Response Object: Boolean (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: PUT

Description: Update a Client Margin.

Route: api/B2BClientMargin

Route: api/B2BClientMargin/{arg1}

Route: api/B2BClientMargin/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:EntClientMargin (XSD / Schema)

Response Object: Boolean (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: DELETE

Description: Delete a Client Margin.

Route: api/B2BClientMargin

Route: api/B2BClientMargin/{arg1}

Route: api/B2BClientMargin/{arg1}/{arg2}

Input Parameters: lid, toRange

Request Object:Decimal (XSD / Schema)

Response Object: Boolean (XSD / Schema)


Request

lid:
toRange:
Request Body:

Response

Url:
Response:

Method: GET

Description: Retrieves Hotel client margin by ClientId.

Route: api/B2BClientMarginHotel

Route: api/B2BClientMarginHotel/{arg1}

Route: api/B2BClientMarginHotel/{arg1}/{arg2}

Input Parameters: lid

CacheResponse Header: 2 seconds

Response Object: B2BMargin (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: POST

Description: Inserts a Client Hotel Margin.

Route: api/B2BClientMarginHotel

Route: api/B2BClientMarginHotel/{arg1}

Route: api/B2BClientMarginHotel/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:B2BMargin (XSD / Schema)

Response Object: Boolean (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: DELETE

Description: Delete a Client Hotel Margin.

Route: api/B2BClientMarginHotel

Route: api/B2BClientMarginHotel/{arg1}

Route: api/B2BClientMarginHotel/{arg1}/{arg2}

Input Parameters: lid

Response Object: Boolean (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: GET

Description: Retrieves Transfer client margin by ClientId.

Route: api/B2BClientMarginTransfer

Route: api/B2BClientMarginTransfer/{arg1}

Route: api/B2BClientMarginTransfer/{arg1}/{arg2}

Input Parameters: lid

CacheResponse Header: 2 seconds

Response Object: B2BMarginTransfer (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: POST

Description: Update a Client Transfer Margin.

Route: api/B2BClientMarginTransfer

Route: api/B2BClientMarginTransfer/{arg1}

Route: api/B2BClientMarginTransfer/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:B2BMarginTransfer (XSD / Schema)

Response Object: Boolean (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: DELETE

Description: Delete a Client Transfer Margin.

Route: api/B2BClientMarginTransfer

Route: api/B2BClientMarginTransfer/{arg1}

Route: api/B2BClientMarginTransfer/{arg1}/{arg2}

Input Parameters: lid

Response Object: Boolean (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: GET

Description: Retrieves Car client margin by ClientId.

Route: api/B2BClientMarginCar

Route: api/B2BClientMarginCar/{arg1}

Route: api/B2BClientMarginCar/{arg1}/{arg2}

Input Parameters: lid

CacheResponse Header: 2 seconds

Response Object: B2BMarginCar (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: POST

Description: Update a Client Car Margin.

Route: api/B2BClientMarginCar

Route: api/B2BClientMarginCar/{arg1}

Route: api/B2BClientMarginCar/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:B2BMarginCar (XSD / Schema)

Response Object: Boolean (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: DELETE

Description: Delete a Client Car Margin.

Route: api/B2BClientMarginCar

Route: api/B2BClientMarginCar/{arg1}

Route: api/B2BClientMarginCar/{arg1}/{arg2}

Input Parameters: lid

Response Object: Boolean (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: GET

Description: Retrieves Vacation rental client margin by ClientId.

Route: api/B2BClientMarginVacationRental

Route: api/B2BClientMarginVacationRental/{arg1}

Route: api/B2BClientMarginVacationRental/{arg1}/{arg2}

Input Parameters: lid

CacheResponse Header: 2 seconds

Response Object: B2BMarginVacationRental (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: POST

Description: Update a Client Vacation rental Margin.

Route: api/B2BClientMarginVacationRental

Route: api/B2BClientMarginVacationRental/{arg1}

Route: api/B2BClientMarginVacationRental/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:B2BMarginVacationRental (XSD / Schema)

Response Object: Boolean (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: DELETE

Description: Delete a Client Vacation rental Margin.

Route: api/B2BClientMarginVacationRental

Route: api/B2BClientMarginVacationRental/{arg1}

Route: api/B2BClientMarginVacationRental/{arg1}/{arg2}

Input Parameters: lid

Response Object: Boolean (XSD / Schema)


Request

lid:

Response

Url:
Response:

Method: POST

Description: B2B Login Access.

Route: api/B2BLogin

Route: api/B2BLogin/{arg1}

Route: api/B2BLogin/{arg1}/{arg2}

Input Parameters: Body

Request Object:B2BLoginRQ (XSD / Schema)

Response Object: B2BLoginRS (XSD / Schema)


Request

Request Body:

Response

Url:
Response:

Method: GET

Description: B2B Login Check.

Route: api/B2BLogin

Route: api/B2BLogin/{arg1}

Route: api/B2BLogin/{arg1}/{arg2}

Input Parameters: arg1

CacheResponse Header: 60 seconds

Response Object: B2BLoginRS (XSD / Schema)


Request

arg1:

Response

Url:
Response:

Method: GET

Description: Retrieves a list of all elements by ClientId.

Route: api/B2BNetworkMargin

Route: api/B2BNetworkMargin/{arg1}

Route: api/B2BNetworkMargin/{arg1}/{arg2}

Input Parameters: lid, enterpriseId, networkCodeId, toRange [optional, default=(null)]

CacheResponse Header: 2 seconds

Response Object: List Of EntNetworkCodeMargin (XSD / Schema)


Request

lid:
enterpriseId:
networkCodeId:
toRange [optional]:

Response

Url:
Response:

Method: POST

Description: B2B Requests Submit.

Route: api/B2BRequests

Route: api/B2BRequests/{arg1}

Route: api/B2BRequests/{arg1}/{arg2}

Input Parameters: lid, Body

Request Object:B2BControllerRequestRQ (XSD / Schema)

Response Object: B2BControllerRequestsRS (XSD / Schema)


Request

lid:
Request Body:

Response

Url:
Response:

Method: POST

Description: Get Booking List

Route: api/BkgBookingSearch

Route: api/BkgBookingSearch/{arg1}

Route: api/BkgBookingSearch/{arg1}/{arg2}

Input Parameters: Body

Request Object:BookingRQ (XSD / Schema)

Response Object: BookingRS (XSD / Schema)


Request

Request Body:

Response

Url:
Response:

Method: POST

Description: Flexy Use controller.

Route: api/AirBookingFlexyUse

Route: api/AirBookingFlexyUse/{arg1}

Route: api/AirBookingFlexyUse/{arg1}/{arg2}

Input Parameters: Body

Request Object:BookingFlexyUseRQ (XSD / Schema)

Response Object: BookingFlexyUseRS (XSD / Schema)


Request

Request Body:

Response

Url:
Response: