POST Ship/BookingDetail

Request Information

URI Parameters

None.

Body Parameters

ShipBookingDetailRequest
NameDescriptionTypeAdditional information
numCode

string

None.

bookingDate

date

None.

bookingNumber

string

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": "2025-01-22T23:53:28.9113536+07:00",
  "bookingNumber": "sample string 3",
  "userID": "sample string 4",
  "accessToken": "sample string 5"
}

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 5</accessToken>
  <userID>sample string 4</userID>
  <bookingDate>2025-01-22T23:53:28.9113536+07:00</bookingDate>
  <bookingNumber>sample string 3</bookingNumber>
  <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.

originName

string

None.

destinationName

string

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": "2025-01-22T23:53:28.9113536+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": "2025-01-22T23:53:28.9113536+07:00",
  "arrivalDateTime": "2025-01-22T23:53:28.9113536+07:00",
  "totalTicket": 12,
  "ticketStatus": "sample string 13",
  "issuedDateTime": "2025-01-22T23:53:28.9113536+07:00",
  "issuedDateTimeLimit": "2025-01-22T23:53:28.9113536+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": "2025-01-22T23:53:28.9113536+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,
      "admin": 10.0,
      "ticketNumber": "sample string 11",
      "ticketQRCode": "sample string 12"
    },
    {
      "paxName": "sample string 1",
      "paxType": "sample string 2",
      "paxGender": "sample string 3",
      "birthDate": "2025-01-22T23:53:28.9113536+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,
      "admin": 10.0,
      "ticketNumber": "sample string 11",
      "ticketQRCode": "sample string 12"
    }
  ],
  "originName": "sample string 18",
  "destinationName": "sample string 19",
  "respTime": "2025-01-22T23:53:28.9113536+07:00",
  "userID": "sample string 21",
  "accessToken": "sample string 22",
  "status": "sample string 23",
  "respMessage": "sample string 24"
}

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 22</accessToken>
  <respMessage>sample string 24</respMessage>
  <respTime>2025-01-22T23:53:28.9113536+07:00</respTime>
  <status>sample string 23</status>
  <userID>sample string 21</userID>
  <arrivalDateTime>2025-01-22T23:53:28.9113536+07:00</arrivalDateTime>
  <bokingNumber>sample string 9</bokingNumber>
  <bookingDateTime>2025-01-22T23:53:28.9113536+07:00</bookingDateTime>
  <departDateTime>2025-01-22T23:53:28.9113536+07:00</departDateTime>
  <destinationCall>6</destinationCall>
  <destinationName>sample string 19</destinationName>
  <destinationPort>sample string 5</destinationPort>
  <issuedDateTime>2025-01-22T23:53:28.9113536+07:00</issuedDateTime>
  <issuedDateTimeLimit>2025-01-22T23:53:28.9113536+07:00</issuedDateTimeLimit>
  <numCode>sample string 1</numCode>
  <originCall>4</originCall>
  <originName>sample string 18</originName>
  <originPort>sample string 3</originPort>
  <paxBookingDetails>
    <PaxBookingDetail>
      <ID>sample string 4</ID>
      <admin>10</admin>
      <bed>sample string 8</bed>
      <birthDate>2025-01-22T23:53:28.9113536+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>
      <ticketNumber>sample string 11</ticketNumber>
      <ticketQRCode>sample string 12</ticketQRCode>
    </PaxBookingDetail>
    <PaxBookingDetail>
      <ID>sample string 4</ID>
      <admin>10</admin>
      <bed>sample string 8</bed>
      <birthDate>2025-01-22T23:53:28.9113536+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>
      <ticketNumber>sample string 11</ticketNumber>
      <ticketQRCode>sample string 12</ticketQRCode>
    </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>