Overview

This method allows you to get the content of a certain invoice in bytes.

Request

https://api.kometsales.com/api/invoice.pdf.get

  • Method: POST
  • Content-Type: application/json

Input Parameters:

  • authenticationToken (required)(string:50): Komet Sales security token.
  • invoiceId (required)(integer:20): ID of the invoice that you want to get. 

Sample
{
  "authenticationToken": "token_info_goes_here",
  "invoiceId": 354002
 }

Response

Output:

  • status (integer:1): transaction status. 1 for success or 0 for failure.
  • message (string:500): description of the status of the transaction.
  • suggestedFileName (string:50): Suggested file name of the invoice generated. 
  • file (array of bytes): Array of bytes that represents the invoice file generated.