Amazon Billing And Cost Management Billing And Cost Management Source View API

The Billing And Cost Management Source View API from Amazon Billing And Cost Management — 3 operation(s) for billing and cost management source view.

GitHub OpenAPI

Operations 3

POST /#AssociateSourceViews Associate Source Views #
POST /#DisassociateSourceViews Disassociate Source Views #
POST /#ListSourceViewsForBillingView List Source Views For Billing View #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-billing-and-cost-management:amazon-billing-and-cost-management-source-view-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-billing-and-cost-management-source-view-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Cost Explorer Service Source View API
  version: '2017-10-25'
  description: Generated from AWS's published Smithy model for AWS Cost Explorer Service. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://billing.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#AssociateSourceViews:
    post:
      operationId: AssociateSourceViews
      summary: Associate Source Views
      description: Associates one or more source billing views with an existing billing view. This allows creating aggregate
        billing views that combine data from multiple sources.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AssociateSourceViewsResponse'
              example:
                arn: arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BillingViewHealthStatusException; ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/BillingBillingViewHealthStatusException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/BillingResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/BillingServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSBilling.AssociateSourceViews
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/AssociateSourceViewsRequest'
            example:
              arn: arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899
              sourceViews:
              - arn:aws:billing::123456789012:billingview/primary
              - arn:aws:billing::123456789012:billingview/custom-d3f9c7e4-8b2f-4a6e-9d3b-2f7c8a1e5f6d
      tags:
      - Source View
  /#DisassociateSourceViews:
    post:
      operationId: DisassociateSourceViews
      summary: Disassociate Source Views
      description: Removes the association between one or more source billing views and an existing billing view. This allows
        modifying the composition of aggregate billing views.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/DisassociateSourceViewsResponse'
              example:
                arn: arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BillingViewHealthStatusException; ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/BillingBillingViewHealthStatusException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/BillingResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSBilling.DisassociateSourceViews
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/DisassociateSourceViewsRequest'
            example:
              arn: arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899
              sourceViews:
              - arn:aws:billing::123456789012:billingview/primary
              - arn:aws:billing::123456789012:billingview/custom-d3f9c7e4-8b2f-4a6e-9d3b-2f7c8a1e5f6d
      tags:
      - Source View
  /#ListSourceViewsForBillingView:
    post:
      operationId: ListSourceViewsForBillingView
      summary: List Source Views For Billing View
      description: Lists the source views (managed Amazon Web Services billing views) associated with the billing view.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ListSourceViewsForBillingViewResponse'
              example:
                sourceViews:
                - arn:aws:billing::123456789101:billingview/primary
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/BillingResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSBilling.ListSourceViewsForBillingView
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/ListSourceViewsForBillingViewRequest'
            example:
              arn: arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899
      tags:
      - Source View
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: billing
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    AssociateSourceViewsRequest:
      type: object
      properties:
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the billing view to associate source views with.
        sourceViews:
          type: array
          items:
            type: string
          description: A list of ARNs of the source billing views to associate.
      required:
      - arn
      - sourceViews
    AssociateSourceViewsResponse:
      type: object
      properties:
        arn:
          type: string
          description: The ARN of the billing view that the source views were associated with.
      required:
      - arn
    BillingBillingViewHealthStatusException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    BillingResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: Value is a list of resource IDs that were not found.
        resourceType:
          type: string
          description: Value is the type of resource that was not found.
      required:
      - message
      - resourceId
      - resourceType
    BillingServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: The ID of the resource.
        resourceType:
          type: string
          description: The type of Amazon Web Services resource.
        serviceCode:
          type: string
          description: The container for the serviceCode.
        quotaCode:
          type: string
          description: The container for the quotaCode.
      required:
      - message
      - resourceId
      - resourceType
      - serviceCode
      - quotaCode
    ConflictException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: The identifier for the service resource associated with the request.
        resourceType:
          type: string
          description: The type of resource associated with the request.
      required:
      - message
      - resourceId
      - resourceType
    DisassociateSourceViewsRequest:
      type: object
      properties:
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the billing view to disassociate source views from.
        sourceViews:
          type: array
          items:
            type: string
          description: A list of ARNs of the source billing views to disassociate.
      required:
      - arn
      - sourceViews
    DisassociateSourceViewsResponse:
      type: object
      properties:
        arn:
          type: string
          description: The ARN of the billing view that the source views were disassociated from.
      required:
      - arn
    InternalServerException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ListSourceViewsForBillingViewRequest:
      type: object
      properties:
        arn:
          type: string
          description: The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
        maxResults:
          type: integer
          description: The number of entries a paginated response contains.
        nextToken:
          type: string
          description: The pagination token that is used on subsequent calls to list billing views.
      required:
      - arn
    ListSourceViewsForBillingViewResponse:
      type: object
      properties:
        sourceViews:
          type: array
          items:
            type: string
          description: A list of billing views used as the data source for the custom billing view.
        nextToken:
          type: string
          description: The pagination token that is used on subsequent calls to list billing views.
      required:
      - sourceViews
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ValidationException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - unknownOperation
          - cannotParse
          - fieldValidationFailed
          - other
          description: The input fails to satisfy the constraints specified by an Amazon Web Services service.
        fieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
          description: The input fails to satisfy the constraints specified by an Amazon Web Services service.
      required:
      - message
      - reason
    ValidationExceptionField:
      type: object
      properties:
        name:
          type: string
          description: The name of the field.
        message:
          type: string
          description: The message describing why the field failed validation.
      required:
      - name
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/billing/service/2023-09-07/billing-2023-09-07.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)