Get details of a specific invoice

Retrieve detailed information about a specific invoice, identified by its unique ID. This information may include whether the invoice has an active payment link or previous payment history. This ID is often necessary for subsequent actions or verifying invoice status in other systems.

Path Parameters

id integer · min: 1 required Example

Unique id identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
401
error string
message string
code string
timestamp string
requestId string
403
error string
message string
code string
timestamp string
requestId string
404
error string
message string
code string
timestamp string
requestId string
429
error string
message string
retryAfter string
requestId string
GET https://cloud.hostup.se/api/billing/invoice/{id}
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/billing/invoice/47185" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "invoice": {
      "id": "string",
      "paid_id": "string",
      "recurring_id": "string",
      "status": "string",
      "client_id": "string",
      "contact_id": "string",
      "date": "string",
      "duedate": "string",
      "paybefore": "string",
      "datepaid": "string",
      "subtotal": 0,
      "credit": 0,
      "tax": 0,
      "taxrate": 0,
      "tax2": 0,
      "taxrate2": 0,
      "taxexempt": "string",
      "total": 0,
      "grandtotal": 0,
      "payment_module": "string",
      "currency_id": "string",
      "rate": 0,
      "rate2": 0,
      "rate3": 0,
      "notes": "string",
      "locked": "string",
      "metadata": {
        "taxconfig": {
          "CompoundL2": "string",
          "TaxType": "string",
          "TaxRounding": "string",
          "AllowNegativeTax": "string",
          "TaxCredited": "string"
        },
        "client": {
          "id": "string",
          "group_id": "string",
          "email": "string",
          "status": "string",
          "loginattempts": "string",
          "mfamodule": "string",
          "brand_id": "string",
          "browser": "string",
          "reset_token": "string",
          "reset_expiry": "string",
          "parent_id": "string",
          "firstname": "string",
          "lastname": "string",
          "companyname": "string",
          "address1": "string",
          "address2": "string",
          "city": "string",
          "state": "string",
          "postcode": "string",
          "country": "string",
          "phonenumber": "string",
          "datecreated": "string",
          "notes": "string",
          "language": "string",
          "company": "string",
          "taxexempt": "string",
          "latefeeoveride": 0,
          "overideduenotices": true,
          "client_id": "string",
          "currency_id": "string",
          "privileges": "string",
          "taxrateoverride": "string",
          "taxrate": "string",
          "billing_contact_id": "string",
          "overideautosusp": "string",
          "disableemails": "string",
          "brand": "string",
          "orgno": "string",
          "captchav2": "string",
          "langcustomline0076": "string"
        },
        "currencies": "string",
        "first_order": true,
        "order_id": 0
      },
      "flags": "string",
      "sortid": "string",
      "brand_id": "string",
      "order_id": "string",
      "order_number": "string",
      "is_first": true,
      "items": [
        {
          "id": "string",
          "invoice_id": "string",
          "type": "string",
          "item_id": "string",
          "description": "string",
          "description2": "string",
          "amount": "string",
          "discount": "string",
          "setup_fee": "string",
          "period_start": "string",
          "period_end": "string",
          "taxed": "string",
          "tax_rate": 0,
          "tax": "string",
          "qty": "string",
          "position": 0,
          "group_id": "string",
          "linetotal": 0
        }
      ],
      "discounts": [
        "string"
      ],
      "client": {
        "id": "string",
        "group_id": "string",
        "email": "string",
        "status": "string",
        "loginattempts": "string",
        "mfamodule": "string",
        "brand_id": "string",
        "browser": "string",
        "reset_token": "string",
        "reset_expiry": "string",
        "parent_id": "string",
        "firstname": "string",
        "lastname": "string",
        "companyname": "string",
        "address1": "string",
        "address2": "string",
        "city": "string",
        "state": "string",
        "postcode": "string",
        "country": "string",
        "phonenumber": "string",
        "datecreated": "string",
        "notes": "string",
        "language": "string",
        "company": "string",
        "taxexempt": "string",
        "latefeeoveride": 0,
        "overideduenotices": true,
        "client_id": "string",
        "currency_id": "string",
        "privileges": "string",
        "taxrateoverride": "string",
        "taxrate": "string",
        "billing_contact_id": "string",
        "overideautosusp": "string",
        "disableemails": "string",
        "brand": "string",
        "orgno": "string",
        "captchav2": "string",
        "langcustomline0076": "string"
      },
      "proforma_id": "string",
      "taxes": {
        "0": {
          "subtotal": 0,
          "name": "string",
          "rate": 0,
          "total": 0,
          "tax": 0
        },
        "25": {
          "subtotal": "string",
          "name": "string",
          "rate": 0,
          "total": "string",
          "tax": "string"
        }
      },
      "gateway": "string"
    },
    "success": true
  }
}