Modify additional cost allocation items
Name | Type | Description |
---|---|---|
request | Modify_AdditionalCostAllocationRequest |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Modify_AdditionalCostAllocation
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": "1974b082-68f7-44cf-8a88-6e8ceda05dc2",
"itemsToAdd": [
{
"PurchaseItemId": "7991bfdb-c13c-4d51-bcb5-4e02c88a1b96",
"Id": "e91cd35e-f3ac-4e1a-b233-98da464234de",
"PurchaseAdditionalCostItemId": 3,
"AllocationPercentage": 4.0
}
],
"itemsToUpdate": [
{
"CostAllocationId": 1,
"Id": "55d91895-a89b-453b-9714-6fb16702a9f1",
"PurchaseAdditionalCostItemId": 3,
"AllocationPercentage": 4.0
}
],
"itemsToDelete": [
1
]
}
This is an example of the response JSON. Results will vary depending on your data.
{
"ModifiedItems": [
{
"Id": "de31b296-d11d-40c3-b93e-935a09aa4b51",
"CostAllocationId": 2,
"PurchaseAdditionalCostItemId": 3,
"PurchaseItemId": "bf944150-c2a0-450b-b7f8-4019c7143d9f",
"AllocationPercentage": 5.0
}
]
}