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.
Name | Type | Description |
---|---|---|
request | Modify_PaymentStatementRequest |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Modify_PaymentStatement
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
This is an example of the request structure. Results will vary depending on your data.
request={
"itemsToAdd": [
{
"Id": "fedae2c8-5130-4108-a1f5-fdf40d0c81cc",
"Reference": "sample string 2",
"ConversionRate": 3.0,
"Currency": "sample string 4",
"fkPurchaseAdditionalCostItemId": 1,
"LineCost": 5.0,
"PaymentDate": "2023-01-10T13:49:45.5964428+00:00",
"CreationDate": "2023-01-10T13:49:45.5964428+00:00"
}
],
"itemsToUpdate": [
{
"PurchasePaymentStatementId": 1,
"Id": "4a0aa326-177d-4450-aa56-836e5028ac37",
"Reference": "sample string 3",
"ConversionRate": 4.0,
"Currency": "sample string 5",
"fkPurchaseAdditionalCostItemId": 1,
"LineCost": 6.0,
"PaymentDate": "2023-01-10T13:49:45.5964428+00:00",
"CreationDate": "2023-01-10T13:49:45.5964428+00:00"
}
],
"itemsToDelete": [
1
],
"PurchaseId": "07b19af0-6d0d-48c2-bff4-d1a4cd301702"
}
This is an example of the response JSON. Results will vary depending on your data.
{
"ModifiedItems": [
{
"Id": "a77fefc3-197c-436f-bbc4-7313c39b264e",
"PurchasePaymentStatementId": 2,
"LineCost": 3.0,
"ConversionRate": 4.0,
"Currency": "sample string 5",
"Reference": "sample string 6",
"CreationDate": "2023-01-10T13:49:50.0670752+00:00",
"PaymentDate": "2023-01-10T13:49:50.0670752+00:00",
"fkPurchaseAdditionalCostItemId": 1
}
]
}