Leaseweb Invoice API

The invoice API from Leaseweb — 5 operation(s) for invoice.

Operations 5

GET /invoices List Invoices #
GET /invoices/export/csv Export Invoices (CSV) #
GET /invoices/{Id} Inspect a invoice #
GET /invoices/{Id}/pdf Get Invoice PDF #
GET /invoices/proforma Pro Forma #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-instance-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-instance-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-auto-scaling-group-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-load-balancer-listener-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-load-balancer-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-load-balancers-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-job-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-server-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-server-job-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-job-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-hardware-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-server-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-network-equipment-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-network-equipment-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-ip-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-ip-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-null-route-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-credential-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-import-resource-record-sets-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-resource-record-set-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-resource-record-set-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-resource-record-set-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-query-metrics-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-info-message-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-bucket-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-create-object-storage-access-key-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-object-storage-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-object-storage-bucket-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-create-object-storage-bucket-opts-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-group-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-dedicated-server-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-vps-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-dedicated-server-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-order-vps-opts-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-vps-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-order-dedicated-server-opts-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-null-routed-ip-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-null-route-history-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-iplist-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-null-route-ipopts-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-update-null-route-opts-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-report-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-report-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-report-message-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-report-resolution-list-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-resolve-report-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-create-report-message-opts-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-invoice-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-proforma-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-invoices-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-invoices-export-csv-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-invoice-pdf-result-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-aggregation-pack-schema.json
📊
JSONSchema
https://artifacts.apis.io/leaseweb/json-schema/leaseweb-get-aggregation-pack-list-result-schema.json

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/leaseweb:leaseweb-invoice-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

leaseweb-invoice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Leaseweb Invoice API
  version: v1
  contact: {}
  license:
    name: Apache 2.0
    url: http://developer.leaseweb.com
  x-logo:
    altText: Leaseweb developer documentation
    backgroundColor: '#5484c6'
    href: https://developer.leaseweb.com
    url: https://developer.leaseweb.com/images/logo.png
  description: 'Operations tagged invoice across 2 of this provider''s published API definitions: leaseweb-invoice-openapi.yaml, leaseweb-invoice-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.leaseweb.com/invoices/v1
