TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

DELETE api/2.0/crm/invoiceitem This function requires authentication

Description

Deletes a group of invoice items with the IDs specified in the request.

Parameters
Name Description Type Example
ids
sent in body
List of invoice item IDs Collection of numbers
collection
1234
Example
DELETE api/2.0/crm/invoiceitem
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "ids": [
    1234
  ]
}
Returns

List of invoice items

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "Title": "Title",
      "StockKeepingUnit": "StockKeepingUnit",
      "Description": "Description",
      "Price": 12.0,
      "Currency": {
        "Title": "Chinese Yuan",
        "Symbol": "¥",
        "Abbreviation": "CNY",
        "CultureName": "CN",
        "IsConvertable": true,
        "IsBasic": false
      },
      "StockQuantity": "2.2",
      "TrackInvenory": true,
      "InvoiceTax1": {
        "Name": "Name",
        "Description": "Description",
        "Rate": "Rate",
        "CreateOn": "2020-12-14T22:13:41.5378233Z",
        "CreateBy": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "DisplayName": "Mike Zanyatski",
          "Title": "Manager",
          "AvatarSmall": "url to small avatar",
          "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
        },
        "CanEdit": true,
        "CanDelete": true,
        "id": 1234
      },
      "InvoiceTax2": {
        "Name": "Name",
        "Description": "Description",
        "Rate": "Rate",
        "CreateOn": "2020-12-14T22:13:41.5378233Z",
        "CreateBy": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "DisplayName": "Mike Zanyatski",
          "Title": "Manager",
          "AvatarSmall": "url to small avatar",
          "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
        },
        "CanEdit": true,
        "CanDelete": true,
        "id": 1234
      },
      "CreateOn": "2020-12-14T22:13:41.5378233Z",
      "CreateBy": "ASC.Api.Employee.EmployeeWraper, ASC.Api.Employee",
      "CanEdit": true,
      "CanDelete": true,
      "id": 1234
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <Title>Title</Title>
    <StockKeepingUnit>StockKeepingUnit</StockKeepingUnit>
    <Description>Description</Description>
    <Price>12</Price>
    <Currency>
      <Title>Chinese Yuan</Title>
      <Symbol>¥</Symbol>
      <Abbreviation>CNY</Abbreviation>
      <CultureName>CN</CultureName>
      <IsConvertable>True</IsConvertable>
      <IsBasic>False</IsBasic>
    </Currency>
    <StockQuantity>2.2</StockQuantity>
    <TrackInvenory>True</TrackInvenory>
    <InvoiceTax1>
      <Name>Name</Name>
      <Description>Description</Description>
      <Rate>Rate</Rate>
      <CreateOn>2020-12-14T22:13:41.5378233Z</CreateOn>
      <CreateBy>
        <Id>00000000-0000-0000-0000-000000000000</Id>
        <DisplayName>Mike Zanyatski</DisplayName>
        <Title>Manager</Title>
        <AvatarSmall>url to small avatar</AvatarSmall>
        <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
      </CreateBy>
      <CanEdit>True</CanEdit>
      <CanDelete>True</CanDelete>
      <id>1234</id>
    </InvoiceTax1>
    <InvoiceTax2>
      <Name>Name</Name>
      <Description>Description</Description>
      <Rate>Rate</Rate>
      <CreateOn>2020-12-14T22:13:41.5378233Z</CreateOn>
      <CreateBy>
        <Id>00000000-0000-0000-0000-000000000000</Id>
        <DisplayName>Mike Zanyatski</DisplayName>
        <Title>Manager</Title>
        <AvatarSmall>url to small avatar</AvatarSmall>
        <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
      </CreateBy>
      <CanEdit>True</CanEdit>
      <CanDelete>True</CanDelete>
      <id>1234</id>
    </InvoiceTax2>
    <CreateOn>2020-12-14T22:13:41.5378233Z</CreateOn>
    <CreateBy>ASC.Api.Employee.EmployeeWraper, ASC.Api.Employee</CreateBy>
    <CanEdit>True</CanEdit>
    <CanDelete>True</CanDelete>
    <id>1234</id>
  </response>
</result>