POST Cargo/Tracking

Request Information

URI Parameters

None.

Body Parameters

CargoTrackingRequest
NameDescriptionTypeAdditional information
supplierName

string

None.

sttNumber

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "supplierName": "sample string 1",
  "sttNumber": "sample string 2",
  "userID": "sample string 3",
  "accessToken": "sample string 4"
}

application/xml, text/xml

Sample:
<CargoTrackingRequest 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>
  <sttNumber>sample string 2</sttNumber>
  <supplierName>sample string 1</supplierName>
</CargoTrackingRequest>

Response Information

Resource Description

CargoTrackingResponse
NameDescriptionTypeAdditional information
infos

Collection of CargoSTTInfoModel

None.

histories

Collection of CargoShipmentHistoryModel

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:
{
  "infos": [
    {
      "sttNumber": "sample string 1",
      "serviceType": "sample string 2",
      "pickupLocation": "sample string 3",
      "destination": "sample string 4"
    },
    {
      "sttNumber": "sample string 1",
      "serviceType": "sample string 2",
      "pickupLocation": "sample string 3",
      "destination": "sample string 4"
    }
  ],
  "histories": [
    {
      "rowNum": "sample string 1",
      "date": "sample string 2",
      "sttNumber": "sample string 3",
      "trackCode": "sample string 4",
      "location": "sample string 5",
      "eCargoMAWBNo": "sample string 6"
    },
    {
      "rowNum": "sample string 1",
      "date": "sample string 2",
      "sttNumber": "sample string 3",
      "trackCode": "sample string 4",
      "location": "sample string 5",
      "eCargoMAWBNo": "sample string 6"
    }
  ],
  "respTime": "2021-11-27T01:24:39.5171472+07:00",
  "userID": "sample string 2",
  "accessToken": "sample string 3",
  "status": "sample string 4",
  "respMessage": "sample string 5"
}

application/xml, text/xml

Sample:
<CargoTrackingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 3</accessToken>
  <respMessage>sample string 5</respMessage>
  <respTime>2021-11-27T01:24:39.5171472+07:00</respTime>
  <status>sample string 4</status>
  <userID>sample string 2</userID>
  <histories>
    <CargoShipmentHistoryModel>
      <date>sample string 2</date>
      <eCargoMAWBNo>sample string 6</eCargoMAWBNo>
      <location>sample string 5</location>
      <rowNum>sample string 1</rowNum>
      <sttNumber>sample string 3</sttNumber>
      <trackCode>sample string 4</trackCode>
    </CargoShipmentHistoryModel>
    <CargoShipmentHistoryModel>
      <date>sample string 2</date>
      <eCargoMAWBNo>sample string 6</eCargoMAWBNo>
      <location>sample string 5</location>
      <rowNum>sample string 1</rowNum>
      <sttNumber>sample string 3</sttNumber>
      <trackCode>sample string 4</trackCode>
    </CargoShipmentHistoryModel>
  </histories>
  <infos>
    <CargoSTTInfoModel>
      <destination>sample string 4</destination>
      <pickupLocation>sample string 3</pickupLocation>
      <serviceType>sample string 2</serviceType>
      <sttNumber>sample string 1</sttNumber>
    </CargoSTTInfoModel>
    <CargoSTTInfoModel>
      <destination>sample string 4</destination>
      <pickupLocation>sample string 3</pickupLocation>
      <serviceType>sample string 2</serviceType>
      <sttNumber>sample string 1</sttNumber>
    </CargoSTTInfoModel>
  </infos>
</CargoTrackingResponse>