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

# Resolve a referral code

> Resolves a referral code to the wallet address of its owner.



## OpenAPI

````yaml /api-spec/openapi.yaml get /referral/resolve/{code}
openapi: 3.0.3
info:
  title: United Market API
  version: 1.0.0
  description: >-
    Public backend API for market data, trading, authentication, profiles,
    comments, and leaderboards.
servers:
  - url: https://api.unitedmarket.ai
    description: United Market backend
security: []
tags:
  - name: Markets
    description: >-
      Market discovery, market details, orderbooks, tickers, price history, and
      trades.
  - name: Orders
    description: Signed order submission, cancellation, order lookup, and balances.
  - name: Authentication
    description: SIWE wallet authentication.
  - name: Discovery
    description: Tags and market groups.
  - name: Social
    description: Comments, users, and leaderboard data.
  - name: Fees
    description: Effective trading fee rate per market.
  - name: Referral
    description: Referral codes, attribution, and reward summaries.
paths:
  /referral/resolve/{code}:
    get:
      tags:
        - Referral
      summary: Resolve a referral code
      description: Resolves a referral code to the wallet address of its owner.
      operationId: resolveReferralCode
      parameters:
        - name: code
          in: path
          required: true
          schema:
            type: string
          description: Referral code.
      responses:
        '200':
          description: Referrer returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferralResolve'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    ReferralResolve:
      type: object
      properties:
        referrer:
          type: string
          description: Wallet address that owns the referral code.
    Error:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: integer
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````