Get Started
Usage API
More information

DELETE api/2.0/crm/invoiceitem/{id} This function requires authentication

Description

Deletes an invoice item with the ID specified in the request.

Parameters
Name Description Type Example
id
sent in url
Invoice item ID number 1234
Example
DELETE api/2.0/crm/invoiceitem/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

Invoice item

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>