---
title: "Sales by customer report"
method: GET
path: "/report/sales-by-customer"
tags: ["Report"]
---

# Sales by customer report

`GET /report/sales-by-customer`

## Request

- Base URL: `https://demo.onlinebillingform.com/api/v2`
- URL: `https://demo.onlinebillingform.com/api/v2/report/sales-by-customer`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/b-cdn/apis/billingserv-api-v2/docs/report/sales-by-customer/get.ts> (a function with typed inputs; its response is checked against the schema)

Use this BillingServ API endpoint to sales by customer report. Review the response for the operation result or validation errors.

## Query parameters

- `timeframe` 'yearly' | 'monthly' | 'daily'
- `date` string, date
- `per_page` integer

## Response `200`

OK

- ApiResponse
  - `success` boolean

## Other responses

- `401`: Missing or invalid API key
- `403`: Authenticated key does not have permission for this endpoint
- `422`: Validation error

## Changes

- **2026-08-22** `6b9208b64456`: 6 info
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `403` status
  - added the optional property `code` to the response with the `422` status
  - added the optional property `request_id` to the response with the `401` status
  - …2 more

[Operation history](https://skmtc.dev/b-cdn/apis/billingserv-api-v2/changes/report/sales-by-customer/get.md)

---

[API](https://skmtc.dev/b-cdn/apis/billingserv-api-v2.md) - [All operations](https://skmtc.dev/b-cdn/apis/billingserv-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/b-cdn/apis/billingserv-api-v2/revisions/232ab5ca8413?raw)
