Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

PurchaseOrder /Change_PurchaseOrderStatus

Allows 150 calls per minute

Response: PurchaseOrderHeader



Change purchase order status. Can change from:
PENDING to OPEN, which will populate Due (OnOrder) values in stock levels,
OPEN to DELIVERED, which will consolidate Due values in stock levels
PARTIAL to DELIVERED, which will consolidate Due values in stock levels

Parameters

NameTypeDescription
changeStatusParameterChange_PurchaseOrderStatusParameterClass that represents the parameters for Changing the Purchase Order Status

Permissions

GlobalPermissions.PurchaseOrder.EditPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/PurchaseOrder/Change_PurchaseOrderStatus

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

changeStatusParameter={
  "pkPurchaseId": "7d192b2b-ba0b-45e5-b98d-80f35842e642",
  "status": 0
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "pkPurchaseID": "a7d92947-4ebd-4412-9067-31ba3e96425b",
  "fkSupplierId": "95c7071a-593b-441a-b173-82080aa79016",
  "fkLocationId": "d68f02d1-aa16-4b24-80cc-6bce3143706d",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2021-07-29T09:24:43.3042153Z",
  "DateOfDelivery": "2021-07-29T09:24:43.3042153Z",
  "QuotedDeliveryDate": "2021-07-29T09:24:43.3042153Z",
  "PostagePaid": 4.0,
  "TotalCost": 5.0,
  "taxPaid": 6.0,
  "ShippingTaxRate": 7.0,
  "ConversionRate": 8.0,
  "ConvertedShippingCost": 9.0,
  "ConvertedShippingTax": 10.0,
  "ConvertedOtherCost": 11.0,
  "ConvertedOtherTax": 12.0,
  "ConvertedGrandTotal": 13.0
}