Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This method allows you
Excerpt

Use this method to receive the Vendor Invoice

in Komet Sales

and associate it to a Purchase Order in Komet Sales.

Tip

Valid Tokens: Company.


Filter by label (Content by label)
showLabelsfalse
max5
titleRelated Articles
cqllabel in ( "vendor-invoice" , "vendor-availability" , "purchase-order-api" , "invoice" )

Request


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

Method: POST

Content-Type: application/JSON


Input Parameters

companyToken 

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)

: The PO Number to which the invoice will be attached to

Purchase Order number of the invoice.


file (required)(bytes)

: bytes

Bytes of the file

that

you

want to upload

are uploading.


invoiceNumber (optional)(string: 200)

: The

Vendor invoice number

of the vendor


invoiceTotal (optional)(decimal: 10,2)

: The

Total invoice

total

amount.

 

Sample Request


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

Response

Output:


status (integer:1)

: transaction

Transaction status.

1 for success or 0 for failure.

Valid values: 1 = Success | 0 = Failure


message (string:500)

: description of the status of the transaction.Sample Response

Transaction status description.


Code Block
{
  "status": "1",
  "message": "success"
  }
Panel
titleRelated Articles
Filter by label (Content by label)showLabelsfalsemax10showSpacefalsesorttitlecqllabel in ( "vendor-invoice" , "purchase-orders" , "accounts-payable" )labelsvendor-invoice accounts-payable purchase-orders