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": "9608c845-d5f1-4df0-861b-09cc2a5da03e",
"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": "80fc1284-938e-4d30-84d3-6599c5462965",
"AddedDateTime": "2023-01-10T13:49:50.0053739+00:00",
"UserName": "sample string 4",
"PropertyName": "sample string 5",
"PropertyValue": "sample string 6"
}
]
}