Create a document
Customer id and Product id should be unique, if a new id is sent, a new Customer/Product with given details will be automatically created. For Product If an existing id is sent, the details will not override the original product details. They will be applicable only to the current document. For updating the product details, use the update product API
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Value should always be the string 'invoice'
invoice
, subscription
, pro_forma_invoice
, estimate
, sales_return
, purchase_return
DD-MM-YYYY, Invoice date (Ex: 11-06-2024 Need not to the current date)
Array of Products/Services, refer Item Object below for parameters
Serial Number, if not sent will be auto generated based on the default prefix.
Customer (deprecated, please use Party)
Party
DD-MM-YYYY, Payment Due date for the invoice (Ex: 11-06-2024)
Any references you want to add to the doc
Notes to show in invoice
Terms to show in invoice
Adjustment on overall invoice, doesn’t effect any tax amounts.
Should Round Off total amount
Array of Payments, refer Payment Object for parameters
Bank Details, refer Bank Details Object below for parameters, If account_number, ifsc matched with existing bank details, it will be used, else new bank details will be added to your swipe account
You can check the tds id and details mapping from https://developers.getswipe.in/api-reference/references#tds-tax-deducted-at-source
You can copy the tcs id and details mapping from https://developers.getswipe.in/api-reference/references#tcs-tax-collected-at-source
Company shipping from Address, refer Shipping Address Object for parameters
Customer shipping to Address, refer Shipping Address Object for parameters
Customer billing to Address, refer Shipping Address Object for parameters
Is Subscription
Subscription Details
Generate einvoice
Is Export
Export Invoice Details
Response
Success
Message
Serial Number
Hash ID
IRN
QR Code
EInvoice Success
EInvoice Message