---
title: "Setup Billing Engine"
method: POST
path: "/cloudBilling/v1/setup/account"
tags: ["Accounts"]
---

# Setup Billing Engine

`POST /cloudBilling/v1/setup/account`

Sets up and enables Billing Engine functionality on a Spot account. The Spot account must already have credentials and be linked to a valid cloud provider account (e.g. AWS account, Azure billing account, etc).

## Request body

- object
  - `accountId` string, required — Spot Account ID.
  - `config` union — Configuration for the Billing Engine (e.g. location of the billing data)
    - object
    - object — Configuration settings used to collect AWS billing data. The target Spot account must be linked to an AWS account with billing data (e.g. master payer account).
      - `billingSource` object, required — Configuration settings used to collect AWS billing data.
        - `bucket` string, required — The name of the AWS S3 bucket where the AWS CUR is stored.
        - `region` string, required — The AWS buckets AWS region (e.g. us-east-1).
        - `pathPrefix` string, required — The prefix path and report name generated for the AWS CUR you configured.
    - object — Configuration settings used to collect Azure billing data. The target Spot account must be linked to an Azure billing account.
    - object — Configuration settings used to collect Google billing data. The target Spot account must be linked to a Google project where the billing data is exported.
      - `googleBillingConfiguration` object, required — Configuration settings used to collect Google billing data.
        - `tableId` string, required — The BigQuery table ID that is used to export the billing data.
        - `datasetId` string, required — The BigQuery dataset ID that is used to export the billing data.
        - `projectId` string, required — The Google project ID that is used to export the billing data.

## Other responses

- `400` — Invalid request error response. Adjust the request before retrying.
- `404` — Not found error response. The requested resource does not exist.
- `422` — Error response.

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