security:
- X-LSW-Auth: []
tags:
- name: Invoice
paths:
  /invoices:
    get:
      description: This endpoint will return an overview of all the invoices for the customer.
      operationId: getInvoices
      parameters:
      - description: Limit the number of results returned.
        example: 20
        explode: true
        in: query
        name: limit
        required: false
        schema:
          type: integer
        style: form
      - description: Return results starting from the given offset.
        example: 10
        explode: true
        in: query
        name: offset
        required: false
        schema:
          type: integer
        style: form
      - description: Filter - The unique id of the invoice. The filter only matches exact IDs.
        example: 1
        explode: true
        in: query
        name: id
        required: false
        schema:
          type: string
        style: form
      - description: Filter - Invoice status
        example: PAID
        explode: true
        in: query
        name: status
        required: false
        schema:
          enum:
          - OPEN
          - PAID
          - READY
          - CANCELLED
          - OVERDUE
          type: string
        style: form
      - description: Filter - Invoice creation date lower limit
        explode: true
        in: query
        name: dateFrom
        required: false
        schema:
          format: date-time
          type: string
        style: form
      - description: Filter - Invoice creation date upper limit
        explode: true
        in: query
        name: dateTo
        required: false
        schema:
          format: date-time
          type: string
        style: form
      responses:
        '200':
          content:
            application/json:
              example:
                invoices:
                - id: '00000001'
                  date: 2019-05-06 00:00:00+00:00
                  dueDate: 2019-05-30 00:00:00+00:00
                  taxAmount: 0
                  netAmount: 1756.21
                  total: 1756.21
                  openAmount: 1756.21
                  currency: EUR
                  isPartialPaymentAllowed: true
                  status: OVERDUE
                - id: '00000002'
                  date: 2019-05-06 00:00:00+00:00
                  dueDate: 2019-05-30 00:00:00+00:00
                  taxAmount: 0
                  netAmount: 34
                  total: 34
                  openAmount: 34
                  currency: EUR
                  isPartialPaymentAllowed: true
                  status: OPEN
                - id: '00000003'
                  date: 2019-04-06 00:00:00+00:00
                  dueDate: 2019-04-30 00:00:00+00:00
                  taxAmount: 0
                  netAmount: 14.37
                  total: 14.37
                  openAmount: 0
                  currency: EUR
                  isPartialPaymentAllowed: false
                  status: PAID
                _metadata:
                  limit: 10
                  offset: 0
                  totalCount: 3
              schema:
                $ref: '#/components/schemas/getInvoicesResult'
          description: Ok.
        '401':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '401'
                errorMessage: You are not authorized to view this resource.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Not Authorized.
        '403':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '403'
                errorMessage: Access to the requested resource is forbidden.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Forbidden.
        '500':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '500'
                errorMessage: '''The API could not handle your request at this time.'
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Internal Server Error.
        '503':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '503'
                errorMessage: The API is not available at the moment.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Service Unavailable.
      summary: List Invoices
      tags:
      - Invoice
    servers:
    - url: https://api.leaseweb.com/invoices/v1
  /invoices/export/csv:
    get:
      description: This endpoint exports all invoices for the current customer as a CSV file.
      operationId: getInvoicesExportCsv
      parameters:
      - description: 'Filter invoices starting from this date.

          - Format: YYYY-MM-DD

          - Example: 2025-01-01

          '
        explode: true
        in: query
        name: dateFrom
        required: false
        schema:
          format: date
          type: string
        style: form
      - description: 'Filter invoices starting up to this date.

          - Format: YYYY-MM-DD

          - Example: 2025-01-01

          '
        explode: true
        in: query
        name: dateTo
        required: false
        schema:
          format: date
          type: string
        style: form
      responses:
        '200':
          content:
            text/csv:
              example: 'Invoice number,Date (UTC),Status,Open amount,Total

                12341234,2025-09-30T12:00:00+00:00,PAID,0,120

                12341235,2025-10-01T08:30:00+00:00,OPEN,50.50,200.50

                12341236,2025-11-01T08:30:00+00:00,OPEN,10.99,220.99

                '
              schema:
                $ref: '#/components/schemas/getInvoicesExportCsvResult'
          description: CSV file with invoices.
        '401':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '401'
                errorMessage: You are not authorized to view this resource.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Not Authorized.
        '403':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '403'
                errorMessage: Access to the requested resource is forbidden.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Forbidden.
        '500':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '500'
                errorMessage: '''The API could not handle your request at this time.'
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Internal Server Error.
        '503':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '503'
                errorMessage: The API is not available at the moment.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Service Unavailable.
      summary: Export Invoices (CSV)
      tags:
      - Invoice
    servers:
    - url: https://api.leaseweb.com/invoices/v1
  /invoices/{Id}:
    get:
      description: Get Invoice will return a single invoice for the customer.
      operationId: getInvoice
      parameters:
      - description: Invoice Id
        explode: false
        in: path
        name: Id
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              example:
                id: '00000001'
                date: 2019-05-06 00:00:00+00:00
                dueDate: 2019-05-30 00:00:00+00:00
                taxAmount: 0
                netAmount: 1756.21
                total: 1756.21
                openAmount: 1756.21
                currency: EUR
                isPartialPaymentAllowed: true
                status: OPEN
                credits:
                - id: '00001211'
                  date: 2025-07-09 00:00:00+00:00
                  taxAmount: 1.5
                  netAmount: 13.5
                  total: 15
                lineItems:
                - product: Rackspace
                  unitAmount: 151.5
                  totalAmount: 151.5
                  fromDate: 2023-02-01 00:00:00
                  toDate: 2023-02-28 00:00:00+00:00
                  equipmentId: '1234'
                  contractId: '12345678'
                  quantity: 1
              schema:
                $ref: '#/components/schemas/getInvoiceResult'
          description: Ok.
        '401':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '401'
                errorMessage: You are not authorized to view this resource.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Not Authorized.
        '403':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '403'
                errorMessage: Access to the requested resource is forbidden.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Forbidden.
        '404':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '404'
                errorMessage: Resource not found
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Not Found.
        '500':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '500'
                errorMessage: '''The API could not handle your request at this time.'
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Internal Server Error.
        '503':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '503'
                errorMessage: The API is not available at the moment.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Service Unavailable.
      summary: Inspect a invoice
      tags:
      - Invoice
    servers:
    - url: https://api.leaseweb.com/invoices/v1
  /invoices/{Id}/pdf:
    get:
      description: This endpoint will return a PDF of a single invoice for the customer.
      operationId: getInvoicePdf
      parameters:
      - description: Invoice Id
        explode: false
        in: path
        name: Id
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/pdf:
              example: (binary PDF content omitted)
              schema:
                $ref: '#/components/schemas/getInvoicePdfResult'
          description: Successful file download (PDF)
        '401':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '401'
                errorMessage: You are not authorized to view this resource.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Not Authorized.
        '403':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '403'
                errorMessage: Access to the requested resource is forbidden.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Forbidden.
        '404':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '404'
                errorMessage: Resource not found
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Not Found.
        '500':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '500'
                errorMessage: '''The API could not handle your request at this time.'
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Internal Server Error.
        '503':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '503'
                errorMessage: The API is not available at the moment.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Service Unavailable.
      summary: Get Invoice PDF
      tags:
      - Invoice
    servers:
    - url: https://api.leaseweb.com/invoices/v1
  /invoices/proforma:
    get:
      description: This endpoint will return an overview of contract items that will be invoiced as of the 1st of the upcoming month.
      operationId: getProforma
      responses:
        '200':
          content:
            application/json:
              example:
                proformaDate: '020-06-01T00: 00: 00+00: 00'
                total: 352.55
                subTotal: 300.04
                vatAmount: 52.51
                currency: EUR
                contractItems:
                - contractId: '50000103'
                  equipmentId: '26430'
                  startDate: 2020-01-01 00:00:00+00:00
                  endDate: 2021-01-01 00:00:00+00:00
                  poNumber: '40002154000110'
                  product: Backup
                  reference: this is a reference
                  price: 150.05
                  currency: EUR
                - contractId: '50000103'
                  equipmentId: '26430'
                  startDate: 2020-01-01 00:00:00+00:00
                  endDate: 2021-01-01 00:00:00+00:00
                  poNumber: '40002154000110'
                  product: Dedicated server
                  reference: his is a reference
                  price: 150.05
                  currency: EUR
                _metadata:
                  limit: 10
                  offset: 0
                  totalCount: 2
              schema:
                $ref: '#/components/schemas/getProformaResult'
          description: Ok.
        '401':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '401'
                errorMessage: You are not authorized to view this resource.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Not Authorized.
        '403':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '403'
                errorMessage: Access to the requested resource is forbidden.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Forbidden.
        '404':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '404'
                errorMessage: Resource not found
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Not Found.
        '500':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '500'
                errorMessage: '''The API could not handle your request at this time.'
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Internal Server Error.
        '503':
          content:
            application/json:
              example:
                correlationId: 289346a1-3eaf-4da4-b707-62ef12eb08be
                errorCode: '503'
                errorMessage: The API is not available at the moment.
              schema:
                $ref: '#/components/schemas/errorResult'
          description: Service Unavailable.
      summary: Pro Forma
      tags:
      - Invoice
    servers:
    - url: https://api.leaseweb.com/invoices/v1
components:
  schemas:
    invoice:
      example:
        date: date
        total: 1.4658129
        netAmount: 6.0274563
        dueDate: dueDate
        isPartialPaymentAllowed: true
        currency: EUR
        id: id
        taxAmount: 0.8008282
        openAmount: 5.962134
        status: OPEN
      properties:
        id:
          description: The unique id of the invoice
          type: string
        date:
          description: The date the invoice was issued (UTC)
          type: string
        dueDate:
          description: The date the invoice is due for payment (UTC)
          type: string
        taxAmount:
          description: The amount of tax on the invoice
          format: float
          type: number
        netAmount:
          description: The total amount without the tax amount included
          format: float
          type: number
        total:
          description: The total amount of the invoice
          format: float
          type: number
        openAmount:
          description: The open amount of the invoice
          format: float
          type: number
        currency:
          description: The currency of the invoice.
          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
      title: invoice
      type: object
    lineItem_1:
      example:
        reference: reference
        product: product
        endDate: endDate
        price: 0.8008282
        contractId: contractId
        currency: EUR
        equipmentId: equipmentId
        poNumber: poNumber
        startDate: startDate
      properties:
        contractId:
          description: The unique id of the contract
          type: string
        equipmentId:
          description: The unique id of the equipment
          type: string
        startDate:
          description: The start date of the contract (UTC)
          type: string
        endDate:
          description: The end date of the contract (UTC)
          type: string
        poNumber:
          description: The purchase order number.
          type: string
        product:
          description: A string to indicate what kind of product this is
          type: string
        reference:
          description: The reference a customer gave to the service
          type: string
        price:
          description: The price of the contract item.
          format: float
          type: number
        currency:
          description: The currency of the service price
          enum:
          - EUR
          - GBP
          - USD
          - SGD
          - AUD
          - HKD
          example: EUR
          type: string
      title: lineItem
      type: object
    getInvoiceResult:
      example:
        date: 2019-05-06 00:00:00+00:00
        lineItems:
        - fromDate: fromDate
          totalAmount: 2.302136
          product: product
          quantity: 7
          toDate: toDate
          contractId: contractId
          unitAmount: 5.637377
          equipmentId: equipmentId
        - fromDate: fromDate
          totalAmount: 2.302136
          product: product
          quantity: 7
          toDate: toDate
          contractId: contractId
          unitAmount: 5.637377
          equipmentId: equipmentId
        total: 0.8008282
        netAmount: 0
        credits:
        - date: date
          total: 5.962134
          netAmount: 1.4658129
          id: id
          taxAmount: 6.0274563
        - date: date
          total: 5.962134
          netAmount: 1.4658129
          id: id
          taxAmount: 6.0274563
        dueDate: 2019-05-30 00:00:00+00:00
        isPartialPaymentAllowed: true
        currency: EUR
        id: '00000001'
        taxAmount: 0
        openAmount: 1756.21
        status: OPEN
      properties:
        id:
          description: The unique id of the invoice
          example: '00000001'
          type: string
        date:
          description: The date the invoice was issued
          example: 2019-05-06 00:00:00+00:00
          type: string
        dueDate:
          description: The date the invoice is due for payment
          example: 2019-05-30 00:00:00+00:00
          type: string
        taxAmount:
          description: The tax amount of the invoice
          example: 0
          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
          example: 0
          format: float
          type: number
        openAmount:
          description: The open amount of the invoice
          example: 1756.21
          format: float
          type: number
        currency:
          description: The currency of the service price
          enum:
          - EUR
          - GBP
          - USD
          - SGD
          - AUD
          - HKD
          example: EUR
          type: string
        isPartialPaymentAllowed:
          description: The invoice can be paid partially
          example: true
          type: boolean
        status:
          description: The status of the invoice.
          enum:
          - OPEN
          - PAID
          - OVERDUE
          - CANCELLED
          type: string
        credits:
          description: Array of Credits
          items:
            $ref: '#/components/schemas/credit'
          type: array
        lineItems:
          description: All the line items attached to the invoice
          items:
            $ref: '#/components/schemas/lineItem'
          type: array
      type: object
    getInvoicesExportCsvResult:
      description: 'CSV file containing invoice data with the following columns:

        - Invoice number

        - Date (UTC)

        - Status

        - Open amount

        - Total

        '
      format: binary
      type: string
    lineItem:
      example:
        fromDate: fromDate
        totalAmount: 2.302136
        product: product
        quantity: 7
        toDate: toDate
        contractId: contractId
        unitAmount: 5.637377
        equipmentId: equipmentId
      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
    errorResult:
      example:
        errorMessage: errorMessage
        errorCode: errorCode
        correlationId: correlationId
        errorDetails:
          key:
          - errorDetails
          - errorDetails
      properties:
        correlationId:
          description: The correlation ID of the current request.
          type: string
        errorCode:
          description: The error code.
          type: string
        errorMessage:
          description: A human friendly description of the error.
          type: string
        errorDetails:
          additionalProperties:
            items:
              type: string
            type: array
          title: errorDetails
          type: object
      type: object
    getProformaResult:
      example:
        contractItems:
        - reference: reference
          product: product
          endDate: endDate
          price: 0.8008282
          contractId: contractId
          currency: EUR
          equipmentId: equipmentId
          poNumber: poNumber
          startDate: startDate
        - reference: reference
          product: product
          endDate: endDate
          price: 0.8008282
          contractId: contractId
          currency: EUR
          equipmentId: equipmentId
          poNumber: poNumber
          startDate: startDate
        proformaDate: '2020-06-01T00: 00: 00+00: 00'
        total: 352.55
        currency: EUR
        subTotal: 300.04
        _metadata:
          offset: 0
          limit: 5
          totalCount: 2
        vatAmount: 52.51
      properties:
        proformaDate:
          description: The date of the next invoice on which this proforma is based on. (UTC)
          example: '2020-06-01T00: 00: 00+00: 00'
          type: string
        total:
          description: Total amount which will be invoiced the upcoming month.
          example: 352.55
          format: float
          type: number
        subTotal:
          description: Total amount without vat which will be invoiced the upcoming month.
          example: 300.04
          format: float
          type: number
        vatAmount:
          description: The total amount of tax.
          example: 52.51
          format: float
          type: number
        currency:
          description: The currency of the service price
          enum:
          - EUR
          - GBP
          - USD
          - SGD
          - AUD
          - HKD
          example: EUR
          type: string
        contractItems:
          description: Array of contract items
          items:
            $ref: '#/components/schemas/lineItem_1'
          type: array
        _metadata:
          $ref: '#/components/schemas/_metadata'
      type: object
    _metadata:
      description: Metadata about the collection
      example:
        offset: 0
        limit: 5
        totalCount: 2
      properties:
        totalCount:
          description: Total amount of elements in this collection
          example: 2
          minimum: 0
          type: integer
        offset:
          default: 0
          description: The offset used to generate this response
          example: 0
          minimum: 0
          type: integer
        limit:
          default: 5
          description: The limit used to generate this response
          example: 5
          minimum: 0
          type: integer
      required:
      - limit
      - offset
      - totalCount
      title: metadata
      type: object
    getInvoicesResult:
      example:
        invoices:
        - date: date
          total: 1.4658129
          netAmount: 6.0274563
          dueDate: dueDate
          isPartialPaymentAllowed: true
          currency: EUR
          id: id
          taxAmount: 0.8008282
          openAmount: 5.962134
          status: OPEN
        - date: date
          total: 1.4658129
          netAmount: 6.0274563
          dueDate: dueDate
          isPartialPaymentAllowed: true
          currency: EUR
          id: id
          taxAmount: 0.8008282
          openAmount: 5.962134
          status: OPEN
        _metadata:
          offset: 0
          limit: 5
          totalCount: 2
      properties:
        invoices:
          description: Array of Invoices
          items:
            $ref: '#/components/schemas/invoice'
          type: array
        _metadata:
          $ref: '#/components/schemas/_metadata'
      type: object
    getInvoicePdfResult:
      format: binary
      type: string
    credit:
      example:
        date: date
        total: 5.962134
        netAmount: 1.4658129
        id: id
        taxAmount: 6.0274563
      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
  securitySchemes:
    BearerAuth:
      scheme: bearer
      type: http
    X-LSW-Auth:
      description: API key authentication by setting `X-LSW-Auth` header.
      in: header
      name: X-LSW-Auth
      type: apiKey
x-refined-from:
- leaseweb-invoice-openapi.yaml
- leaseweb-invoice-openapi.yml