Leaseweb · Schema

getInvoiceResult

CompanyCloudInfrastructure-as-a-ServiceBare MetalDedicated ServersObject StorageDNSHosting

Properties

Name Type Description
id string The unique id of the invoice
date string The date the invoice was issued
dueDate string The date the invoice is due for payment
taxAmount number The tax amount of the invoice
total number The total amount of the invoice
netAmount number The total amount of the invoice without the tax amount included
openAmount number The open amount of the invoice
currency string The currency of the service price
isPartialPaymentAllowed boolean The invoice can be paid partially
status string The status of the invoice.
credits array Array of Credits
lineItems array All the line items attached to the invoice
View JSON Schema on GitHub

JSON Schema

leaseweb-get-invoice-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/leaseweb/main/json-schema/leaseweb-get-invoice-result-schema.json",
  "title": "getInvoiceResult",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leaseweb-invoice-openapi.yml#/components/schemas/getInvoiceResult",
  "properties": {
    "id": {
      "description": "The unique id of the invoice",
      "type": "string"
    },
    "date": {
      "description": "The date the invoice was issued",
      "type": "string"
    },
    "dueDate": {
      "description": "The date the invoice is due for payment",
      "type": "string"
    },
    "taxAmount": {
      "description": "The tax amount of the invoice",
      "format": "float",
      "type": "number"
    },
    "total": {
      "description": "The total amount of the invoice",
      "format": "float",
      "type": "number"
    },
    "netAmount": {
      "description": "The total amount of the invoice without the tax amount included",
      "format": "float",
      "type": "number"
    },
    "openAmount": {
      "description": "The open amount of the invoice",
      "format": "float",
      "type": "number"
    },
    "currency": {
      "description": "The currency of the service price",
      "enum": [
        "EUR",
        "GBP",
        "USD",
        "SGD",
        "AUD",
        "HKD"
      ],
      "type": "string"
    },
    "isPartialPaymentAllowed": {
      "description": "The invoice can be paid partially",
      "type": "boolean"
    },
    "status": {
      "description": "The status of the invoice.",
      "enum": [
        "OPEN",
        "PAID",
        "OVERDUE",
        "CANCELLED"
      ],
      "type": "string"
    },
    "credits": {
      "description": "Array of Credits",
      "items": {
        "$ref": "#/$defs/credit"
      },
      "type": "array"
    },
    "lineItems": {
      "description": "All the line items attached to the invoice",
      "items": {
        "$ref": "#/$defs/lineItem"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "credit": {
      "properties": {
        "id": {
          "description": "The unique id of the credit",
          "type": "string"
        },
        "date": {
          "description": "The date the credit was issued (UTC)",
          "type": "string"
        },
        "taxAmount": {
          "description": "The amount of tax on the credit",
          "format": "float",
          "type": "number"
        },
        "netAmount": {
          "description": "The total amount of the credit without the tax amount included",
          "format": "float",
          "type": "number"
        },
        "total": {
          "description": "The total amount of the credit",
          "format": "float",
          "type": "number"
        }
      },
      "title": "credit",
      "type": "object"
    },
    "lineItem": {
      "properties": {
        "product": {
          "description": "A string to indicate what kind of product this is",
          "type": "string"
        },
        "unitAmount": {
          "description": "The amount it cost for a single product unit.",
          "format": "float",
          "type": "number"
        },
        "totalAmount": {
          "description": "The total amount of the product",
          "format": "float",
          "type": "number"
        },
        "fromDate": {
          "description": "The product start date (UTC)",
          "type": "string"
        },
        "toDate": {
          "description": "The product end date (UTC)",
          "type": "string"
        },
        "equipmentId": {
          "description": "The id of the equipment",
          "type": "string"
        },
        "contractId": {
          "description": "The id of the contract",
          "type": "string"
        },
        "quantity": {
          "description": "The quantity of a product",
          "type": "integer"
        }
      },
      "title": "lineItem",
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/leaseweb-get-invoice-result"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.