Update an Invoice Item
Use this method to update an existing Invoice Item in Komet Sales.
Valid Tokens: Company.
For Multi-Currency Customers:
If the customer you are creating an invoice for has a different currency, you must enter prices in your customer's currency.
The system will automatically generate the invoice in your company's currency based on the exchange rate set up at the transaction time.
Related Articles
-
-
-
Add Invoice Notes to Prebooks (Knowledge Base)
-
Create an Invoice (API)
-
Delete an Invoice Item (API)
Request
URL: https://api.kometsales.com/api/invoice.item.update
Method: POST
Content-Type: Application/JSON
Input Parameters
authenticationToken (required)(string:20)
Komet Sales security token.
invoiceId (required)(integer:20)
Komet Sales invoice internal Invoice ID.
You can get this value from the invoice.create API method.
invoiceItemId (required)(number:20)
Komet Sales invoice item ID.
You can get this value from the invoice.create API method.
boxes (optional)(integer:10)
New amount of boxes.
price (required)(decimal:10,2)
New unit price.
discount (optional) (decimal:10,2)
Discount percentage.
markCode (optional)(string:20)
New Mark Code.
productAlias (optional)(string:50)
New product description alias.
notes (optional)(string:200)
New item notes.
returnAvailableBoxes (optional)(boolean)
Include available boxes.
Valid values: 0 = No | 1 = Yes
Default is zero.
{
"authenticationToken": "token_info_goes_here",
"invoiceId": "085063",
"invoiceItemId": 9999999,
"boxes": 5,
"price": 2.50,
"discount": 10,
"markCode": "text for mark code",
"productAlias" : "text for product alias",
"notes": "text for notes"
}
Response
status (integer:1)
Transaction status.
Valid values: 1 = Success | 0 = Failure
message (string:500)
Transaction status description.
invoiceId (integer:20)
Invoice ID.
invoiceNumber (integer:10)
Invoice number.
invoiceItemId (integer:20)
Invoice item ID.
availableBoxes (integer:10)
Total available boxes.
{
"status": "1",
"message": "success",
"invoiceId": 111111111,
"invoiceNumber": "9999999",
"invoiceItemId": 32323,
"availableBoxes": 2
}