POST api/masterdata/Despatch?despatchRef={despatchRef}&customerCode={customerCode}&customOrderNumber={customOrderNumber}&poNumber={poNumber}&despatchDate={despatchDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
despatchRef

string

Required

customerCode

string

Required

customOrderNumber

string

Required

poNumber

string

Required

despatchDate

date

Required

Body Parameters

MasterDataByFacilityParameter
NameDescriptionTypeAdditional information
Timestamp

string

None.

FacilityId

integer

None.

PageResultsValue

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Timestamp": "sample string 1",
  "FacilityId": 1,
  "PageResultsValue": 2
}

application/xml, text/xml

Sample:
<MasterDataByFacilityParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FreshPackMultiProduce.WebApi.Models">
  <FacilityId>1</FacilityId>
  <PageResultsValue>2</PageResultsValue>
  <Timestamp>sample string 1</Timestamp>
</MasterDataByFacilityParameter>

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 'MasterDataByFacilityParameter'.

Response Information

Resource Description

Collection of Despatch
NameDescriptionTypeAdditional information
Id

integer

None.

Code

string

None.

Description

string

None.

DeletedDate

date

None.

ConcurTimeStamp

Collection of byte

None.

SourceFacilityId

integer

Required

SourceFacility

string

None.

CustomerId

integer

Required

Customer

string

None.

DespatchDate

date

None.

EstimatedArrivalDate

date

None.

CustomOrderNumber

string

None.

PONumber

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Code": "sample string 2",
    "Description": "sample string 3",
    "DeletedDate": "2025-12-06T14:06:55.3896238+10:30",
    "ConcurTimeStamp": "QEA=",
    "SourceFacilityId": 5,
    "SourceFacility": "sample string 6",
    "CustomerId": 7,
    "Customer": "sample string 8",
    "DespatchDate": "2025-12-06T14:06:55.3896238+10:30",
    "EstimatedArrivalDate": "2025-12-06T14:06:55.3896238+10:30",
    "CustomOrderNumber": "sample string 11",
    "PONumber": "sample string 12"
  },
  {
    "Id": 1,
    "Code": "sample string 2",
    "Description": "sample string 3",
    "DeletedDate": "2025-12-06T14:06:55.3896238+10:30",
    "ConcurTimeStamp": "QEA=",
    "SourceFacilityId": 5,
    "SourceFacility": "sample string 6",
    "CustomerId": 7,
    "Customer": "sample string 8",
    "DespatchDate": "2025-12-06T14:06:55.3896238+10:30",
    "EstimatedArrivalDate": "2025-12-06T14:06:55.3896238+10:30",
    "CustomOrderNumber": "sample string 11",
    "PONumber": "sample string 12"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDespatch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FreshPackMultiProduce.WebApi.Models.EnquiryModels">
  <Despatch>
    <Code>sample string 2</Code>
    <ConcurTimeStamp>QEA=</ConcurTimeStamp>
    <CustomOrderNumber>sample string 11</CustomOrderNumber>
    <Customer>sample string 8</Customer>
    <CustomerId>7</CustomerId>
    <DeletedDate>2025-12-06T14:06:55.3896238+10:30</DeletedDate>
    <Description>sample string 3</Description>
    <DespatchDate>2025-12-06T14:06:55.3896238+10:30</DespatchDate>
    <EstimatedArrivalDate>2025-12-06T14:06:55.3896238+10:30</EstimatedArrivalDate>
    <Id>1</Id>
    <PONumber>sample string 12</PONumber>
    <SourceFacility>sample string 6</SourceFacility>
    <SourceFacilityId>5</SourceFacilityId>
  </Despatch>
  <Despatch>
    <Code>sample string 2</Code>
    <ConcurTimeStamp>QEA=</ConcurTimeStamp>
    <CustomOrderNumber>sample string 11</CustomOrderNumber>
    <Customer>sample string 8</Customer>
    <CustomerId>7</CustomerId>
    <DeletedDate>2025-12-06T14:06:55.3896238+10:30</DeletedDate>
    <Description>sample string 3</Description>
    <DespatchDate>2025-12-06T14:06:55.3896238+10:30</DespatchDate>
    <EstimatedArrivalDate>2025-12-06T14:06:55.3896238+10:30</EstimatedArrivalDate>
    <Id>1</Id>
    <PONumber>sample string 12</PONumber>
    <SourceFacility>sample string 6</SourceFacility>
    <SourceFacilityId>5</SourceFacilityId>
  </Despatch>
</ArrayOfDespatch>