Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Add_AdditionalCostTypes

Allows 150 calls per minute

Response: Add_AdditionalCostTypesResponse



Add new additional cost type

Parameters

NameTypeDescription
requestAdd_AdditionalCostTypesRequest

Permissions

GlobalPermissions.Inventory.PurchaseOrder.ChangeAdditionalTypesNode

Example Request

The following request format is required for this method.

Get

Endpoint URL

This is an example of the request structure. Results will vary depending on your data.

GET https://eu-ext.linnworks.net/api/PurchaseOrder/Add_AdditionalCostTypes?request=%7B%0D%0A%20%20%22TypeName%22%3A%20%22sample%20string%201%22%2C%0D%0A%20%20%22IsShippingType%22%3A%20true%2C%0D%0A%20%20%22IsPartialAllocation%22%3A%20true%2C%0D%0A%20%20%22Print%22%3A%20true%2C%0D%0A%20%20%22AllocationMethod%22%3A%200%0D%0A%7D

Headers

Connection: keep-alive
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Post

Endpoint URL

POST https://eu-ext.linnworks.net/api/PurchaseOrder/Add_AdditionalCostTypes

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={
  "TypeName": "sample string 1",
  "IsShippingType": true,
  "IsPartialAllocation": true,
  "Print": true,
  "AllocationMethod": 0
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "NewAdditionalCostType": {
    "AdditionalCostTypeId": 1,
    "TypeName": "sample string 2",
    "IsShippingType": true,
    "IsPartialAllocation": true,
    "Print": true,
    "AllocationMethod": 0
  }
}