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

# Payout rewards for this contest in token. For internal usage only



## OpenAPI

````yaml https://backend.swap.coffee/openapi post /v1/contests/{id}/payout/token
openapi: 3.0.3
info:
  title: Swap Coffee API
  version: 1.0.0
servers:
  - url: https://backend.swap.coffee/
  - url: http://localhost:8080/
security:
  - {}
  - ApiKey: []
tags:
  - name: Entity
    description: Tokens, pools, DEXes, etc.
  - name: Routing
    description: >-
      Core functionality of the aggregation service. Build routes, get
      transactions, etc.
  - name: Strategies
    description: Limit orders, DCA, VCA, etc.
  - name: Yield
    description: >-
      Yield aggregator functionality. Provides and handles routes to pools with
      the best yield.
  - name: Referral
    description: Everything related to the referral program of swap.coffee.
  - name: Cashback
    description: Cashback programs conducted on swap.coffee.
  - name: Claim
    description: Claiming various rewards available on swap.coffee.
  - name: Contests
    description: Timed contests based on trading volumes for certain token-pairs.
  - name: Staking
    description: Responsible of managing staked funds, corresponding rewards, etc.
  - name: DEX
    description: Core functionality of the Coffee DEX service.
  - name: LiquidityProvisioning
    description: Everything related to liquidity provisioning in DEXes.
  - name: Boosts
    description: >-
      Functionality to support incentives and rewards for liquidity providers
      among all DEXes.
  - name: Profile
    description: Retrieve information about user profiles.
  - name: Partnership
    description: Various functionality for our partners.
  - name: Statistics
    description: Retrieve information about dex aggregation stats.
  - name: Ton
    description: Retrieve information about TON entities.
  - name: Auth
    description: Auth operations. For internal usage only.
paths:
  /v1/contests/{id}/payout/token:
    post:
      tags:
        - Contests
      summary: Payout rewards for this contest in token. For internal usage only
      operationId: payoutContestRewardsInToken
      parameters:
        - $ref: '#/components/parameters/pathIntId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiContestTokenPayoutInfo'
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiContestTokenPayoutAccrual'
        default:
          $ref: '#/components/responses/ApiError'
components:
  parameters:
    pathIntId:
      in: path
      name: id
      required: true
      schema:
        type: integer
        format: int32
  schemas:
    ApiContestTokenPayoutInfo:
      type: object
      required:
        - distributor
        - token
      properties:
        distributor:
          type: string
          example: UQD_gZghWHqB7TGFTSs0FjrpL5dlUH5lznJHPHMpiwNldyPc
        token:
          $ref: '#/components/schemas/ApiTokenAddress'
        entries:
          type: array
          items:
            $ref: '#/components/schemas/ApiContestTokenPayoutEntry'
        random:
          $ref: '#/components/schemas/ApiContestTokenPayoutRandoms'
    ApiContestTokenPayoutAccrual:
      type: object
      required:
        - address
        - amount
        - volume_usd
        - reason
      properties:
        address:
          type: string
          example: UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV
        amount:
          type: number
          format: double
        volume_usd:
          type: number
          format: double
        reason:
          type: string
          example: 'place #1'
    ApiTokenAddress:
      type: object
      required:
        - blockchain
        - address
      properties:
        blockchain:
          type: string
          example: ton
        address:
          type: string
          example: native
    ApiContestTokenPayoutEntry:
      type: object
      required:
        - place_from
        - place_to
        - token_amount
      properties:
        place_from:
          type: integer
          format: int32
        place_to:
          type: integer
          format: int32
        token_amount:
          type: number
          format: double
    ApiContestTokenPayoutRandoms:
      type: object
      required:
        - count
        - token_amount
        - min_volume_usd
      properties:
        count:
          type: integer
          format: int32
        token_amount:
          type: number
          format: double
        min_volume_usd:
          type: number
          format: double
  responses:
    ApiError:
      description: Some error during request processing
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````