> ## Documentation Index
> Fetch the complete documentation index at: https://docs.terraspect.earth/llms.txt
> Use this file to discover all available pages before exploring further.

# Payments Flow

> Get payments flow for the project



## OpenAPI

````yaml get /payments/flows/v0
openapi: 3.0.0
info:
  title: Terraspect API
  version: 0.0.2
servers:
  - url: https://api.terraspect.earth
    description: Production server
security: []
tags:
  - name: Projects
    description: Endpoints for retrieving project and developer information
  - name: Impact
    description: Endpoints for accessing impact and community metrics
  - name: Financials
    description: Endpoints for accessing financial data (some require extended permissions)
paths:
  /payments/flows/v0:
    get:
      summary: Get payments flow data for the project
      parameters:
        - name: project_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentsFlowResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    PaymentsFlowResponse:
      type: object
      properties:
        netCo2Removed:
          type: string
        pricePerCredit:
          type: string
        revenue:
          type: string
        projectCosts:
          type: string
        netRevenue:
          type: string
        tax:
          type: string
        revenueSplit:
          $ref: '#/components/schemas/RevenueSplit'
      required:
        - netCo2Removed
        - pricePerCredit
        - revenue
        - projectCosts
        - netRevenue
        - tax
        - revenueSplit
    RevenueSplit:
      type: object
      properties:
        community:
          type: string
        developer:
          type: string
        implementer:
          type: string
      required:
        - community
        - developer
        - implementer
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
  responses:
    BadRequest:
      description: Submitted request is not valid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Auth required endpoint was called without auth token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: User cannot perform requested action
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Something went wrong and there was not specific mapper for the exception
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'

````