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": "37e8667e-4d81-4bd6-b23d-81c282239a8d",
"itemsToAdd": [
{
"PurchaseItemId": "5f8e0b60-2ff8-4b1c-9c3f-ee0663d3b7ba",
"Id": "2e8b6446-51cb-4505-9313-214e475582e9",
"PurchaseAdditionalCostItemId": 3,
"AllocationPercentage": 4.0
}
],
"itemsToUpdate": [
{
"CostAllocationId": 1,
"Id": "c33da249-f5ec-4ced-aa10-1a9656c0b830",
"PurchaseAdditionalCostItemId": 3,
"AllocationPercentage": 4.0
}
],
"itemsToDelete": [
1
]
}
This is an example of the response JSON. Results will vary depending on your data.
{
"ModifiedItems": [
{
"Id": "68274d2a-9fb9-4afc-bccd-13305813c7d7",
"CostAllocationId": 2,
"PurchaseAdditionalCostItemId": 3,
"PurchaseItemId": "519a09c1-94b7-49ae-97fa-2f4fdd1e6cf2",
"AllocationPercentage": 5.0
}
]
}