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, Invoice date (Ex: 11-06-2024 Need not to the current date)
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, 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
Company shipping from Address, refer Shipping Address Object for parameters
Customer (deprecated, please use Party). If there are any changes made to the customer's details, we will update those details and any documents linked to this customer's ID will be updated to reflect the changes.
Customer billing to Address, refer Shipping Address Object for parameters
Customer shipping to Address, refer Shipping Address Object for parameters
DD-MM-YYYY, Payment Due date for the invoice (Ex: 11-06-2024)
Generate einvoice
Export Invoice Details
Adjustment on overall invoice, doesn’t effect any tax amounts.
Is Export
Is Subscription
Notes to show in invoice
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, if not sent will be auto generated based on the default prefix.
Subscription Details
You can copy 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