Invoices Entity🔗
id-
stringThe unique identifier of the invoice. entity-
stringHere, it isinvoice. type-
stringHere, it must beinvoice. invoice_number-
stringUnique number you added for internal reference. customer_id-
stringThe unique identifier of the customer. You can createcustomer_idusing the Customers API. Alternatively, you can pass the customer object described in the below fields. customer_details-
Details of the customer.
id-
stringThe unique identifier associated with the customer to whom the invoice has been issued. name-
stringThe customer's name. email-
stringThe customer's email address. contact-
stringThe customer's phone number. billing_address-
Details of the customer's billing address.
idstringThe unique identifier generated for the customer's billing address.typestringThe customer address type. Here it isbilling_address.primarybooleanDefines if this is the primary address.line1stringThe first line of the customer's address.line2stringThe second line of the customer's address.citystringThe city.zipcodestringThe zipcode.statestringThe state.countrystringThe country.
shipping_address-
Details of the customer's shipping address.
idstringThe unique identifier generated for the customer's shipping address.typestringThe customer address type. Here it isshipping_address.primarybooleanDefines if this is the primary address.line1stringThe first line of the customer's address.line2stringThe second line of the customer's address.citystringThe city.zipcodestringThe zipcode.statestringThe state.countrystringThe country.
order_id-
stringThe unique identifier of the order associated with the invoice. line_items-
Details of the line item that is billed in the invoice. Maximum of 50 line items.
idstringUnique identifier that is generated if a new item has been created while creating the invoice.item_idstringUnique identifier of the item generated using Items API that has been billed in the invoice.namestringThe item's name.descriptionstringA brief description of the item.amountintegerThe price of the item.currencystringThe currency associated with the item. Default isINR. Know about the list of supported international currencies.typestringHere, it isinvoice.quantityintegerThe quantity of the item billed in the invoice. Defaults to1.
payment_id-
stringUnique identifier of a payment made against this invoice. status-
stringThe status of the invoice. Possible values:draftissuedpartially_paidpaidcancelledexpireddeleted
expire_by-
integerTimestamp, in Unix format, at which the invoice will expire. issued_at-
integerTimestamp, in Unix format, at which the invoice was issued to the customer. paid_at-
integerTimestamp, in Unix format, at which the payment was made. cancelled_at-
integerTimestamp, in Unix format, at which the invoice was cancelled. expired_at-
integerTimestamp, in Unix format, at which the invoice expired.sms_status -
stringThe delivery status of the SMS notification for the invoice sent to the customer. Possible values:pendingsent
email_status-
stringThe delivery status of the email notification for the invoice sent to the customer. Possible values:pendingsent
partial_payment-
booleanIndicates 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.
amount-
integerAmount 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 ₹299.95, pass the value as29995. amount_paid-
integerAmount paid by the customer against the invoice. amount_due-
integerThe remaining amount to be paid by the customer for the issued invoice. currency-
stringThe currency associated with the invoice. You must mandatorily pass this parameter if accepting international payments. If you have passedcurrencyas a sub-parameter in theline_itemobject, you must ensure that the same currency is passed in both places. Know about the list of supported international currencies. description-
stringA brief description of the invoice. notes-
objectAny custom notes added to the invoice. Maximum of 2048 characters. short_url-
stringThe short URL that is generated. This is the link that can be shared with the customer to receive payments. type-
stringHere, it isinvoice. date-
integerTimestamp, in Unix format, that indicates the issue date of the invoice. terms-
stringAny terms to be included in the invoice. Maximum of 2048 characters. comment-
stringAny comments to be added in the invoice. Maximum of 2048 characters.