Get Started
Usage API
More information

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

Description

Updates the selected invoice line with the parameters (invoice ID, invoice item ID, etc.) specified in the request.

Parameters
Name Description Type Example
id
sent in url
Invoice 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
New first invoice tax ID
optional
number 1234
invoiceTax2Id
sent in body
New second invoice tax ID
optional
number 1234
sortOrder
sent in body
New sort order
optional
number 1234
description
sent in body
New description
optional
string some text
quantity
sent in body
New quantity
optional
System.Decimal
price
sent in body
New price
optional
System.Decimal
discount
sent in body
New discount
optional
System.Decimal
Example
PUT api/2.0/crm/invoiceline/1234
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

Updated 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>