Invoices Entity🔗
id
-
string
The unique identifier of the invoice. entity
-
string
Here, it isinvoice
. type
-
string
Here, it must beinvoice
. invoice_number
-
string
Unique number you added for internal reference. customer_id
-
string
The unique identifier of the customer. You can createcustomer_id
using the Customers API. Alternatively, you can pass the customer object described in the below fields. customer_details
-
Details of the customer.
id
-
string
The unique identifier associated with the customer to whom the invoice has been issued. name
-
string
The customer's name. email
-
string
The customer's email address. contact
-
string
The customer's phone number. billing_address
-
Details of the customer's billing address.
id
string
The unique identifier generated for the customer's billing address.type
string
The customer address type. Here it isbilling_address
.primary
boolean
Defines if this is the primary address.line1
string
The first line of the customer's address.line2
string
The second line of the customer's address.city
string
The city.zipcode
string
The zipcode.state
string
The state.country
string
The country.
shipping_address
-
Details of the customer's shipping address.
id
string
The unique identifier generated for the customer's shipping address.type
string
The customer address type. Here it isshipping_address
.primary
boolean
Defines if this is the primary address.line1
string
The first line of the customer's address.line2
string
The second line of the customer's address.city
string
The city.zipcode
string
The zipcode.state
string
The state.country
string
The country.
order_id
-
string
The 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.
id
string
Unique identifier that is generated if a new item has been created while creating the invoice.item_id
string
Unique identifier of the item generated using Items API that has been billed in the invoice.name
string
The item's name.description
string
A brief description of the item.amount
integer
The price of the item.currency
string
The currency associated with the item. Default isINR
. Know about the list of supported international currencies.type
string
Here, it isinvoice
.quantity
integer
The quantity of the item billed in the invoice. Defaults to1
.
payment_id
-
string
Unique identifier of a payment made against this invoice. status
-
string
The status of the invoice. Possible values:draft
issued
partially_paid
paid
cancelled
expired
deleted
expire_by
-
integer
Timestamp, in Unix format, at which the invoice will expire. issued_at
-
integer
Timestamp, in Unix format, at which the invoice was issued to the customer. paid_at
-
integer
Timestamp, in Unix format, at which the payment was made. cancelled_at
-
integer
Timestamp, in Unix format, at which the invoice was cancelled. expired_at
-
integer
Timestamp, in Unix format, at which the invoice expired.sms_status
-
string
The delivery status of the SMS notification for the invoice sent to the customer. Possible values:pending
sent
email_status
-
string
The delivery status of the email notification for the invoice sent to the customer. Possible values:pending
sent
partial_payment
-
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.
amount
-
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 ₹299.95, pass the value as29995
. amount_paid
-
integer
Amount paid by the customer against the invoice. amount_due
-
integer
The remaining amount to be paid by the customer for the issued invoice. currency
-
string
The currency associated with the invoice. You must mandatorily pass this parameter if accepting international payments. If you have passedcurrency
as a sub-parameter in theline_item
object, you must ensure that the same currency is passed in both places. Know about the list of supported international currencies. description
-
string
A brief description of the invoice. notes
-
object
Any custom notes added to the invoice. Maximum of 2048 characters. short_url
-
string
The short URL that is generated. This is the link that can be shared with the customer to receive payments. type
-
string
Here, it isinvoice
. date
-
integer
Timestamp, in Unix format, that indicates the issue date of the invoice. terms
-
string
Any terms to be included in the invoice. Maximum of 2048 characters. comment
-
string
Any comments to be added in the invoice. Maximum of 2048 characters.