POST api/2.0/crm/invoiceitem
Creates an invoice item with the parameters (title, description, price, etc.) specified in the request.
Name |
Description |
Type |
Example |
title
sent in body
|
Invoice item title
|
string
|
some text
|
description
sent in body
|
Invoice item description
optional
|
string
|
some text
|
price
sent in body
|
Invoice item price
|
System.Decimal
|
|
sku
sent in body
|
Invoice item stock keeping unit
optional
|
string
|
some text
|
stockQuantity
sent in body
|
Invoice item stock quantity
optional
|
System.Decimal
|
|
trackInventory
sent in body
|
Invoice item 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
|
POST api/2.0/crm/invoiceitem
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
}