--- title: "Get recent billing periods" slug: "get-recent-billing-periods" updated: 2026-10-06T13:27:33Z published: 2026-10-06T13:27:33Z canonical: "docs.cspcontrolcenter.com/get-recent-billing-periods" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.cspcontrolcenter.com/llms.txt > Use this file to discover all available pages before exploring further. # Get recent billing periods Retrieves the nine most recent billing periods in reverse chronological order, with the most recent billing period returned first. ## Endpoint ```custom {{apiUrl}}/api/billingperiods ``` ## Endpoint Parameters | Parameter | Required | Description | | --- | --- | --- | | `{{apiUrl}}` | Yes | C3 Portal API URL. | ## Request Headers | Header | Value | | --- | --- | | Authorization | Bearer | | Content-Type | application/json | ## Request Body No request body is required for this endpoint. ## Successful Response A successful request returns a list of billing periods available for reporting, invoicing, and consumption-related operations. ### Sample Response ```json { "OperationType": null, "Status": "Success", "RequestCorrelationID": "73e71bda-50b5-49a0-a70e-a000af402487", "ErrorMessage": null, "ErrorDetail": null, "Data": [ { "ID": 24, "StartDate": "2022-05-16T00:00:00", "EndDate": "2022-06-15T00:00:00", "BillingId": "20220618" }, { "ID": 23, "StartDate": "2022-04-16T00:00:00", "EndDate": "2022-05-15T00:00:00", "BillingId": "20220518" } ] } ``` ### Response Properties | Property | Description | | --- | --- | | OperationType | Reserved for internal use. Can be ignored. | | Status | Indicates the result of the request. Possible values: Success, Error. | | RequestCorrelationID | Unique identifier generated by C3 for request tracking and troubleshooting. | | ErrorMessage | Contains the error message if request processing fails. | | ErrorDetail | Contains additional error information. | | Data | Collection of billing period records. | ### Billing Period Attributes | Attribute | Description | | --- | --- | | ID | Unique identifier of the billing period. | | StartDate | Start date of the billing period. | | EndDate | End date of the billing period. | | BillingId | Friendly representation of the billing period. This value corresponds to the invoice generation date in **yyyyMMdd** format. | Note The API returns the nine most recent billing periods in reverse chronological order, with the latest billing period appearing first in the response. ## Error Response The API validates the request and authorization context before processing the request. If the request cannot be processed, an appropriate error response is returned.