Invoices

Invoice summary

Get summary of invoices for the authenticated team.

get/invoices/summary

Request

  • Base URL
    https://api.midday.ai
  • URL
    https://api.midday.ai/invoices/summary
  • Auth
    • OAuth 2
      Authorization code: https://app.midday.ai/oauth/authorize
      Token URL: https://api.midday.ai/oauth/token
    • or HTTP bearer

Query parameters

statusesstring[]

Filter summary by invoice statuses

[
  "draft",
  "unpaid"
]

Response

Summary of invoices for the authenticated team.

currencystring required

Base currency of the team

totalAmountnumber required

Total amount of all invoices converted to base currency

invoiceCountnumber required

Total number of invoices

Example response

{
  "currency": "USD",
  "totalAmount": 224171.25,
  "invoiceCount": 15,
  "breakdown": [
    {
      "currency": "EUR",
      "originalAmount": 15000.5,
      "convertedAmount": 16250.75,
      "count": 5
    },
    {
      "currency": "GBP",
      "originalAmount": 8000.25,
      "convertedAmount": 9200.5,
      "count": 3
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.