v1
latestOpenAPI 3.0.02026-07-2431146358.7 KBCreate Invoice
An invoice represents the billed amount that needs to be collected from the customer for a subscription. This API can be used to create an invoice with the specific reference of the underlying mandateid.
The invoice details are sent to the customer as a pre-debit notification for the card and upi payment methods, as required by regulatory guidelines. For UPI, pre-debit-notifications are sent by bank via (sms, email)
To ensure that the pre-debit notification is received by the customer atleast 24 hours prior to the recurring charge (regulatory requirement), it is recommended that the invoice request is initiated 36 hrs prior to the recurring charge request.
If the recurring charge debit amount is higher than the permissible limit (as per regulations), the customer requires to provide an additional AFA for processing the recurring charge. This is not applicable for upi mandates
Headers
BD-TraceID is a unique identifier passed by the merchant to ensure request idempotency. Requests with identical BD-TraceID within a 24 hour window would fail.
Request timestamp to identify date and time of origin of request. Example, a value of BD-Timestamp 20210113180403 identifies the request to have originated on 13th January 2021 at 06:04:03 PM.
Request Content-Type to take the values application/jose
Accept Response Content-Type to take the values application/jose
Request body
Example request
{
"invoice_number": "INVNUM0000001",
"invoice_display_number": "DISINVNUM0001",
"mercid": "BDMERCID",
"mandateid": "MA19E400049927",
"amount": "2400.00",
"subscription_refid": "SUBREF101",
"customer_refid": "CSREF00001",
"debit_date": "2023-03-20",
"invoice_date": "2023-04-22",
"description": "Debit for Plan 499",
"duedate": "2023-06-17",
"net_amount": "2.00",
"early_payment_amount": "490.00",
"early_payment_discount": "10.00",
"early_payment_duedate": "2021-05-12",
"late_payment_amount": "520.00",
"late_payment_charges": "20.00",
"additional_info": {
"additional_info1": "Details1",
"additional_info2": "Details2",
"additional_info3": "Details3",
"additional_info4": "Details4",
"additional_info5": "Details5",
"additional_info6": "Details6",
"additional_info7": "Details7"
}
}Response
OK
Example response
{
"invoice_number": "INVNUM0000001",
"invoice_display_number": "DISINVNUM0001",
"mercid": "BDMERCID",
"subscription_refid": "SUBREF101",
"customer_refid": "CSREF00001",
"invoice_date": "2023-04-22",
"duedate": "2023-06-17",
"debit_date": "2023-03-20",
"amount": "2400.00",
"net_amount": "2.00",
"early_payment_due_date": "2021-05-12",
"early_payment_discount": "10.00",
"early_payment_amount": "490.00",
"late_payment_charges": "20.00",
"late_payment_amount": "520.00",
"mandateid": "MA19E400049927",
"description": "Debit for Plan 499",
"invoice_id": "IA047F00003663",
"additional_info": {
"additional_info1": "Details1",
"additional_info2": "Details2",
"additional_info3": "Details3",
"additional_info4": "Details4",
"additional_info5": "Details5",
"additional_info6": "Details6",
"additional_info7": "Details7"
}
}