Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
topofpage
topofpage

Excerpt

Use this method to upload vendor invoices containing consolidated balance information in PDF format.

Tip

Valid Tokens: Company and Vendor.

Table of Contents

Table of Contents
minLevel1
maxLevel1
absoluteUrltrue
excludeTable of Contents

Request


URL: https://api.kometsales.com/api/v2/vendor/invoice

Method: POST

Content-Type: application/JSON


Header

authenticationToken (required)(string:50)

Komet Sales security token.


Input Parameters

poNumber (required)(integer:10)

Invoice Purchase Order number.


attachment (required)(bytes)

The invoice file that you want to upload.

Formats: Image or PDF.


invoiceNumber (optional)(string:200)

Vendor Invoice number. 


invoiceTotal (optional)(decimal: 10,2)

Invoice total. 


companyId (integer)(optional)

Company ID.


locationId (optional)(integer:20)

Komet Sales internal Location ID.

You can get this value from the location.list API method.

Only applies to Multi-Location Companies.


Back to top

Code Block
{
    "poNumber":"P008094",
    "attachment":"file_in_bytes_goes_here",
    "invoiceNumber":"008541",
    "invoiceTotal": "30.78",
    "locationId": "6316"
}

Response


status (integer:1)

Transaction status. 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


Back to top

Code Block
{
  "status": "1",
  "message": "The invoice was successfully uploaded."
}

Filter by label (Content by label)
showLabelsfalse
max5
titleRelated Articles
cqllabel in ( "company-token" , "vendor-token" )
We've encountered an issue exporting this macro. Please try exporting this page again later.