What We Offer
All the features mentioned below, and more, can be accessed directly using
the Swipe Portal.
-
E-Invoice Creation: Easily generate e-invoices by passing
einvoice=1in the document creation API request.Steps to create an e-invoice:
- Checkout the create document endpoint in the API playground and use your API key to test the endpoint.
- Pass
einvoice=1in the request body along with the other document details to generate an e-invoice. - If your API key is valid, this API endpoint returns a 200 response with document details including the IRN (Invoice Reference Number) in a specified JSON format.
Things to keep in mind:
- To generate E-Invoices from the APIs, first ensure that you are connected to the E-Invoice portal.
- You can connect to the E-Invoice portal from here by clicking on Connect to E-Invoice Portal.
- The
einvoice=1field in the Create Document API triggers e-invoice generation along with the document.
Create E-Invoice
Try Creating an E-Invoice -
Fetch PDF: Access PDFs of already created e-invoice documents.
Steps to get E-Invoice PDFs:
- Checkout the get document PDF endpoint in the API playground. For
doc_hash_id, use thehash_idreceived from creating the document. - If your API key is valid, this API endpoint returns a 200 response along with the PDF.
Fetch E-Invoice PDF
Fetch PDFs of E-Invoices that are already created - Checkout the get document PDF endpoint in the API playground. For