Request Information
Deletes multiple price list items.
Example URL:
v2.0/PriceListItems/Batch/{deleteIfReferenced}
| Name | Description | Type | Additional information |
|---|---|---|---|
| deleteIfReferenced |
Indicates whether items referenced on invoices or exported items will be deleted. |
boolean |
Default value is True |
| deleteIfReferenced |
Indicates whether items referenced on invoices or exported items will be deleted. |
boolean |
Default value is True |
Price list item Ids
BatchModelOfInt32| Name | Description | Type | Additional information |
|---|---|---|---|
| Items |
Individual batch items have the same meaning as in the non-batch version. |
Collection of integer |
Collection with length within range 1 and 50. |
Sample:
{
"Items": [
1
]
}
Sample:
<BatchModelOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">
<Items xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
</Items>
</BatchModelOfint>
Response Information
BatchResultOfInt32
| Name | Description | Type | Additional information |
|---|---|---|---|
| Results |
Operation results. The order of results is the same as the order of items in the batch. |
Collection of BatchItemResultOfInt32 |
None. |
| Status |
Overall result of the batch operation. |
BatchResultType |
None. |
Sample:
{
"Results": [
{
"IsSuccess": true,
"Data": 2,
"Message": "sample string 3",
"StatusCode": 4
}
],
"Status": 0
}
Sample:
<BatchResultOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
<Results>
<BatchItemResultOfint>
<Data>2</Data>
<IsSuccess>true</IsSuccess>
<Message>sample string 3</Message>
<StatusCode>4</StatusCode>
</BatchItemResultOfint>
</Results>
</BatchResultOfint>