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

# Set partner settings. For internal usage only



## OpenAPI

````yaml https://backend.swap.coffee/openapi post /v1/partnership/{address}/settings
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/partnership/{address}/settings:
    post:
      tags:
        - Partnership
      summary: Set partner settings. For internal usage only
      operationId: setPartnerSettings
      parameters:
        - $ref: '#/components/parameters/pathWalletAddress'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiPartnerSettings'
      responses:
        '200':
          description: Ok
        default:
          $ref: '#/components/responses/ApiError'
components:
  parameters:
    pathWalletAddress:
      in: path
      name: address
      required: true
      schema:
        type: string
        example: UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV
  schemas:
    ApiPartnerSettings:
      type: object
      required:
        - ref_share
        - custom_fee
      properties:
        ref_share:
          type: number
          format: double
        custom_fee:
          $ref: '#/components/schemas/ApiTransactionsCustomFee'
    ApiTransactionsCustomFee:
      type: object
      description: >-
        If present, additional transaction for fees collection will be
        generated. Because of that, be careful with max_splits to not exceed
        wallet contract limits
      properties:
        fixed_fee:
          type: string
          description: Value in nanotons
        percentage_fee:
          type: integer
          description: >-
            Value in 1/1000000: 1 is 0.0001%, 1000000 is 100%. If present, can
            not be less than 10000000 (0.01 TON)
        min_percentage_fee_fixed:
          type: string
          description: >-
            Value in nanotons. No less than this value may be withdrawn as a
            percentage_fee. Must be set if percentage_fee is present. Can not be
            less than 10000000 (0.01 TON)
        max_percentage_fee_fixed:
          type: string
          description: >-
            Value in nanotons. If set, no more than this value may be withdrawn
            as a percentage_fee. Taken into account only if percentage_fee is
            present
  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

````