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

# List payouts

> Every SPEI transfer Compago sent to your bank accounts, newest first. A transfer that failed and was sent again appears twice, once per attempt.



## OpenAPI

````yaml GET /developer/v1/payout
openapi: 3.1.0
info:
  title: Compago API
  version: 1.0.0
  description: >-
    Public and private API endpoints for Compago's payment infrastructure. This
    specification currently includes endpoints for one-time payments. More
    endpoints will be added as the platform evolves.
servers:
  - url: https://demo-api-harmony.compago.com/api
  - url: https://api-harmony.compago.com/api
security: []
tags:
  - name: OneTimePayment
    description: Endpoints for creating and processing one-time payment links
  - name: PaymentMethod
    description: >-
      Endpoints for saving cards, charging saved payment methods, holding and
      capturing funds, and processing refunds
  - name: PaymentIntent
    description: >-
      Endpoints for creating and managing card-present payment intents for POS
      terminal integrations
  - name: Payments
    description: Read the payments your organization has taken
  - name: Subscriptions
    description: Read and manage recurring billing agreements
  - name: PaymentLinks
    description: Create, edit and retire hosted checkout links
  - name: Products
    description: Manage the catalogue behind product-based payment links
  - name: Promotions
    description: Read the promotions your organization funds or benefits from
  - name: Salespeople
    description: Read the point-of-sale operators in your organization
  - name: Organization
    description: Read your organization profile and its members
  - name: SavedCards
    description: Read saved payment methods and their payments
  - name: Payouts
    description: >-
      Read the transfers Compago sent to your bank accounts and what each one
      paid
  - name: Events
    description: >-
      Read the webhook events of the last 30 days, to reconcile after your
      endpoint was down
  - name: ApiKeys
    description: Manage your organization's API keys with a key that holds `apiKey:write`.
paths:
  /developer/v1/payout:
    get:
      tags:
        - Payouts
      summary: List payouts
      description: >-
        Every SPEI transfer Compago sent to your bank accounts, newest first. A
        transfer that failed and was sent again appears twice, once per attempt.
      operationId: listPublicPayouts
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          description: Rows per page. Values above 100 are rejected.
        - name: cursor
          in: query
          schema:
            type: string
          description: >-
            Opaque cursor from a previous response's `pagination.nextCursor`.
            Omit for the first page.
        - name: status
          in: query
          schema:
            oneOf:
              - type: string
                enum:
                  - SCHEDULED
                  - IN_TRANSIT
                  - PAID
                  - FAILED
                  - RETURNED
                  - IN_REVIEW
              - type: array
                items:
                  type: string
                  enum:
                    - SCHEDULED
                    - IN_TRANSIT
                    - PAID
                    - FAILED
                    - RETURNED
                    - IN_REVIEW
          description: 'Repeat for several: `?status=FAILED&status=RETURNED`.'
        - name: bankAccountId
          in: query
          schema:
            type: string
            format: uuid
          description: >-
            Only the transfers sent to this account, from `GET
            /developer/v1/bank-account`.
        - name: paymentId
          in: query
          schema:
            type: string
            format: uuid
          description: Only the transfers that paid this sale.
        - name: createdAtFrom
          in: query
          schema:
            type: string
            format: date-time
          description: Inclusive lower bound on when the payout was created.
        - name: createdAtTo
          in: query
          schema:
            type: string
            format: date-time
          description: Inclusive upper bound on when the payout was created.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PublicPayout'
                  pagination:
                    $ref: '#/components/schemas/PublicPagination'
                required:
                  - data
                  - pagination
        '400':
          description: Invalid request. A query parameter failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '401':
          description: Unauthorized. The `x-api-key` header is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '403':
          description: >-
            Forbidden. The key is not bound to an organization, or the
            organization is not a merchant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '429':
          description: >-
            Rate limit exceeded. See the `Retry-After` and `X-RateLimit-*`
            headers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PublicPayout:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - SCHEDULED
            - IN_TRANSIT
            - PAID
            - FAILED
            - RETURNED
            - IN_REVIEW
          description: >-
            `SCHEDULED`: waiting to be sent. `IN_TRANSIT`: sent, not confirmed.
            `PAID`: deposited. `FAILED`: the bank refused it. `RETURNED`: it
            came back. `IN_REVIEW`: Compago confirms a return or rejection by
            hand. A failed or returned transfer is sent again as a new payout.
        amount:
          type: number
          description: What the settlements in this payout owe you.
        feeAmount:
          type: number
          description: >-
            What sending the money early cost. `0` on a transfer sent on
            schedule.
        netAmount:
          type: number
          description: '`amount - feeAmount`: what lands in your bank account.'
        currency:
          type: string
          enum:
            - MXN
        trackingKey:
          type:
            - string
            - 'null'
          description: >-
            The SPEI clave de rastreo. `null` until the bank assigns it, and on
            a transfer Compago settled by hand.
        bankAccountId:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The account the money was sent to, from `GET
            /developer/v1/bank-account`. `null` on payouts from before a
            business could have several accounts.
        periodFrom:
          type: string
          format: date-time
          description: Start of the sales period this payout pays.
        periodTo:
          type: string
          format: date-time
          description: End of the sales period this payout pays, exclusive.
        paidAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When the transfer happened, by the bank's clock when it gave one.
            Only on `PAID`.
        returnReason:
          type:
            - string
            - 'null'
          description: >-
            Why the bank refused or returned the transfer. Only on `FAILED` and
            `RETURNED`.
        returnReasonCode:
          type:
            - string
            - 'null'
          description: >-
            The SPEI code of that reason, zero padded. Only on `FAILED` and
            `RETURNED`.
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - status
        - amount
        - feeAmount
        - netAmount
        - currency
        - trackingKey
        - bankAccountId
        - periodFrom
        - periodTo
        - paidAt
        - returnReason
        - returnReasonCode
        - createdAt
    PublicPagination:
      type: object
      properties:
        limit:
          type: integer
          description: Rows requested for this page.
        hasMore:
          type: boolean
          description: Whether another page exists.
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass as `?cursor=` to fetch the next page. Null on the last page.
      required:
        - limit
        - hasMore
        - nextCursor
    PublicError:
      type: object
      properties:
        message:
          type: string
          description: Human-readable description.
        code:
          type: string
          description: Stable machine-readable code. Branch on this, not on `message`.
      required:
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.