AI ready
Open in Claude (opens in a new tab)View as Markdown

Billing

Invoices and wallet credit.

Base URL https://api.clouduxe.com/v1Updated 5 November 2026

Operations

The Invoice object

An invoice or a credit note issued to your account.

Attributes

  • objectstringRequired

    The object's type. Always "invoice".

  • idstring (uuid)Required

    The invoice's id.

  • numberstringRequired

    The printed number, such as C-INV-02731 (credit notes: C-CN-).

  • documentTypestringRequired

    invoice (a tax invoice), credit_note, or free (a zero-value document).

    One ofinvoicecredit_notefree
  • statusstring or nullRequired

    open, part_paid, overdue, paid or cancelled (settled by a credit note). Null for a credit note.

    One ofopenpart_paidoverduepaidcancelled
  • currencystringRequired

    The invoice's currency.

    pattern ^[A-Z]{3}$
  • issuedAtstring (date-time)Required

    When it was issued.

  • issueDatestring (date)Required

    The date printed as the date of issue.

  • dueDatestring (date)Required

    The due date.

  • subtotalobjectRequired

    Before discount and tax.

    Show 2 child attributesHide 2 child attributes
    • amountintegerRequired

      The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

      min -9007199254740991, max 9007199254740991
    • currencystringRequired

      The ISO 4217 currency code, upper case.

      pattern ^[A-Z]{3}$
  • discountobjectRequired

    Discounts.

    Show 2 child attributesHide 2 child attributes
    • amountintegerRequired

      The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

      min -9007199254740991, max 9007199254740991
    • currencystringRequired

      The ISO 4217 currency code, upper case.

      pattern ^[A-Z]{3}$
  • taxobjectRequired

    Tax in total.

    Show 2 child attributesHide 2 child attributes
    • amountintegerRequired

      The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

      min -9007199254740991, max 9007199254740991
    • currencystringRequired

      The ISO 4217 currency code, upper case.

      pattern ^[A-Z]{3}$
  • taxBreakdownobject or nullRequired

    The GST split for an Indian invoice; null otherwise.

    Show 3 child attributesHide 3 child attributes
    • cgstobject or nullRequired

      Central GST, or null.

      Show 2 child attributesHide 2 child attributes
      • amountintegerRequired

        The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

        min -9007199254740991, max 9007199254740991
      • currencystringRequired

        The ISO 4217 currency code, upper case.

        pattern ^[A-Z]{3}$
    • sgstobject or nullRequired

      State GST, or null.

      Show 2 child attributesHide 2 child attributes
      • amountintegerRequired

        The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

        min -9007199254740991, max 9007199254740991
      • currencystringRequired

        The ISO 4217 currency code, upper case.

        pattern ^[A-Z]{3}$
    • igstobject or nullRequired

      Integrated GST, or null.

      Show 2 child attributesHide 2 child attributes
      • amountintegerRequired

        The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

        min -9007199254740991, max 9007199254740991
      • currencystringRequired

        The ISO 4217 currency code, upper case.

        pattern ^[A-Z]{3}$
  • totalobjectRequired

    The invoice total.

    Show 2 child attributesHide 2 child attributes
    • amountintegerRequired

      The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

      min -9007199254740991, max 9007199254740991
    • currencystringRequired

      The ISO 4217 currency code, upper case.

      pattern ^[A-Z]{3}$
  • amountPaidobject or nullRequired

    Paid so far. Null for a credit note.

    Show 2 child attributesHide 2 child attributes
    • amountintegerRequired

      The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

      min -9007199254740991, max 9007199254740991
    • currencystringRequired

      The ISO 4217 currency code, upper case.

      pattern ^[A-Z]{3}$
  • amountCreditedobject or nullRequired

    Settled by credit notes. Null for a credit note.

    Show 2 child attributesHide 2 child attributes
    • amountintegerRequired

      The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

      min -9007199254740991, max 9007199254740991
    • currencystringRequired

      The ISO 4217 currency code, upper case.

      pattern ^[A-Z]{3}$
  • amountDueobject or nullRequired

    Still due. Null for a credit note.

    Show 2 child attributesHide 2 child attributes
    • amountintegerRequired

      The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

      min -9007199254740991, max 9007199254740991
    • currencystringRequired

      The ISO 4217 currency code, upper case.

      pattern ^[A-Z]{3}$
  • paidAtstring (date-time) or nullRequired

    When it was paid in full, or null.

  • buyerGstinstring or nullRequired

    Your GSTIN as printed, or null.

  • placeOfSupplyobject or nullRequired

    The place of supply, for GST.

    Show 2 child attributesHide 2 child attributes
    • countrystringRequired

      ISO 3166-1 alpha-2.

    • gstStatestring or nullRequired

      The Indian GST state code, or null.

  • linesarray of InvoiceLineRequired

    The invoice's lines. Empty in listInvoices; filled by getInvoice.

    Show 11 child attributesHide 11 child attributes
    • idstring (uuid)Required

      The line's id.

    • descriptionstringRequired

      What the line is for.

    • quantityintegerRequired

      The quantity.

    • unitAmountobjectRequired

      The price of one unit, excluding tax.

      Show 2 child attributesHide 2 child attributes
      • amountintegerRequired

        The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

        min -9007199254740991, max 9007199254740991
      • currencystringRequired

        The ISO 4217 currency code, upper case.

        pattern ^[A-Z]{3}$
    • discountobject or nullRequired

      The line's discount, or null.

      Show 2 child attributesHide 2 child attributes
      • amountintegerRequired

        The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

        min -9007199254740991, max 9007199254740991
      • currencystringRequired

        The ISO 4217 currency code, upper case.

        pattern ^[A-Z]{3}$
    • netobjectRequired

      After discount, before tax.

      Show 2 child attributesHide 2 child attributes
      • amountintegerRequired

        The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

        min -9007199254740991, max 9007199254740991
      • currencystringRequired

        The ISO 4217 currency code, upper case.

        pattern ^[A-Z]{3}$
    • taxRateBpintegerRequired

      The tax rate in basis points (1800 is 18%).

    • taxobjectRequired

      The line's tax.

      Show 2 child attributesHide 2 child attributes
      • amountintegerRequired

        The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.

        min -9007199254740991, max 9007199254740991
      • currencystringRequired

        The ISO 4217 currency code, upper case.

        pattern ^[A-Z]{3}$
    • serviceIdstring (uuid) or nullRequired

      The service the line bills, or null.

    • periodStartstring (date) or nullRequired

      The first day billed, or null.

    • periodEndstring (date) or nullRequired

      The last day billed, or null.

  • orderIdstring (uuid) or nullRequired

    The order this invoice was issued for, or null.

  • creditsInvoiceIdstring (uuid) or nullRequired

    For a credit note: the invoice it credits. Null otherwise.

  • livemodebooleanRequired

    True for objects of your live account.

The Invoice object
{
  "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
}

Generated from the API contract, version 2026-12-01.

Need a server, or a hand with one?

Pick a plan to deploy a server, or open a ticket in the panel. Support runs 24/7/365.