Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Modify_AdditionalCostAllocation

Allows 150 calls per minute

Response: Modify_AdditionalCostAllocationResponse



Modify additional cost allocation items

Parameters

NameTypeDescription
requestModify_AdditionalCostAllocationRequest

Permissions

GlobalPermissions.Inventory.PurchaseOrder.EditPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Modify_AdditionalCostAllocation

Headers

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

Request Body

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
  ]
}

Response

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
    }
  ]
}