Get Started
Usage API
More information

POST api/2.0/crm/invoiceline This function requires authentication

Description

Creates an invoice line with the parameters (invoice ID, invoice item ID, etc.) specified in the request.

Parameters
Name Description Type Example
invoiceId
sent in body
Invoice ID number 1234
invoiceItemId
sent in body
Invoice item ID number 1234
invoiceTax1Id
sent in body
First invoice tax ID
optional
number 1234
invoiceTax2Id
sent in body
Second invoice tax ID
optional
number 1234
sortOrder
sent in body
Sort order
optional
number 1234
description
sent in body
Description
optional
string some text
quantity
sent in body
Quantity
optional
System.Decimal
price
sent in body
Price
optional
System.Decimal
discount
sent in body
Discount
optional
System.Decimal
Example
POST api/2.0/crm/invoiceline
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "invoiceId": 1234,
  "invoiceItemId": 1234,
  "invoiceTax1Id": 1234,
  "invoiceTax2Id": 1234,
  "sortOrder": 1234,
  "description": "some text",
  "quantity": 0.0,
  "price": 0.0,
  "discount": 0.0
}
Returns

Invoice line

Example Response

application/json

{
  "status": 0,
  "response": {
    "invoiceID": 0,
    "invoiceItemID": 0,
    "invoiceTax1ID": 0,
    "invoiceTax2ID": 0,
    "sortOrder": 0,
    "description": "",
    "quantity": 0.0,
    "price": 0.0,
    "discount": 0.0,
    "id": 0
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <invoiceID>0</invoiceID>
    <invoiceItemID>0</invoiceItemID>
    <invoiceTax1ID>0</invoiceTax1ID>
    <invoiceTax2ID>0</invoiceTax2ID>
    <sortOrder>0</sortOrder>
    <description></description>
    <quantity>0</quantity>
    <price>0</price>
    <discount>0</discount>
    <id>0</id>
  </response>
</result>