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": "32d6336d-462f-4dee-bb5a-9a29edc326f4",
  "itemsToAdd": [
    {
      "PurchaseItemId": "ac0ac226-958c-4100-958b-41eb02e1f201",
      "Id": "52be5459-ad08-42f9-9d95-bc0cd6a77894",
      "PurchaseAdditionalCostItemId": 3,
      "AllocationPercentage": 4.0
    }
  ],
  "itemsToUpdate": [
    {
      "CostAllocationId": 1,
      "Id": "ffd278c0-a2c1-461e-9db8-3498e20d2c6a",
      "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": "0ffad4fb-0a36-43be-9176-f0defff4b0ad",
      "CostAllocationId": 2,
      "PurchaseAdditionalCostItemId": 3,
      "PurchaseItemId": "ab15b7a0-4389-4b63-aa84-e2a5e1317666",
      "AllocationPercentage": 5.0
    }
  ]
}