v1
latestOpenAPI 3.0.02026-07-266521,3121.2 MBPurchaseOrder
Modify_AdditionalCost
Modify purchase order additional costs. You can add new lines, update and delete existing. The method will return modified list back to you with each record identified by unique identifier. Purchase Order header will also be returned with new total recalculated <b>Permissions Required: </b> GlobalPermissions.Inventory.PurchaseOrder.EditPurchaseOrderNode <b>Rate limit: </b><span style="background-color:#0272d9;color:white;padding:4px 8px;text-align:center;border-radius:5px; font-size: small;"><b>150</b></span> / minute
post/api/PurchaseOrder/Modify_AdditionalCost
Request body
Example request
{
"request": {
"itemsToAdd": [
{
"Id": "00000000-0000-0000-0000-000000000000"
}
],
"itemsToUpdate": [
{
"Id": "00000000-0000-0000-0000-000000000000"
}
],
"PurchaseId": "00000000-0000-0000-0000-000000000000"
}
}Response
OK
Example response
{
"ModifiedItems": [
{
"Id": "00000000-0000-0000-0000-000000000000",
"CostAllocation": [
{
"PurchaseItemId": "00000000-0000-0000-0000-000000000000"
}
]
}
],
"PurchaseOrderHeader": {
"pkPurchaseID": "00000000-0000-0000-0000-000000000000",
"fkSupplierId": "00000000-0000-0000-0000-000000000000",
"fkLocationId": "00000000-0000-0000-0000-000000000000"
}
}