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
DD-MM-YYYY
Value should always be the string 'invoice'
invoice
, subscription
, pro_forma_invoice
, estimate
, sales_return
, purchase_return
Array of Products/Services, refer Item Object below for parameters
Bank Details, it is used to display bank details in document PDFs. No payments are associated with these bank details.
Array of Charges and Deductions, refer Additional Charges Deductions Object for parameters
Company billing Address, refer Billing Address Object for parameters
Company shipping from Address, refer Shipping Address Object for parameters
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.
DD-MM-YYYY
Generate einvoice
Export Invoice Details
Adjustment on overall invoice, doesn’t effect any tax amounts.
Is Export
Is Subscription
Notes to show in invoice - please check template in swipe application to see where this is displayed
Party. If there are any changes made to the party details, we will update those details and any documents linked to this party ID will be updated to reflect the changes.
Array of Payments, refer Payment Object for parameters
Any references you want to add to the doc
Should Round Off total amount
Serial Number (deprecated, please use New Serial Number)
Subscription Details
You can check the tcs id and details mapping from https://developers.getswipe.in/api-reference/references#tcs-tax-collected-at-source
You can check the tds id and details mapping from https://developers.getswipe.in/api-reference/references#tds-tax-deducted-at-source
Terms to show in invoice - please check template in swipe application to see where this is displayed