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

Valid Tokens: Company.


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)

Purchase Order number of the invoice.


file (required)(bytes)

Bytes of the file you are uploading.


invoiceNumber (optional)(string: 200)

Vendor invoice number. 


invoiceTotal (optional)(decimal: 10,2)

Total invoice amount.


{
    "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"
  }
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock262056c2-a260-420a-a59f-1a493302b126ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock04ba04dd-2574-4993-96ac-2b91e60294a7defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock262056c2-a260-420a-a59f-1a493302b126ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock04ba04dd-2574-4993-96ac-2b91e60294a7