POST api/2.0/crm/invoice/tax This function requires authentication

Description

Creates an invoice tax with the parameters (name, description, rate) specified in the request.

Parameters
Name Description Type Example
name
sent in body
Tax name string some text
description
sent in body
Tax description string some text
rate
sent in body
Tax rate decimal 1.1
Example
POST api/2.0/crm/invoice/tax
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "name": "some text",
  "description": "some text",
  "rate": 1.1
}
Returns

Invoice tax

Example Response

application/json

{
  "status": 0,
  "response": {
    "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
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <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>
  </response>
</result>