Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

PurchaseOrder /Modify_AdditionalCostAllocation

Allows 150 calls per minute

Response: Modify_AdditionalCostAllocationResponse



Modify additional cost allocation items

Parameters

NameTypeDescription
requestModify_AdditionalCostAllocationRequest

Permissions

GlobalPermissions.PurchaseOrder.EditPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

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": "3afea2bc-5c2e-4655-980a-697345308b0e",
  "itemsToAdd": [
    {
      "PurchaseItemId": "f6227c39-19f9-4d90-b8e3-c1a0bf3119cd",
      "Id": "da2b24d0-cbda-4f06-8efd-80aef6714881",
      "PurchaseAdditionalCostItemId": 3,
      "AllocationPercentage": 4.0
    }
  ],
  "itemsToUpdate": [
    {
      "CostAllocationId": 1,
      "Id": "5a247605-9ac4-4c30-ba79-0cae15d804d6",
      "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": "1b307275-966f-4f6d-996b-21cf71a38c88",
      "CostAllocationId": 2,
      "PurchaseAdditionalCostItemId": 3,
      "PurchaseItemId": "7df64651-b6c1-4620-8cae-2a412e70e86b",
      "AllocationPercentage": 5.0
    }
  ]
}