POST Ship/BookingDetail

Request Information

URI Parameters

None.

Body Parameters

ShipBookingDetailRequest
NameDescriptionTypeAdditional information
numCode

string

None.

bookingDate

date

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "numCode": "sample string 1",
  "bookingDate": "2021-11-27T11:52:01.5635716+07:00",
  "userID": "sample string 3",
  "accessToken": "sample string 4"
}

application/xml, text/xml

Sample:
<ShipBookingDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 4</accessToken>
  <userID>sample string 3</userID>
  <bookingDate>2021-11-27T11:52:01.5635716+07:00</bookingDate>
  <numCode>sample string 1</numCode>
</ShipBookingDetailRequest>

Response Information

Resource Description

ShipBookingDetailResponse
NameDescriptionTypeAdditional information
numCode

string

None.

bookingDateTime

date

None.

originPort

string

None.

originCall

integer

None.

destinationPort

string

None.

destinationCall

integer

None.

shipNumber

string

None.

shipName

string

None.

bokingNumber

string

None.

departDateTime

date

None.

arrivalDateTime

date

None.

totalTicket

integer

None.

ticketStatus

string

None.

issuedDateTime

date

None.

issuedDateTimeLimit

date

None.

salesPrice

decimal number

None.

ticketPrice

decimal number

None.

shipMarkup

decimal number

None.

paxBookingDetails

Collection of PaxBookingDetail

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:
{
  "numCode": "sample string 1",
  "bookingDateTime": "2021-11-27T11:52:01.5635716+07:00",
  "originPort": "sample string 3",
  "originCall": 4,
  "destinationPort": "sample string 5",
  "destinationCall": 6,
  "shipNumber": "sample string 7",
  "shipName": "sample string 8",
  "bokingNumber": "sample string 9",
  "departDateTime": "2021-11-27T11:52:01.5635716+07:00",
  "arrivalDateTime": "2021-11-27T11:52:01.5635716+07:00",
  "totalTicket": 12,
  "ticketStatus": "sample string 13",
  "issuedDateTime": "2021-11-27T11:52:01.5635716+07:00",
  "issuedDateTimeLimit": "2021-11-27T11:52:01.5635716+07:00",
  "salesPrice": 15.0,
  "ticketPrice": 16.0,
  "shipMarkup": 17.0,
  "paxBookingDetails": [
    {
      "paxName": "sample string 1",
      "paxType": "sample string 2",
      "paxGender": "sample string 3",
      "birthDate": "2021-11-27T11:52:01.5635716+07:00",
      "ID": "sample string 4",
      "phone": "sample string 5",
      "deck": "sample string 6",
      "cabin": "sample string 7",
      "bed": "sample string 8",
      "fare": 9.0
    },
    {
      "paxName": "sample string 1",
      "paxType": "sample string 2",
      "paxGender": "sample string 3",
      "birthDate": "2021-11-27T11:52:01.5635716+07:00",
      "ID": "sample string 4",
      "phone": "sample string 5",
      "deck": "sample string 6",
      "cabin": "sample string 7",
      "bed": "sample string 8",
      "fare": 9.0
    }
  ],
  "respTime": "2021-11-27T11:52:01.5635716+07:00",
  "userID": "sample string 19",
  "accessToken": "sample string 20",
  "status": "sample string 21",
  "respMessage": "sample string 22"
}

application/xml, text/xml

Sample:
<ShipBookingDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 20</accessToken>
  <respMessage>sample string 22</respMessage>
  <respTime>2021-11-27T11:52:01.5635716+07:00</respTime>
  <status>sample string 21</status>
  <userID>sample string 19</userID>
  <arrivalDateTime>2021-11-27T11:52:01.5635716+07:00</arrivalDateTime>
  <bokingNumber>sample string 9</bokingNumber>
  <bookingDateTime>2021-11-27T11:52:01.5635716+07:00</bookingDateTime>
  <departDateTime>2021-11-27T11:52:01.5635716+07:00</departDateTime>
  <destinationCall>6</destinationCall>
  <destinationPort>sample string 5</destinationPort>
  <issuedDateTime>2021-11-27T11:52:01.5635716+07:00</issuedDateTime>
  <issuedDateTimeLimit>2021-11-27T11:52:01.5635716+07:00</issuedDateTimeLimit>
  <numCode>sample string 1</numCode>
  <originCall>4</originCall>
  <originPort>sample string 3</originPort>
  <paxBookingDetails>
    <PaxBookingDetail>
      <ID>sample string 4</ID>
      <bed>sample string 8</bed>
      <birthDate>2021-11-27T11:52:01.5635716+07:00</birthDate>
      <cabin>sample string 7</cabin>
      <deck>sample string 6</deck>
      <fare>9</fare>
      <paxGender>sample string 3</paxGender>
      <paxName>sample string 1</paxName>
      <paxType>sample string 2</paxType>
      <phone>sample string 5</phone>
    </PaxBookingDetail>
    <PaxBookingDetail>
      <ID>sample string 4</ID>
      <bed>sample string 8</bed>
      <birthDate>2021-11-27T11:52:01.5635716+07:00</birthDate>
      <cabin>sample string 7</cabin>
      <deck>sample string 6</deck>
      <fare>9</fare>
      <paxGender>sample string 3</paxGender>
      <paxName>sample string 1</paxName>
      <paxType>sample string 2</paxType>
      <phone>sample string 5</phone>
    </PaxBookingDetail>
  </paxBookingDetails>
  <salesPrice>15</salesPrice>
  <shipMarkup>17</shipMarkup>
  <shipName>sample string 8</shipName>
  <shipNumber>sample string 7</shipNumber>
  <ticketPrice>16</ticketPrice>
  <ticketStatus>sample string 13</ticketStatus>
  <totalTicket>12</totalTicket>
</ShipBookingDetailResponse>