Skip to main content
POST
Available in🇮🇳 India🇲🇾 Malaysia
Use this endpoint to issue invoices to your customers. Only an invoice in the draft state can be issued.

Path Parameters

string
required
The unique identifier of the invoice.

Response Parameters

integer
Amount to be paid using the invoice. Must be in the smallest unit of the currency. For example, if the amount to be received from the customer is 300, pass the value as 30000.
integer
The remaining amount to be paid by the customer for the issued invoice.
amount_due is 0 on a paid subscription invoice, even when amount_paid is less than amount because an offer settled it for less.
integer
Amount paid by the customer against the invoice.
integer
The end date of the billing period.
integer
The start date of the billing period.
integer
Timestamp, in Unix format, at which the invoice was cancelled.
string
Any comments to be added in the invoice. Maximum of 2048 characters.
integer
Timestamp, in Unix format, at which the invoice was created.
string
The currency associated with the invoice. You must mandatorily pass this parameter if accepting international payments. If you have passed currency as a sub-parameter in the line_item object, you must ensure that the same currency is passed in both places. Know about the list of supported international currencies.
string
For example, ₹.
object
Details of the customer.
string
The unique identifier of the customer. You can create customer_id using the Customers API. Alternatively, you can pass the customer object described in the below fields.
integer
Timestamp, in Unix format, that indicates the issue date of the invoice.
string
A brief description of the invoice. The maximum character length is 2048.
string
The delivery status of the email notification for the invoice sent to the customer. Possible values:
string
Indicates the type of entity. Here, it is invoice.
integer
Timestamp, in Unix format, at which the invoice will expire.
integer
Timestamp, in Unix format, at which the invoice expired.
integer
The gross amount for this invoice, in the smallest currency unit (paise for INR). For example, 50000.
string
The unique identifier of the invoice.
string
A unique key used to ensure idempotency of the invoice creation request, preventing duplicate invoices.
string
Unique number you added for internal reference. The minimum character length is 1 and maximum is 40.
integer
Timestamp, in Unix format, at which the invoice was issued to the customer.
array
Details of the line item that is billed in the invoice. Maximum of 50 line items.
object
Any custom notes added to the invoice, as key-value pairs. Maximum of 2048 characters.
string
The unique identifier of the order associated with the invoice.
integer
Timestamp, in Unix format, at which the payment was made.
boolean
Indicates whether the customer can make a partial payment on the invoice. Possible values:
  • true: The customer can make partial payments.
  • false (default): The customer cannot make partial payments.
string
Unique identifier of a payment made against this invoice.
string
A unique receipt number that you can provide for the invoice, for your internal reference.
string
A unique reference number for the invoice, used for internal tracking and reconciliation.
string
The short URL that is generated. Share this link with customers to accept payments.
string
The delivery status of the SMS notification for the invoice sent to the customer. Possible values:
string
The status of the invoice. Know more about Invoice States. Possible values:
string
The unique identifier of the subscription. Present only on invoices generated for a subscription.
string
Any terms to be included in the invoice. Maximum of 2048 characters.
string
Here, it should be invoice.
boolean
Indicates whether the invoice response is shown in a compact view.

Errors

Code: 400There is a mismatch between the API credentials passed in the API call and those generated on the Dashboard.Solution:
  • Ensure that the API Keys are active and entered correctly.
  • There should be no whitespaces before or after the keys.
Code: 400Items and customer details are missing.Solution: Add items and customer details.
Code: 400You are trying to issue an invoice that is already issued.Solution: Issue an invoice in the draft state.
Code: 400There is an error in the invoice id. It may be incorrect or invalid.Solution: Check that you have entered a valid invoice id.
Code: 400The invoice does not have a customer attached. An invoice cannot be issued without customer details.Solution: Update the invoice first to add a customer_id or a customer object before issuing.
Code: 400The invoice has an expire_by value that is in the past or less than 15 minutes from the current server time. An invoice cannot be issued with an immediate or past expiry.Solution: Update the invoice’s expire_by to a timestamp at least 15 minutes in the future before issuing.
Code: BAD_REQUEST_ERROR
Code: BAD_REQUEST_ERROR
Code: SERVER_ERROR
Last modified on December 4, 2026