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
Array of Products/Services, refer Item Object below for parameters
Serial Number, if not sent will be auto generated based on the default prefix.
Party
DD-MM-YYYY
Any references you want to add to the doc
Notes to show in invoice - please check template in swipe application to see where this is displayed
Terms to show in invoice - please check template in swipe application to see where this is displayed
Adjustment on overall invoice, doesn’t effect any tax amounts.
Should Round Off total amount
Array of Payments, refer Payment Object for parameters
You can check the tds id and details mapping from https://developers.getswipe.in/api-reference/references#tds-tax-deducted-at-source
You can check 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
Company billing Address, refer Billing Address Object for parameters
Generate einvoice
Is Export
Export Invoice Details
Is Subscription
Subscription Details
Convert Document. Needed only when the document is already created and you want to convert it to another document
Document Custom Headers. Custom headers should already be added in Swipe Portal.
Response
Success Message
Error Code
Error details