Reports

Spending reports

Spending reports for the authenticated team.

get/reports/spending

Request

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

Query parameters

fromstring required

Start date (ISO 8601 format)

Example:2023-01-01
tostring required

End date (ISO 8601 format)

Example:2023-12-31
currencystring

Currency code (ISO 4217)

Example:USD

Response

Spending reports for the authenticated team.

namestring required

Spending category name

slugstring required

Spending category slug

amountnumber required

Amount spent in this category

currencystring required

Currency code (ISO 4217)

colorstring required

Color code for the category

percentagenumber required

Percentage of total spending for this category

Example response

[
  {
    "name": "Taxes",
    "slug": "taxes",
    "amount": -1256445,
    "currency": "SEK",
    "color": "#8492A6",
    "percentage": 44
  }
]

Changes

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