Get an invoice
/invoices/{invoiceId}Use this to read an invoice's lines, tax and amounts.
- Token
- Bearer API token: cxk_live_ followed by 46 letters and digits
- Scope
billing:read- Header
Authorization: Bearer $CLOUDUXE_API_KEY
How tokens and scopes work: Authentication and scopes.
invoiceIdstring (uuid)RequiredThe invoice's id.
Clouduxe-VersionstringOptionalThe API version to use, such as 2026-12-01. Omit it to use your token's version.
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
200OK The invoice.
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.
Every response
- 200OKThe invoice.
- 400Bad requestThe request is not valid. Codes: version_invalid.
- 401UnauthorizedAuthentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.
- 403ForbiddenThe token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.
- 404Not foundNot found. Codes: not_found.
- 429Too many requestsA rate limit was reached. Codes: rate_limited.
- 500Server errorUnexpected error. Codes: internal_error.
- 503UnavailableTemporarily unavailable. Codes: unavailable.