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

Orders

Ordering services, paid from wallet credit.

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

Operations

The Order object

An order for one or more services.

Attributes

  • objectstringRequired

    The object's type. Always "order".

  • idstring (uuid)Required

    The order's id.

  • statusstringRequired

    placed (invoiced, not paid), paid (provisioning has started), held (paid, waiting for a review before set-up), completed (every service is ready) or cancelled.

    One ofplacedpaidheldcompletedcancelled
  • itemsarray of OrderItemRequired

    The order's services.

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

      The item's id.

    • planIdstringRequired

      The plan's id.

    • billingCycleMonthsintegerRequired

      The billing cycle in months.

    • hostnamestring or nullRequired

      The hostname ordered, or null.

    • labelstring or nullRequired

      The label ordered, or null.

    • priceobjectRequired

      The item's price per cycle, excluding GST.

      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 made for this item, or null until it exists.

    • actionIdstring (uuid) or nullRequired

      The provision action for this item, or null before payment.

    • referencestring or nullRequired

      Your own identifier for this object, such as your client's id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.

      min length 1, max length 100
    • metadataobjectRequired

      Your own key-value data on this object.

      max 20 keys
  • subtotalobjectRequired

    The items' total 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

    The coupon's discount.

    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

    GST, where it applies.

    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

    subtotal minus discount plus tax: what was paid.

    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}$
  • couponCodestring or nullRequired

    The coupon applied, or null.

  • invoiceIdstring (uuid) or nullRequired

    The order's invoice.

  • referencestring or nullRequired

    Your own identifier for this object, such as your client's id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.

    min length 1, max length 100
  • metadataobjectRequired

    Your own key-value data on this object.

    max 20 keys
  • createdAtstring (date-time)Required

    When the order was placed.

  • paidAtstring (date-time) or nullRequired

    When it was paid, or null.

  • completedAtstring (date-time) or nullRequired

    When its last service became ready, or null.

  • cancelledAtstring (date-time) or nullRequired

    When it was cancelled, or null.

  • livemodebooleanRequired

    True for objects of your live account.

The Order object
{
  "object": "order",
  "id": "e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f",
  "status": "paid",
  "items": [
    {
      "id": "2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b",
      "planId": "vps-nvme-4-mumbai",
      "billingCycleMonths": 1,
      "hostname": "node1.acme.example",
      "label": "node1",
      "price": {
        "amount": 129900,
        "currency": "INR"
      },
      "serviceId": "c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d",
      "actionId": "7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f",
      "reference": "client-4471",
      "metadata": {
        "whmcsServiceId": "18342",
        "plan": "starter"
      }
    }
  ],
  "subtotal": {
    "amount": 129900,
    "currency": "INR"
  },
  "discount": {
    "amount": 0,
    "currency": "INR"
  },
  "tax": {
    "amount": 23382,
    "currency": "INR"
  },
  "total": {
    "amount": 153282,
    "currency": "INR"
  },
  "couponCode": null,
  "invoiceId": "9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a",
  "reference": "order-99120",
  "metadata": {
    "source": "whmcs"
  },
  "createdAt": "2026-12-04T09:15:22Z",
  "paidAt": "2026-12-04T09:15:24Z",
  "completedAt": null,
  "cancelledAt": 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.