PUT orders/despatch-orders

This allows you to despatch orders in bulk. You can only despatch a maximum of 50 orders at once.

Request Information

URI Parameters

None.

Body Parameters

This is a collection of OrderDespatchModel which contains a list of all of the orders that you want to despatch.

Collection of OrderDespatchModel
NameDescriptionTypeAdditional information
OrderNumber The StoreFeeder Order Number you want to despatch integer Required Matching regular expression pattern: ^[1-9]\d*$
TrackingNumber The tracking number of the despatched order. This can be left null. string None.
DespatchDate The despatch date of the order. This can be left null and it will be set at now. date None.
ShippedVia This is the carrier that the package was shipped with. For instance Royal Mail. string None.

Request Formats

application/json, text/json

Sample:
[
  {
    "OrderNumber": 1,
    "TrackingNumber": "rm12345",
    "DespatchDate": "2017-10-20T07:21:57.5528538Z",
    "ShippedVia": "Royal Mail"
  },
  {
    "OrderNumber": 2,
    "DespatchDate": "2017-10-20T07:21:57.5528538Z",
    "ShippedVia": "Royal Mail"
  },
  {
    "OrderNumber": 3,
    "DespatchDate": "2017-10-20T07:21:57.5528538Z"
  },
  {
    "OrderNumber": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfOrderDespatchModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <OrderDespatchModel>
    <OrderNumber>1</OrderNumber>
    <TrackingNumber>rm12345</TrackingNumber>
    <DespatchDate>2017-10-20T07:21:57.5528538Z</DespatchDate>
    <ShippedVia>Royal Mail</ShippedVia>
  </OrderDespatchModel>
  <OrderDespatchModel>
    <OrderNumber>2</OrderNumber>
    <DespatchDate>2017-10-20T07:21:57.5528538Z</DespatchDate>
    <ShippedVia>Royal Mail</ShippedVia>
  </OrderDespatchModel>
  <OrderDespatchModel>
    <OrderNumber>3</OrderNumber>
    <DespatchDate>2017-10-20T07:21:57.5528538Z</DespatchDate>
  </OrderDespatchModel>
  <OrderDespatchModel>
    <OrderNumber>4</OrderNumber>
    <DespatchDate xsi:nil="true" />
  </OrderDespatchModel>
</ArrayOfOrderDespatchModel>

Response Information

Resource Description

This allows you to despatch orders in bulk. You can only despatch a maximum of 50 orders at once.

Collection of OrderDespatchResponse
NameDescriptionTypeAdditional information
OrderNumber The Storefeeder Order Number integer None.
Success Whether the action was successful boolean None.
Error Any errors that were received Success will always be false if an error is returned. string None.

Response Formats

application/json, text/json

Sample:
[
  {
    "OrderNumber": 1,
    "Success": true
  },
  {
    "OrderNumber": 2,
    "Success": false,
    "Error": "Order doesnt exist or you do not have permission to access it."
  }
]

application/xml, text/xml

Sample:
<ArrayOfOrderDespatchResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <OrderDespatchResponse>
    <Success>true</Success>
    <OrderNumber>1</OrderNumber>
  </OrderDespatchResponse>
  <OrderDespatchResponse>
    <Success>false</Success>
    <Error>Order doesnt exist or you do not have permission to access it.</Error>
    <OrderNumber>2</OrderNumber>
  </OrderDespatchResponse>
</ArrayOfOrderDespatchResponse>