POST Tour/Booking

Request Information

URI Parameters

None.

Body Parameters

TourBookingRequest
NameDescriptionTypeAdditional information
TourID

integer

None.

PackageID

integer

None.

RabID

integer

None.

TourVariant

string

None.

DepartDate

date

None.

PaymentType

string

None.

Pax

Collection of TourPax

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TourID": 1,
  "PackageID": 2,
  "RabID": 3,
  "TourVariant": "sample string 4",
  "DepartDate": "2025-01-22T06:11:02.6467097+07:00",
  "PaymentType": "sample string 6",
  "Pax": [
    {
      "Title": "sample string 1",
      "Name": "sample string 2",
      "Type": 0,
      "Room": "sample string 3"
    },
    {
      "Title": "sample string 1",
      "Name": "sample string 2",
      "Type": 0,
      "Room": "sample string 3"
    }
  ],
  "userID": "sample string 7",
  "accessToken": "sample string 8"
}

application/xml, text/xml

Sample:
<TourBookingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 8</accessToken>
  <userID>sample string 7</userID>
  <DepartDate>2025-01-22T06:11:02.6467097+07:00</DepartDate>
  <PackageID>2</PackageID>
  <Pax>
    <TourPax>
      <Name>sample string 2</Name>
      <Room>sample string 3</Room>
      <Title>sample string 1</Title>
      <Type>Adult</Type>
    </TourPax>
    <TourPax>
      <Name>sample string 2</Name>
      <Room>sample string 3</Room>
      <Title>sample string 1</Title>
      <Type>Adult</Type>
    </TourPax>
  </Pax>
  <PaymentType>sample string 6</PaymentType>
  <RabID>3</RabID>
  <TourID>1</TourID>
  <TourVariant>sample string 4</TourVariant>
</TourBookingRequest>

Response Information

Resource Description

TourTransactionDetailResponse
NameDescriptionTypeAdditional information
BookingCode

string

None.

BookingDate

date

None.

DepartDate

date

None.

TicketStatus

string

None.

TourName

string

None.

PackageTourName

string

None.

Duration

string

None.

Currency

string

None.

TotalPrice

decimal number

None.

SalesPrice

decimal number

None.

Commision

decimal number

None.

IssuedDate

date

None.

IssuedTimeLimit

date

None.

Pax

Collection of TourPax

None.

TourVariant

string

None.

PaymentType

string

None.

RemainingBill

decimal number

None.

DPAmount

decimal number

None.

respTime

describe time in sending response

date

None.

userID

user ID to access API

string

None.

accessToken

access token that needed to access API

string

None.

status

SUCCESS or FAILED

string

None.

respMessage

detail message of response status

string

None.

Response Formats

application/json, text/json

Sample:
{
  "BookingCode": "sample string 1",
  "BookingDate": "2025-01-22T06:11:02.6623415+07:00",
  "DepartDate": "2025-01-22T06:11:02.6623415+07:00",
  "TicketStatus": "sample string 4",
  "TourName": "sample string 5",
  "PackageTourName": "sample string 6",
  "Duration": "sample string 7",
  "Currency": "sample string 8",
  "TotalPrice": 9.0,
  "SalesPrice": 10.0,
  "Commision": 11.0,
  "IssuedDate": "2025-01-22T06:11:02.6623415+07:00",
  "IssuedTimeLimit": "2025-01-22T06:11:02.6623415+07:00",
  "Pax": [
    {
      "Title": "sample string 1",
      "Name": "sample string 2",
      "Type": 0,
      "Room": "sample string 3"
    },
    {
      "Title": "sample string 1",
      "Name": "sample string 2",
      "Type": 0,
      "Room": "sample string 3"
    }
  ],
  "TourVariant": "sample string 12",
  "PaymentType": "sample string 13",
  "RemainingBill": 14.0,
  "DPAmount": 15.0,
  "respTime": "2025-01-22T06:11:02.6623415+07:00",
  "userID": "sample string 17",
  "accessToken": "sample string 18",
  "status": "sample string 19",
  "respMessage": "sample string 20"
}

application/xml, text/xml

Sample:
<TourTransactionDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 18</accessToken>
  <respMessage>sample string 20</respMessage>
  <respTime>2025-01-22T06:11:02.6623415+07:00</respTime>
  <status>sample string 19</status>
  <userID>sample string 17</userID>
  <BookingCode>sample string 1</BookingCode>
  <BookingDate>2025-01-22T06:11:02.6623415+07:00</BookingDate>
  <Commision>11</Commision>
  <Currency>sample string 8</Currency>
  <DPAmount>15</DPAmount>
  <DepartDate>2025-01-22T06:11:02.6623415+07:00</DepartDate>
  <Duration>sample string 7</Duration>
  <IssuedDate>2025-01-22T06:11:02.6623415+07:00</IssuedDate>
  <IssuedTimeLimit>2025-01-22T06:11:02.6623415+07:00</IssuedTimeLimit>
  <PackageTourName>sample string 6</PackageTourName>
  <Pax>
    <TourPax>
      <Name>sample string 2</Name>
      <Room>sample string 3</Room>
      <Title>sample string 1</Title>
      <Type>Adult</Type>
    </TourPax>
    <TourPax>
      <Name>sample string 2</Name>
      <Room>sample string 3</Room>
      <Title>sample string 1</Title>
      <Type>Adult</Type>
    </TourPax>
  </Pax>
  <PaymentType>sample string 13</PaymentType>
  <RemainingBill>14</RemainingBill>
  <SalesPrice>10</SalesPrice>
  <TicketStatus>sample string 4</TicketStatus>
  <TotalPrice>9</TotalPrice>
  <TourName>sample string 5</TourName>
  <TourVariant>sample string 12</TourVariant>
</TourTransactionDetailResponse>