Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

PurchaseOrder /Modify_PaymentStatement

Allows 150 calls per minute

Response: Modify_PaymentStatementResponse



Modify purchase order payment statements. You can add new lines, update and delete existing. The method will return modified list back to you with each record identified by unique identifier.

Parameters

NameTypeDescription
requestModify_PaymentStatementRequest

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_PaymentStatement

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={
  "itemsToAdd": [
    {
      "Id": "69f5a4d5-2cc3-491d-9083-f15224bb7c44",
      "Reference": "sample string 2",
      "ConversionRate": 3.0,
      "Currency": "sample string 4",
      "fkPurchaseAdditionalCostItemId": 1,
      "LineCost": 5.0,
      "PaymentDate": "2021-07-29T09:24:12.3885665+01:00",
      "CreationDate": "2021-07-29T09:24:12.3885665+01:00"
    }
  ],
  "itemsToUpdate": [
    {
      "PurchasePaymentStatementId": 1,
      "Id": "1042bc49-01b4-48a8-a1e6-299e45095ad7",
      "Reference": "sample string 3",
      "ConversionRate": 4.0,
      "Currency": "sample string 5",
      "fkPurchaseAdditionalCostItemId": 1,
      "LineCost": 6.0,
      "PaymentDate": "2021-07-29T09:24:12.3885665+01:00",
      "CreationDate": "2021-07-29T09:24:12.3885665+01:00"
    }
  ],
  "itemsToDelete": [
    1
  ],
  "PurchaseId": "71f09db9-e4e0-49a3-8ad4-244e9584929d"
}

Response

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

{
  "ModifiedItems": [
    {
      "Id": "c246b182-1f18-45b8-b514-b77e6ae12f19",
      "PurchasePaymentStatementId": 2,
      "LineCost": 3.0,
      "ConversionRate": 4.0,
      "Currency": "sample string 5",
      "Reference": "sample string 6",
      "CreationDate": "2021-07-29T09:24:43.3742147+01:00",
      "PaymentDate": "2021-07-29T09:24:43.3742147+01:00",
      "fkPurchaseAdditionalCostItemId": 1
    }
  ]
}