---
title: "Save Usage Lines with an Aggregate Partner Quantity"
method: POST
path: "/aggregate-lines"
tags: ["Usage Lines"]
---

# Save Usage Lines with an Aggregate Partner Quantity

`POST /aggregate-lines`

A `subscriptionId` OR an `externalSubscriptionId` is required

## Query parameters

- `subscriptionId` string, uuid
- `externalSubscriptionId` string
- `billingPeriod` string, required
- `overwriteSameDayUsage` boolean

## Request body

- AggregateUsageLine[] — `summaryKey` and `summaryDisplayName` must be 255 characters or less.
  - `summaryKey` string, required
  - `summaryDisplayName` string, required
  - `quantity` number, required
  - `productId` string, uuid, required
  - `unitOfMeasurement` string, required
  - `partnerAggregateQuantity` number, required — Partner aggregate quantity. Must be non-negative.

## Response `200`

OK

---

[API](https://skmtc.dev/pax8/apis/authentication.md) · [All operations](https://skmtc.dev/pax8/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pax8/authentication/revisions/4026bf405528/schema)
