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.
Name | Type | Description |
---|---|---|
request | Add_PurchaseOrderExtendedPropertyRequest |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Add_PurchaseOrderExtendedProperty
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
This is an example of the request structure. Results will vary depending on your data.
request={
"PurchaseId": "852cdebe-01f8-45b6-9f38-4535603cc96a",
"ExtendedPropertyItems": [
{
"PropertyName": "sample string 1",
"PropertyValue": "sample string 2"
}
]
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Items": [
{
"RowId": 1,
"PurchaseID": "8389de54-38b6-46cb-a3ce-47174ace504a",
"AddedDateTime": "2022-08-03T16:02:32.2231885+01:00",
"UserName": "sample string 4",
"PropertyName": "sample string 5",
"PropertyValue": "sample string 6"
}
]
}