PUT api/2.0/crm/invoiceitem/{id}
Updates the selected invoice item with the parameters (title, description, price, etc.) specified in the request
Name |
Description |
Type |
Example |
id
sent in url
|
Item ID
|
number
|
1234
|
title
sent in body
|
Item title
|
string
|
some text
|
description
sent in body
|
Item description
optional
|
string
|
some text
|
price
sent in body
|
Item price
|
System.Decimal
|
|
sku
sent in body
|
Item stock keeping unit
optional
|
string
|
some text
|
stockQuantity
sent in body
|
Item stock quantity
optional
|
System.Decimal
|
|
trackInventory
sent in body
|
Track inventory
optional
|
Bool value
|
true
|
invoiceTax1id
sent in body
|
Item first invoice tax ID
optional
|
number
|
1234
|
invoiceTax2id
sent in body
|
Item second invoice tax ID
optional
|
number
|
1234
|
PUT api/2.0/crm/invoiceitem/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"title": "some text",
"description": "some text",
"price": 0.0,
"sku": "some text",
"stockQuantity": 0.0,
"trackInventory": true,
"invoiceTax1id": 1234,
"invoiceTax2id": 1234
}