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

# Get payouts

> Fetch all payouts for your organization.



## OpenAPI

````yaml https://api.onsleek.ai/openapi.json get /v1/deals/payouts
openapi: 3.0.0
info:
  version: 1.0.0
  title: Sleek API
  description: API documentation for Sleek's API.
servers:
  - url: https://api.onsleek.ai
security:
  - api-key: []
paths:
  /v1/deals/payouts:
    get:
      tags:
        - Payouts
      summary: Get payouts
      description: Fetch all payouts for your organization.
      responses:
        '200':
          description: List of payouts.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: number
                      description: The unique identifier for the payout.
                      example: 12345
                    totalTransactions:
                      type: number
                      description: The total number of transactions included in the payout.
                      example: 100
                    totalGmv:
                      type: number
                      description: >-
                        The total order value (`orderValue`) of the transactions
                        included in the payout.
                      example: 5000
                    aov:
                      type: number
                      description: >-
                        The average order value of the transactions included in
                        the payout. Calculated as `totalGmv /
                        totalTransactions`.
                      example: 50
                    totalCashback:
                      type: number
                      description: >-
                        The total cashback amount of the transactions included
                        in the payout.
                      example: 500
                    confirmedTransactions:
                      type: number
                      description: >-
                        The number of transactions that have been confirmed
                        (transaction status is `CONFIRMED`).
                      example: 80
                    declinedTransactions:
                      type: number
                      description: >-
                        The number of transactions that have been declined
                        (transaction status is `DECLINED`).
                      example: 10
                    pendingTransactions:
                      type: number
                      description: >-
                        The number of transactions that are still pending
                        (transaction status is `PENDING`).
                      example: 10
                    confirmedGmv:
                      type: number
                      description: >-
                        The total order value (`orderValue`) of the confirmed
                        transactions (transaction status is `CONFIRMED`).
                      example: 4000
                    declinedGmv:
                      type: number
                      description: >-
                        The total order value (`orderValue`) of the declined
                        transactions (transaction status is `DECLINED`).
                      example: 500
                    pendingGmv:
                      type: number
                      description: >-
                        The total order value (`orderValue`) of the pending
                        transactions (transaction status is `PENDING`).
                      example: 500
                    confirmedCashback:
                      type: number
                      description: >-
                        The total cashback amount of the confirmed transactions
                        (transaction status is `CONFIRMED`).
                      example: 400
                    declinedCashback:
                      type: number
                      description: >-
                        The total cashback amount of the declined transactions
                        (transaction status is `DECLINED`).
                      example: 50
                    pendingCashback:
                      type: number
                      description: >-
                        The total cashback amount of the pending transactions
                        (transaction status is `PENDING`).
                      example: 50
                    startDate:
                      type: string
                      description: >-
                        The start date of the payout period. This is the date of
                        the first transaction included in the payout. Format:
                        `ISO 8601`
                      example: '2023-01-01T00:00:00.000Z'
                    endDate:
                      type: string
                      description: >-
                        The end date of the payout period. This is the date of
                        the last transaction included in the payout. Format:
                        `ISO 8601`
                      example: '2023-01-31T23:59:59.999Z'
                  required:
                    - id
                    - totalTransactions
                    - totalGmv
                    - aov
                    - totalCashback
                    - confirmedTransactions
                    - declinedTransactions
                    - pendingTransactions
                    - confirmedGmv
                    - declinedGmv
                    - pendingGmv
                    - confirmedCashback
                    - declinedCashback
                    - pendingCashback
                    - startDate
                    - endDate
      security:
        - api-key: []
components:
  securitySchemes:
    api-key:
      type: http
      scheme: bearer
      description: API key for accessing the Sleek API.

````