Get Started
Portal api methods
Help

PUT api/2.0/crm/invoiceline/{invoicelineid} This function requires authentication

Description

Updates the selected invoice line with the parameters (invoiceId, invoiceItemId, etc.) specified in the request

Parameters
Name Description Type Example
id
sent in body
Line ID number 1234
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
number 1234
price
sent in body
Price
optional
System.Decimal
discount
sent in body
Discount
optional
number 1234
Example
PUT api/2.0/crm/invoiceline/{invoicelineid}
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

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

InvoiceLine

Example Response

application/json

{
  "status": 0,
  "response": {
    "invoiceID": 0,
    "invoiceItemID": 0,
    "invoiceTax1ID": 0,
    "invoiceTax2ID": 0,
    "sortOrder": 0,
    "description": "",
    "quantity": 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>