---
title: "Modify_AdditionalCostAllocation"
method: POST
path: "/api/PurchaseOrder/Modify_AdditionalCostAllocation"
tags: ["PurchaseOrder"]
---

# Modify_AdditionalCostAllocation

`POST /api/PurchaseOrder/Modify_AdditionalCostAllocation`

## Request

- Base URL: `https://eu-ext.linnworks.net`
- URL: `https://eu-ext.linnworks.net/api/PurchaseOrder/Modify_AdditionalCostAllocation`
- Auth: API key in header `Authorization`

Modify additional cost allocation items
<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

## Request body

- PurchaseOrderModifyAdditionalCostAllocationRequest
  - `request` ModifyAdditionalCostAllocationRequest: Request contains items for modifyin, deleting and adding additional cost allocation items
    - `PurchaseId` string, uuid: Purchase order id
    - `itemsToAdd` AddAdditionalCostAllocationItem[]: Items to add
      - `PurchaseItemId` string, uuid: Specific purchase order line id the cost is attributed to
      - `Id` string, uuid: unique row id, the same id will be returned to you in the response
      - `PurchaseAdditionalCostItemId` integer: Relation to additional cost line
      - `AllocationPercentage` number, double: Percentage of the cost that will be attributed to Purchase order item id
    - `itemsToUpdate` UpdateAdditionalCostAllocationItem[]: Items to update
      - `CostAllocationId` integer: Allocation row id that will be updated with the new AllocationPercentage
      - `Id` string, uuid: unique row id, the same id will be returned to you in the response
      - `PurchaseAdditionalCostItemId` integer: Relation to additional cost line
      - `AllocationPercentage` number, double: Percentage of the cost that will be attributed to Purchase order item id
    - `itemsToDelete` integer[]: Items to delete by CostAllocationId

## Response `200`

OK

- ModifyAdditionalCostAllocationResponse
  - `ModifiedItems` ModifiedAdditionalCostAllocationItem[]: list of modified items with Ids matched to CostAllocationId
    - `Id` string, uuid: Relation to the initial request. This Id will match to what was specified in the request so that the client side can be updated with new CostAllocationIds
    - `CostAllocationId` integer: Allocation row id. Use this Id to update or delete specific record.
    - `PurchaseAdditionalCostItemId` integer: Relation to additional cost line
    - `PurchaseItemId` string, uuid: Specific purchase order line id the cost is attributed to
    - `AllocationPercentage` number, double: Percentage of the cost that will be attributed to Purchase order item id

---

[API](https://skmtc.dev/linnworks/apis/purchase-orders-api.md) - [All operations](https://skmtc.dev/linnworks/apis/purchase-orders-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linnworks/apis/purchase-orders-api/revisions/d1598054b894?raw)
