> ## 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

> All payments related to a project



## OpenAPI

````yaml get /payments/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/v0:
    get:
      summary: Get payments 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/PaymentsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    PaymentsResponse:
      type: object
      properties:
        payments:
          type: array
          items:
            $ref: '#/components/schemas/Payment'
      required:
        - payments
    Payment:
      type: object
      properties:
        id:
          type: string
          format: uuid
        participantId:
          type: string
        gender:
          type: string
          enum:
            - MALE
            - FEMALE
        location:
          type: string
        paymentDate:
          type: string
          format: date
        amount:
          type: string
        hectares:
          type: number
        co2Impact:
          type: string
          example: 123.45
        status:
          type: string
      required:
        - id
        - participantId
        - gender
        - location
        - paymentDate
        - amount
        - hectares
        - status
    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'

````