Updates the selected invoice item with the parameters (title, description, price, etc.) specified in the request.
Name | Description | Type | Example |
id
sent in url
|
Invoice item ID | number | 1234 |
title
sent in body
|
New invoice item title | string | some text |
description
sent in body
|
New invoice item description
optional
|
string | some text |
price
sent in body
|
New invoice item price | decimal | 1.1 |
sku
sent in body
|
New invoice item stock keeping unit
optional
|
string | some text |
stockQuantity
sent in body
|
New invoice item stock quantity
optional
|
decimal | 1.1 |
trackInventory
sent in body
|
Specifies if the inventory is tracked or not
optional
|
Bool value | true |
invoiceTax1id
sent in body
|
New first invoice item tax ID
optional
|
number | 1234 |
invoiceTax2id
sent in body
|
New second invoice item 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": 1.1, "sku": "some text", "stockQuantity": 1.1, "trackInventory": true, "invoiceTax1id": 1234, "invoiceTax2id": 1234 }
Updated invoice item
application/json
{ "status": 0, "response": { "Title": "Title", "StockKeepingUnit": "StockKeepingUnit", "Description": "Description", "Price": 12.0, "Currency": { "Title": "Chinese Yuan", "Symbol": "¥", "Abbreviation": "CNY", "CultureName": "CN", "IsConvertable": true, "IsBasic": false }, "StockQuantity": "2.2", "TrackInvenory": true, "InvoiceTax1": { "Name": "Name", "Description": "Description", "Rate": "Rate", "CreateOn": "2020-12-14T22:13:41.5378233Z", "CreateBy": { "Id": "00000000-0000-0000-0000-000000000000", "DisplayName": "Mike Zanyatski", "Title": "Manager", "AvatarSmall": "url to small avatar", "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator" }, "CanEdit": true, "CanDelete": true, "id": 1234 }, "InvoiceTax2": { "Name": "Name", "Description": "Description", "Rate": "Rate", "CreateOn": "2020-12-14T22:13:41.5378233Z", "CreateBy": { "Id": "00000000-0000-0000-0000-000000000000", "DisplayName": "Mike Zanyatski", "Title": "Manager", "AvatarSmall": "url to small avatar", "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator" }, "CanEdit": true, "CanDelete": true, "id": 1234 }, "CreateOn": "2020-12-14T22:13:41.5378233Z", "CreateBy": "ASC.Api.Employee.EmployeeWraper, ASC.Api.Employee", "CanEdit": true, "CanDelete": true, "id": 1234 } }
text/xml
<result> <status>0</status> <response> <Title>Title</Title> <StockKeepingUnit>StockKeepingUnit</StockKeepingUnit> <Description>Description</Description> <Price>12</Price> <Currency> <Title>Chinese Yuan</Title> <Symbol>¥</Symbol> <Abbreviation>CNY</Abbreviation> <CultureName>CN</CultureName> <IsConvertable>True</IsConvertable> <IsBasic>False</IsBasic> </Currency> <StockQuantity>2.2</StockQuantity> <TrackInvenory>True</TrackInvenory> <InvoiceTax1> <Name>Name</Name> <Description>Description</Description> <Rate>Rate</Rate> <CreateOn>2020-12-14T22:13:41.5378233Z</CreateOn> <CreateBy> <Id>00000000-0000-0000-0000-000000000000</Id> <DisplayName>Mike Zanyatski</DisplayName> <Title>Manager</Title> <AvatarSmall>url to small avatar</AvatarSmall> <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl> </CreateBy> <CanEdit>True</CanEdit> <CanDelete>True</CanDelete> <id>1234</id> </InvoiceTax1> <InvoiceTax2> <Name>Name</Name> <Description>Description</Description> <Rate>Rate</Rate> <CreateOn>2020-12-14T22:13:41.5378233Z</CreateOn> <CreateBy> <Id>00000000-0000-0000-0000-000000000000</Id> <DisplayName>Mike Zanyatski</DisplayName> <Title>Manager</Title> <AvatarSmall>url to small avatar</AvatarSmall> <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl> </CreateBy> <CanEdit>True</CanEdit> <CanDelete>True</CanDelete> <id>1234</id> </InvoiceTax2> <CreateOn>2020-12-14T22:13:41.5378233Z</CreateOn> <CreateBy>ASC.Api.Employee.EmployeeWraper, ASC.Api.Employee</CreateBy> <CanEdit>True</CanEdit> <CanDelete>True</CanDelete> <id>1234</id> </response> </result>