---
title: "Get Pay As You Go Billing"
method: GET
path: "/v4/organizations/{organizationId}/billing/payAsYouGo"
tags: ["Billing"]
---

# Get Pay As You Go Billing

`GET /v4/organizations/{organizationId}/billing/payAsYouGo`

Retrieves pay-as-you-go billing information for the organization within the specified date range, broken down by support plan type.

In order to access this endpoint, the provided API key must have at least one of the following roles:
- Organization Owner

To learn more, see [Organization, Project, and Database Access Overview](https://docs.couchbase.com/cloud/organizations/organization-projects-overview.html).

## Query parameters

- `startDate` string, date
- `endDate` string, date

## Response `200`

Successfully retrieved the pay-as-you-go billing information.

- PayAsYouGoResponse
  - `data` object, required — The pay-as-you-go billing data.
    - `periods` PayAsYouGoPeriod[], required — List of billing periods within the specified date range. Each period represents a single month.
      - `startDate` string, date, required — The start date of this billing period.
      - `endDate` string, date, required — The end date of this billing period.
      - `cost` PayAsYouGoCost, required — Cost breakdown by support plan type.
        - `basic` number, double, required — Cost for Basic support plan.
        - `devPro` number, double, required — Cost for Developer Pro support plan.
        - `enterprise` number, double, required — Cost for Enterprise support plan.
      - `total` number, double, required — Total cost for this period across all support plans.
    - `total` PayAsYouGoTotal, required — Aggregate totals for pay-as-you-go billing across all periods.
      - `startDate` string, date, required — The start date of the overall billing range.
      - `endDate` string, date, required — The end date of the overall billing range.
      - `cost` PayAsYouGoCost, required — Cost breakdown by support plan type.
        - `basic` number, double, required — Cost for Basic support plan.
        - `devPro` number, double, required — Cost for Developer Pro support plan.
        - `enterprise` number, double, required — Cost for Enterprise support plan.
      - `total` number, double, required — Total cost across all periods and support plans.
    - `billingCurrency` string, required — The currency used for billing.

## Other responses

- `400` — Returned when we are unable to decode the recevied payload.
- `403` — The client does not have the necessary permissions to access this resource.
- `404` — The requested resource was not found.
- `422` — Request validation error.
- `429` — Returned when the client exceeds the rate limit for the given APIKey.
- `500` — An unexpected error occurred in the server while processing this request.

---

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