POST api/booking/list

Request Information

URI Parameters

None.

Body Parameters

BookingListRequest
NameDescriptionTypeAdditional information
token

string

None.

fromdate

date

None.

todate

date

None.

keyword

string

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "fromdate": "2026-01-07T15:23:36.7214862+07:00",
  "todate": "2026-01-07T15:23:36.7214862+07:00",
  "keyword": "sample string 4"
}

application/xml, text/xml

Sample:
<BookingListRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FMSDeliveryWebApp.Models">
  <fromdate>2026-01-07T15:23:36.7214862+07:00</fromdate>
  <keyword>sample string 4</keyword>
  <todate>2026-01-07T15:23:36.7214862+07:00</todate>
  <token>sample string 1</token>
</BookingListRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BookingListRequest'.

Response Information

Resource Description

BookingListResponse
NameDescriptionTypeAdditional information
found

integer

None.

status

apiResultState

None.

statusString

string

None.

message

string

None.

data

Object

None.

data

Collection of BookingModel

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 0,
  "statusString": "ok",
  "message": "sample string 1",
  "found": 2,
  "data": [
    {
      "BookingNo": "sample string 1",
      "RECGUID": "sample string 2",
      "Date": "2026-01-07T15:23:36.7371066+07:00",
      "CustomerID": "sample string 4",
      "ShipperName": "sample string 5",
      "ConsigneeName": "sample string 6",
      "ShipmentType": "sample string 7",
      "Commodity": "sample string 8",
      "KGS": 9.0,
      "CBM": 10.0,
      "Cont20": 11,
      "Cont40": 12,
      "POL": "sample string 13",
      "POD": "sample string 14",
      "Remark": "sample string 15",
      "BkStatus": "sample string 16",
      "ShipmentNo": "sample string 17"
    },
    {
      "BookingNo": "sample string 1",
      "RECGUID": "sample string 2",
      "Date": "2026-01-07T15:23:36.7371066+07:00",
      "CustomerID": "sample string 4",
      "ShipperName": "sample string 5",
      "ConsigneeName": "sample string 6",
      "ShipmentType": "sample string 7",
      "Commodity": "sample string 8",
      "KGS": 9.0,
      "CBM": 10.0,
      "Cont20": 11,
      "Cont40": 12,
      "POL": "sample string 13",
      "POD": "sample string 14",
      "Remark": "sample string 15",
      "BkStatus": "sample string 16",
      "ShipmentNo": "sample string 17"
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Collections.Generic.List`1[[FMSDeliveryWebApp.Models.BookingModel, FMSDeliveryWebApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' with data contract name 'ArrayOfBookingModel:http://schemas.datacontract.org/2004/07/FMSDeliveryWebApp.Models' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Collections.Generic.List`1[[FMSDeliveryWebApp.Models.BookingModel, FMSDeliveryWebApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' with data contract name 'ArrayOfBookingModel:http://schemas.datacontract.org/2004/07/FMSDeliveryWebApp.Models' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.