# Get deployments costs for the organization. Currently unavailable in self-hosted ECE. **GET /billing/costs/{organization_id}/deployments** Retrieves the costs associated with all deployments for the organization. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Headers - **Accept** (string) Accept header containing the content preference. ### Path parameters - **organization_id** (string) Identifier for the organization ### Query parameters - **from** (string) A datetime for the beginning of the desired range for which to fetch activity. Defaults to start of current month. - **to** (string) A datetime for the end of the desired range for which to fetch activity. Defaults to the current date. ## Responses ### 200 The costs associated to a set of products #### Body: application/json (object) - **total_cost** (number(double)) Total cost for all deployments - **deployments** (array[object]) Costs of the list of deployments ### 400 Invalid date range specified. (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 ### 500 An error occurred when fetching the costs associated with all deployments 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)