Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

PurchaseOrder /Add_PurchaseOrderExtendedProperty

Allows 150 calls per minute

Response: Add_PurchaseOrderExtendedPropertyResponse



Adds extended properties to a purchase order. Property name must be unique otherwise the method throws an error. Maxium number of extended properties allowed for a single purchase order is 50. If total count of extended properties exceeds 50 an error will be thrown.

Parameters

NameTypeDescription
requestAdd_PurchaseOrderExtendedPropertyRequest

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/Add_PurchaseOrderExtendedProperty

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.

request={
  "PurchaseId": "5314808b-e925-4494-ad9e-17a61130049f",
  "ExtendedPropertyItems": [
    {
      "PropertyName": "sample string 1",
      "PropertyValue": "sample string 2"
    }
  ]
}

Response

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

{
  "Items": [
    {
      "RowId": 1,
      "PurchaseID": "9fab64e9-b5fd-45f6-abee-7192951d86f0",
      "AddedDateTime": "2021-07-29T09:24:43.333232+01:00",
      "UserName": "sample string 4",
      "PropertyName": "sample string 5",
      "PropertyValue": "sample string 6"
    }
  ]
}