---
title: "Returns billing costs aggregated per customer, ranked by cost."
method: GET
path: "/billing/costs/customers"
tags: ["Billing"]
---

# Returns billing costs aggregated per customer, ranked by cost.

`GET /billing/costs/customers`

## Query parameters

- `startDate` string, date-time
- `endDate` string, date-time
- `page` integer
- `pageSize` integer
- `customerId` string, uuid
- `customerMail` string
- `organizationId` string
- `includeNonBillable` boolean

## Response `200`

OK

- QueryCostsByCustomerEndpointPagedResultOfOutput
  - `total` integer, required
  - `page` integer, required
  - `pageSize` integer, required
  - `items` QueryCostsByCustomerEndpointOutput[], required
    - `customerId` string, uuid, required — The customer identifier.
    - `customerMail` string, required — The customer email.
    - `grossCost` number, double, required — The gross cost for this customer (before discount).
    - `discount` number, double, required — The discount for this customer.
    - `netCost` number, double, required — The net cost for this customer (after discount).
    - `responseCount` integer, required — The total number of responses for this customer.
  - `totalPages` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/revisions/5f993bd211f5/schema)
