---
title: "Get billing A/R aging buckets"
method: GET
path: "/admin/billing/finance/aging"
tags: ["Billing"]
---

# Get billing A/R aging buckets

`GET /admin/billing/finance/aging`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/admin/billing/finance/aging`
- Auth: API key in header `x-api-key`

Admin-only endpoint that buckets current outstanding invoice balances by effective due date using 0-30, 31-60, 61-90, and 91+ day windows.

## Query parameters

- `as_of` string
- `plan` 'Free' | 'Starter' | 'Growth' | 'Pro' | 'Business' | 'Enterprise' | 'Admin'
- `exclude_test_accounts` boolean

## Headers

- `x-api-key` string, required

## Response `200`

Billing A/R aging buckets

- BillingBillingFinanceAgingResponseDoc
  - `code` integer
  - `data` BillingBillingFinanceAgingBucketDoc[]
    - `amount_remaining_cents` integer
    - `bucket` string
    - `invoice_count` integer
  - `msg` string

## Other responses

- `400`: Invalid query parameters
- `401`: Authentication required
- `403`: Admin plan required
- `500`: Internal server error

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
