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

# Get a payout

> One transfer.



## OpenAPI

````yaml GET /developer/v1/payout/{id}
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/{id}:
    get:
      tags:
        - Payouts
      summary: Get a payout
      description: One transfer.
      operationId: getPublicPayout
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicPayout'
        '400':
          description: Invalid request. The id is not a UUID.
          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'
        '404':
          description: Not found, or the resource belongs to another organization.
          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
    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.