v1

latestOpenAPI 3.0.02026-07-266521,3121.2 MB
PurchaseOrder

CreatePOsFromInventory

<b>Permissions Required: </b> GlobalPermissions.Inventory.PurchaseOrder.EditPurchaseOrderNode <b>Rate limit: </b><span style="background-color:#0272d9;color:white;padding:4px 8px;text-align:center;border-radius:5px; font-size: small;"><b>150</b></span> / minute

post/api/PurchaseOrder/CreatePOsFromInventory

Request body

Example request

{
  "request": {
    "ToCreate": [
      {
        "PurchaseOrderId": "00000000-0000-0000-0000-000000000000",
        "OpenOrderItemsBound": [
          "00000000-0000-0000-0000-000000000000"
        ],
        "StockItemId": "00000000-0000-0000-0000-000000000000",
        "SupplierId": "00000000-0000-0000-0000-000000000000",
        "RequestedSupplierId": "00000000-0000-0000-0000-000000000000"
      }
    ],
    "LocationId": "00000000-0000-0000-0000-000000000000"
  }
}

Response

OK

PurchaseOrdersobject

A dictionary where the key is supplier Id and the tuple represents the purchase order id and the external invoice number for that PO

SkippedStockItemsstring[]

Example response

{
  "SkippedStockItems": [
    "00000000-0000-0000-0000-000000000000"
  ]
}