Billing
Invoices and wallet credit.
Operations
The Invoice object
An invoice or a credit note issued to your account.
Attributes
objectstringRequiredThe object's type. Always "invoice".
idstring (uuid)RequiredThe invoice's id.
numberstringRequiredThe printed number, such as C-INV-02731 (credit notes: C-CN-).
documentTypestringRequiredinvoice (a tax invoice), credit_note, or free (a zero-value document).
One ofinvoicecredit_notefreestatusstring or nullRequiredopen, part_paid, overdue, paid or cancelled (settled by a credit note). Null for a credit note.
One ofopenpart_paidoverduepaidcancelledcurrencystringRequiredThe invoice's currency.
pattern ^[A-Z]{3}$issuedAtstring (date-time)RequiredWhen it was issued.
issueDatestring (date)RequiredThe date printed as the date of issue.
dueDatestring (date)RequiredThe due date.
subtotalobjectRequiredBefore discount and tax.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
discountobjectRequiredDiscounts.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
taxobjectRequiredTax in total.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
taxBreakdownobject or nullRequiredThe GST split for an Indian invoice; null otherwise.
Show 3 child attributesHide 3 child attributes
cgstobject or nullRequiredCentral GST, or null.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
sgstobject or nullRequiredState GST, or null.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
igstobject or nullRequiredIntegrated GST, or null.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
totalobjectRequiredThe invoice total.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
amountPaidobject or nullRequiredPaid so far. Null for a credit note.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
amountCreditedobject or nullRequiredSettled by credit notes. Null for a credit note.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
amountDueobject or nullRequiredStill due. Null for a credit note.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
paidAtstring (date-time) or nullRequiredWhen it was paid in full, or null.
buyerGstinstring or nullRequiredYour GSTIN as printed, or null.
placeOfSupplyobject or nullRequiredThe place of supply, for GST.
Show 2 child attributesHide 2 child attributes
countrystringRequiredISO 3166-1 alpha-2.
gstStatestring or nullRequiredThe Indian GST state code, or null.
linesarray of InvoiceLineRequiredThe invoice's lines. Empty in listInvoices; filled by getInvoice.
Show 11 child attributesHide 11 child attributes
idstring (uuid)RequiredThe line's id.
descriptionstringRequiredWhat the line is for.
quantityintegerRequiredThe quantity.
unitAmountobjectRequiredThe price of one unit, excluding tax.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
discountobject or nullRequiredThe line's discount, or null.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
netobjectRequiredAfter discount, before tax.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
taxRateBpintegerRequiredThe tax rate in basis points (1800 is 18%).
taxobjectRequiredThe line's tax.
Show 2 child attributesHide 2 child attributes
amountintegerRequiredThe amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
min -9007199254740991, max 9007199254740991currencystringRequiredThe ISO 4217 currency code, upper case.
pattern ^[A-Z]{3}$
serviceIdstring (uuid) or nullRequiredThe service the line bills, or null.
periodStartstring (date) or nullRequiredThe first day billed, or null.
periodEndstring (date) or nullRequiredThe last day billed, or null.
orderIdstring (uuid) or nullRequiredThe order this invoice was issued for, or null.
creditsInvoiceIdstring (uuid) or nullRequiredFor a credit note: the invoice it credits. Null otherwise.
livemodebooleanRequiredTrue for objects of your live account.
{
"object": "invoice",
"id": "9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a",
"number": "C-INV-02731",
"documentType": "invoice",
"status": "paid",
"currency": "INR",
"issuedAt": "2026-12-04T09:15:23Z",
"issueDate": "2026-12-04",
"dueDate": "2026-12-04",
"subtotal": {
"amount": 129900,
"currency": "INR"
},
"discount": {
"amount": 0,
"currency": "INR"
},
"tax": {
"amount": 23382,
"currency": "INR"
},
"taxBreakdown": {
"cgst": null,
"sgst": null,
"igst": {
"amount": 23382,
"currency": "INR"
}
},
"total": {
"amount": 153282,
"currency": "INR"
},
"amountPaid": {
"amount": 153282,
"currency": "INR"
},
"amountCredited": {
"amount": 0,
"currency": "INR"
},
"amountDue": {
"amount": 0,
"currency": "INR"
},
"paidAt": "2026-12-04T09:15:24Z",
"buyerGstin": null,
"placeOfSupply": {
"country": "IN",
"gstState": "29"
},
"lines": [
{
"id": "5c9a1e7f-2d4b-4f8c-b6a3-0e7d1c9f2a4b",
"description": "NVMe VPS 4 GB (node1.acme.example), 4 Dec 2026 to 3 Jan 2027",
"quantity": 1,
"unitAmount": {
"amount": 129900,
"currency": "INR"
},
"discount": null,
"net": {
"amount": 129900,
"currency": "INR"
},
"taxRateBp": 1800,
"tax": {
"amount": 23382,
"currency": "INR"
},
"serviceId": "c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d",
"periodStart": "2026-12-04",
"periodEnd": "2027-01-03"
}
],
"orderId": "e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f",
"creditsInvoiceId": null,
"livemode": true
}