Receive a Vendor Invoice via Email

Use this method to receive a Vendor Invoice in Komet Sales and associate it to a Purchase Order.

Valid Tokens: Company.


Related Articles

Request


URL: https://api.kometsales.com/api/vendor.invoice.mail.receive

Method: POST

Content-Type: application/json


Input Parameters

companyToken (required)(string:50)

Komet Sales security token.


mailFrom (required)(string:100)

Vendor email address or the one specified as authorized here.  


poNumber (required)(integer:10)

Invoice Purchase Order number.


file (required)(bytes)

bytes of the file that you want to upload.


invoiceNumber (optional)(string:200)

Vendor Invoice number. 


invoiceTotal (optional)(decimal: 10,2)

Invoice total. 


{ "companyToken": "token_info_goes_here", "mailFrom": "sales@floresabc.com", "poNumber": "P053455", "file": "bytes_of_the_file_goes_here", "invoiceNumber": "134495", "invoiceTotal": 100.45 }

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


{ "status": "1", "message": "success" }