POST deliveries/book-in-all

Books in all outstanding items for multiple purchase orders, If using multiple stock locations this will automatically assign stock to stock locations based on stock location type, display order and whether it is empty.

Request Information

URI Parameters

None.

Body Parameters

Collection of PurchaseOrderSimpleRequestModel
NameDescriptionTypeAdditional information
PurchaseOrderID Purchase Order ID integer None.

Request Formats

application/json, text/json

Sample:
[
  {
    "PurchaseOrderID": 1
  },
  {
    "PurchaseOrderID": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfPurchaseOrderSimpleRequestModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PurchaseOrderSimpleRequestModel>
    <PurchaseOrderID>1</PurchaseOrderID>
  </PurchaseOrderSimpleRequestModel>
  <PurchaseOrderSimpleRequestModel>
    <PurchaseOrderID>1</PurchaseOrderID>
  </PurchaseOrderSimpleRequestModel>
</ArrayOfPurchaseOrderSimpleRequestModel>

Response Information

Resource Description

Books in all outstanding items for multiple purchase orders, If using multiple stock locations this will automatically assign stock to stock locations based on stock location type, display order and whether it is empty.

BatchResponseContainerOfPurchaseOrderSimpleResponse
NameDescriptionTypeAdditional information
TotalItemsProcessed integer None.
Successful integer None.
Failed integer None.
Responses Collection of PurchaseOrderSimpleResponse None.

Response Formats

application/json, text/json

Sample:
{
  "TotalItemsProcessed": 1,
  "Successful": 2,
  "Failed": 3,
  "Responses": [
    {
      "PurchaseOrderID": 1,
      "PurchaseOrderReference": "sample string 2",
      "Success": true,
      "Error": "sample string 4"
    },
    {
      "PurchaseOrderID": 1,
      "PurchaseOrderReference": "sample string 2",
      "Success": true,
      "Error": "sample string 4"
    }
  ]
}