Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Create_PurchaseOrder_Initial

Allows 150 calls per minute

Response: Guid



Creates initial purchase order in pending status. Once PO is created you can add stock items to it.

Parameters

NameTypeDescription
createParametersCreate_PurchaseOrder_InitialParameterpkPurchaseId

Permissions

GlobalPermissions.Inventory.PurchaseOrder.EditPurchaseOrderNode

Example Request

The following request format is required for this method.

Get

Endpoint URL

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

GET https://eu-ext.linnworks.net/api/PurchaseOrder/Create_PurchaseOrder_Initial?createParameters=%7B%0D%0A%20%20%22fkSupplierId%22%3A%20%226ae8c128-f326-435d-8ac1-6c7d208fe7fe%22%2C%0D%0A%20%20%22fkLocationId%22%3A%20%2257239e12-a10f-48b5-bfce-38887ab2b89f%22%2C%0D%0A%20%20%22ExternalInvoiceNumber%22%3A%20%22sample%20string%203%22%2C%0D%0A%20%20%22Currency%22%3A%20%22sample%20string%204%22%2C%0D%0A%20%20%22SupplierReferenceNumber%22%3A%20%22sample%20string%205%22%2C%0D%0A%20%20%22UnitAmountTaxIncludedType%22%3A%206%2C%0D%0A%20%20%22DateOfPurchase%22%3A%20%222022-01-13T12%3A45%3A40.820919Z%22%2C%0D%0A%20%20%22QuotedDeliveryDate%22%3A%20%222022-01-13T12%3A45%3A40.820919Z%22%2C%0D%0A%20%20%22PostagePaid%22%3A%203.0%2C%0D%0A%20%20%22ShippingTaxRate%22%3A%204.0%2C%0D%0A%20%20%22ConversionRate%22%3A%205.0%0D%0A%7D

Headers

Connection: keep-alive
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Post

Endpoint URL

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

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.

createParameters={
  "fkSupplierId": "6ae8c128-f326-435d-8ac1-6c7d208fe7fe",
  "fkLocationId": "57239e12-a10f-48b5-bfce-38887ab2b89f",
  "ExternalInvoiceNumber": "sample string 3",
  "Currency": "sample string 4",
  "SupplierReferenceNumber": "sample string 5",
  "UnitAmountTaxIncludedType": 6,
  "DateOfPurchase": "2022-01-13T12:45:40.820919Z",
  "QuotedDeliveryDate": "2022-01-13T12:45:40.820919Z",
  "PostagePaid": 3.0,
  "ShippingTaxRate": 4.0,
  "ConversionRate": 5.0
}

Response

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

"cfd478a8-ef7c-485a-a9a9-664dbacd5cb4"