# Get charts by deployment. Currently unavailable in self-hosted ECE. **GET /billing/costs/{organization_id}/deployments/{deployment_id}/charts** Retrieves the usage charts for the given deployment. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Path parameters - **organization_id** (string) Identifier for the organization - **deployment_id** (string) Id of a Deployment ### Query parameters - **from** (string) A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month. - **to** (string) A datetime for the end of the desired range for which to fetch costs. Defaults to the current date. - **bucketing_strategy** (string) The desired bucketing strategy for the charts. Defaults to `daily`. ## Responses ### 200 The usage charts of a deployment. #### Body: application/json (object) - **data** (array[object]) The list of chart item ### 400 The specified date range is invalid. (code: `costs.invalid_date_range`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request ### 403 The current user does not have access to the requested organization. (code: `organization.invalid_access`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request ### 404 Organization not found. (code: `organization.not_found`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request ### 429 Too many requests. (code: `billing_service.rate_limited`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request ### 500 Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request [Powered by Bump.sh](https://bump.sh)