Invoice

List All Invoices

Changed on

List all invoice data

get/billing/v1/invoices

Request

Query parameters

countstring

Number of results to fetch. Used for paging.

excludeFreeboolean

Exclude invoices with no charges.

fromDatenumber

From date.

sortField'DATE' | 'INVOICE_ID' | 'TOTAL'

Sort field.

sortOrder'ASC' | 'DESC'

Sort order.

startstring

First result index. Used for paging.

status'CARRIED' | 'PAID' | 'UNPAID' | 'VOIDED'

Invoice status.

toDatenumber

To date.

buyerRole'ALL' | 'CUSTOMER' | 'RESELLER' | 'SALES_SUPPORT'

Filter invoices with purchases made by user with this role.

Response

OK

creationDatenumber nullable

Creation date for the invoice.

orderIdsstring[]

Array of Order IDs

currency'USD' | 'CAD' | 'EUR' | 'JPY' | 'GBP' | 'KRW' | 'CHF' | 'SEK' | 'SGD' | 'MYR' | 'AUD' | 'MXN' | 'INR' | 'BRL' | 'DKK' | 'NZD' | 'NOK' | 'ZAR' | 'PHP' | 'CNY' | 'SAR' | 'GTQ' | 'IDR' | 'ARS' | 'COP' | 'PEN'

Supported currencies for the system

dueDatenumber nullable

Due date for the invoice.

invoiceIdnumber nullable

Invoice ID.

referenceNumberstring nullable

Reference number.

status'PAID' | 'UNPAID' | 'CARRIED' | 'VOIDED'
totalnumber nullable

Invoice total.

Example response

[
  {
    "company": {
      "href": "...",
      "id": "..."
    },
    "creationDate": 12345,
    "currency": "DKK",
    "dueDate": 12345,
    "invoiceId": 12345,
    "links": [
      {
        "href": "...",
        "rel": "..."
      },
      {
        "href": "...",
        "rel": "..."
      }
    ],
    "referenceNumber": "...",
    "status": "PAID",
    "total": 12345,
    "user": {
      "href": "...",
      "id": "..."
    }
  }
]

Changes