> ## 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 a payout's lines

> What a payout is made of, oldest first: its sales, same-day refunds that keep their fee, refund balance movements, the early release fee and the rounding adjustment. The `net` of every line, over every page, adds up to the payout's `netAmount`.



## OpenAPI

````yaml GET /developer/v1/payout/{id}/line
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}/line:
    get:
      tags:
        - Payouts
      summary: List a payout's lines
      description: >-
        What a payout is made of, oldest first: its sales, same-day refunds that
        keep their fee, refund balance movements, the early release fee and the
        rounding adjustment. The `net` of every line, over every page, adds up
        to the payout's `netAmount`.
      operationId: listPublicPayoutLines
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - 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.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PublicPayoutLine'
                  pagination:
                    $ref: '#/components/schemas/PublicPagination'
                required:
                  - data
                  - pagination
        '400':
          description: Invalid request. A 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'
        '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:
    PublicPayoutLine:
      type: object
      description: >-
        One line of a payout. For every line, `net = amount - refundedAmount -
        fee - tax - promotionShare`.
      properties:
        type:
          type: string
          enum:
            - PAYMENT
            - REFUND
            - BALANCE_RECOVERY
            - BALANCE_CARRY
            - EARLY_RELEASE_FEE
            - ADJUSTMENT
          description: >-
            `PAYMENT`: a sale. `REFUND`: a sale refunded before it settled whose
            fee is kept. `BALANCE_RECOVERY`: taken from this payout to pay back
            your refund balance (negative). `BALANCE_CARRY`: what a day could
            not cover, carried to your balance (positive). `EARLY_RELEASE_FEE`:
            the fee for sending early (negative). `ADJUSTMENT`: the rounding
            that makes the lines add up exactly.
        paymentId:
          type:
            - string
            - 'null'
          format: uuid
          description: The sale, on `PAYMENT` and `REFUND` lines. `null` on the others.
        amount:
          type: number
          description: >-
            On a sale, what the customer was charged, tip included. On the other
            lines, the movement itself.
        refundedAmount:
          type: number
          description: What went back to the customer. Only non-zero on `REFUND`.
        fee:
          type: number
          description: Compago's commission on the sale, before IVA.
        tax:
          type: number
          description: The IVA on that commission.
        promotionShare:
          type: number
          description: >-
            The part of the sale a promotion's sponsor took for funding its
            months without interest. `0` without a promotion.
        net:
          type: number
          description: What this line adds to, or takes from, the payout.
        createdAt:
          type: string
          format: date-time
          description: >-
            When the sale was made, or when the settlement or the payout that
            produced the line was created.
      required:
        - type
        - paymentId
        - amount
        - refundedAmount
        - fee
        - tax
        - promotionShare
        - net
        - 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.