authenticationToken (required)(string:20): Komet Sales security token.
invoiceId (required)(integer:20): The Komet Sales Invoice internal ID that you want to update. You can obtain this value from the invoice.create API method.
invoiceItemId (required)(number:20): Id of the Komet Sales invoice item. This value can be obtained from theinvoice.create API method.
boxes (optional)(integer:10): New number of boxes.
price (required) (decimal:10,2): New unit price.
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: 1 or 0): Default 0. If it's 1, the response will include the number of boxes available.
Sample 1
{
"authenticationToken": "token_info_goes_here",
"invoiceId": 085063,
"invoiceItemId": 9999999,
"boxes": 5,
"price": 2.50,
"markCode": "text for mark code",
"productAlias" : "text for product alias",
"notes": "text for notes"
}
Sample 2
{
"authenticationToken": "token_info_goes_here",
"invoiceId": 085063,
"invoiceItemId": 9999999,
"boxes": 5,
"price": 2.50,
"markCode": "text for mark code",
"productAlias" : "text for product alias",
"notes": "text for notes",
"returnAvailableBoxes":1
}
Response
Output:
status (integer:1): Transaction status. 1 for success or 0 for failure.
message (string:500): Description of the status of the transaction.
invoiceId (integer:20): Invoice id.
invoiceNumber (integer:10): Invoice number.
invoiceItemId (integer:20): Invoice item ID.
availableBoxes (integer:10): Number of boxes that are available if returnAvailableBoxes is given.