Invoicing
Learn more about invoicing APIs and their usage.
Last updated
Learn more about invoicing APIs and their usage.
Last updated
Below are some of the points you must be aware of while calling Swipez APIs:
All API requests and responses are in JSON format.
POST requests should include ContentType: application/json
All API response have status, message, and data.
Swipez uses API keys to allow access to the API. Once you have signed up at our merchant site, you will be able to see your AccessKey and SecretKey.
The API is rate limited per user. You will receive a 429 HTTP status code if you exceed the rate limit. The rate limit is 30 requests per minute per user and is subject to change.
POST
/api/v3/merchant/invoice/save
This endpoint allows you to save and send invoices to customers. Download invoice format JSON with below steps. 1. Go to invoice format list https://www.swipez.in/merchant/template/viewlist 2. Click on action button. 3. Choose "Upload Invoice v3 JSON" option.
POST
/api/v3/merchant/invoice/update
This endpoint allows you to update created invoice. Download invoice format JSON with below steps. 1. Go to invoice format list https://www.swipez.in/merchant/template/viewlist 2. Click on action button. 3. Choose "Update Invoice v3 JSON" option.
POST
/api/v2/merchant/invoice/settle
This endpoint allows you to settle invoice with transaction details
POST
/api/v1/merchant/invoice/detail
This endpoint allows you to get invoice details.
POST
/api/v1/merchant/invoice/getlist
This endpoint allows you to get list of invoices.
POST
/api/v1/merchant/subscription/save
This endpoint allows you to save recurring invoicing.
POST
/api/v3/merchant/invoice/deleteInvoice
This endpoint allows you to delete or cancel the invoice.
Sample Code
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
URL
HTTP Verb
Functionality
POST
To create invoice.
POST
To update created invoice.
POST
To settle invoice.
POST
To get invoice details.
POST
To get invoice list.
POST
To save recurring invoice.
POST
To delete or cancel invoice
access_key_id
string
Your access key.
secret_access_key
string
Your secret access key.
template_id
string
Invoice format encrypted key.
invoice
array
Array of multiple invoices.
customer_code
string
Customer unique number.
bill_cycle_name
string
Billing cycle name eg. Feb21
franchise_id
integer
If you enable "Franchise" plugin in your invoice format you can set franchise id which you will get from franchise list.
vendor_id
integer
If you enable "Vendor" plugin in your invoice format you can set vendor id which you will get from vendor list.
bill_date
string
Bill date (in the format of YYYY-mm-dd)
due_date
string
Due date (in the format of YYYY-mm-dd)
notify_patron
number
Notification send to customer value 1 for yes 0 for no.
custom_header_fields
string
If you added custom field in invoice format you can set value for that column.
particular_rows
string
Set values for particular rows as per invoice format like Item, Description, Cost etc.
advance_received
integer
If you enable "Prepaid invoice" plugin in invoice format you can set received amount.
enable_partial_payment
integer
If you enable "Partial payment" plugin in invoice format you can set 1 for enable 0 for disable partial payment for this invoice
partial_min_amount
string
Partial minimum amount.
cc_email
array
If you enable "CC email" plugin in your invoice format you can set emails for cc in this invoice.
coupon
array
If you enable "Coupon" plugin in your invoice format you can set coupon id or coupon details in this array.
deduct_rows
array
If you enable "Deductible" plugin in your invoice format you can set deduct tax details like tax name, percent, applicable.
tax_rows
array
Add taxes to invoice eg. Tax name, percentage, applicable on
new_customer
array
If customer does not exist in Swipez then you can add customer details
settlement
array
If you want to settle invoice immediately after creating invoice
invoice_id
string
Swipez system generated invoice id.
access_key_id
string
Your access key.
secret_access_key
string
Your secret access key.
template_id
string
Invoice format encrypted key.
invoice
array
Array of invoice detail.
customer_code
string
Customer unique number.
bill_cycle_name
string
Billing cycle name eg. Feb21
franchise_id
integer
If you enable "Franchise" plugin in your invoice format you can set franchise id which you will get from franchise list.
vendor_id
integer
If you enable "Vendor" plugin in your invoice format you can set vendor id which you will get from vendor list.
bill_date
string
Bill date (in the format of YYYY-mm-dd)
due_date
string
Due date (in the format of YYYY-mm-dd)
notify_patron
number
Notification send to customer value 1 for yes 0 for no.
custom_header_fields
string
If you added custom field in invoice format you can set value for that column.
particular_rows
string
Set values for particular rows as per invoice format like Item, Description, Cost etc.
advance_received
integer
If you enable "Prepaid invoice" plugin in invoice format you can set received amount.
enable_partial_payment
integer
If you enable "Partial payment" plugin in invoice format you can set 1 for enable 0 for disable partial payment for this invoice
partial_min_amount
string
Partial minimum amount.
cc_email
array
If you enable "CC email" plugin in your invoice format you can set emails for cc in this invoice.
coupon
array
If you enable "Coupon" plugin in your invoice format you can set coupon id or coupon details in this array.
deduct_rows
array
If you enable "Deductible" plugin in your invoice format you can set deduct tax details like tax name, percent, applicable.
tax_rows
array
Add taxes to invoice eg. Tax name, percentage, applicable on
new_customer
array
If customer does not exist in Swipez then you can add customer details
access_key_id
string
Your access key.
secret_access_key
string
Your secret key.
invoice_id
string
System generated invoice id.
paid_date
string
Payment date (in the format YYYY-mm-dd)
amount
number
Settlement amount.
mode
string
Payment mode (NEFT,Cheque,Cash,Online)
bank_name
string
Bank name of transaction.
bank_ref_no
string
Bank reference number
cheque_no
string
Cheque number if mode is Cheque
cash_paid_to
string
Cash receiver name.
notify
integer
Want to send receipt to customer (1 or 0)
attach_invoice_pdf
integer
Want to attach invoice pdf in email (1 or 0)
access_key_id
string
Your access key.
secret_access_key
string
Your secret key.
invoice_id
string
System generated invoice id.
access_key_id
string
Your access key.
secret_access_key
string
Your secret key.
from_date
string
From date (in the format YYYY-mm-dd) from which you want the data.
to_date
string
To Date till you want the data
filter_by
string
Filter by date type (bill_date,due_date,sent_date)
invoice_status
string
Filter by invoice status (Submitted,Failed,Paid online,Paid offline)
customer_code
string
Filter by customer code.
group
string
Filter by customer group.
franchise_id
string
Filter by franchise.
access_key_id
string
Your access key
secret_access_key
string
Your secret key.
template_id
string
Invoice format encrypted key.
mode
string
Recurring mode (Monthly, Daily, Weekly, Yearly)
repeat_every
number
Repeat every recurring mode eg. 3 Months
start_date
string
Start date of invoice creation
due_date
string
Due date of first invoice.
end_mode
string
Recurring stop mode Never: It will be infinite Occurences: After occurrence subscription will end End date: Set end date to stop subscription
occurences
number
Set occurrence value if end mode is Occurrences
end_date
string
Set end date if end mode is "End date"
carry_forword_dues
string
If you want to carry forward due of unpaid invoices
invoice
string
Invoice data.
customer_code
string
Customer identifier.
bill_cycle_name
string
Billing cycle name eg. Feb 21
bill_date
string
Bill date (in the format of YYYY-mm-dd)
notify_patron
number
Invoice notification to customer, 1 for enable
custom_header_fields
string
If you added custom fields in your invoice format you can set value for that column.
particular_rows
string
Set values for particular rows as per your invoice format like Item name, Description, Cost
tax_rows
string
Add taxes to invoice.
new_customer
string
If customer does not exist in Swipez then you can add customer details.
access_key_id*
String
Your access key
secret_access_key*
String
Your secret key.
invoice_id*
String
System generated invoice id.
status*
String
Filter by invoice status
(12-cancelled, 13-deleted)