deBridge Referral Program API

The Referral Program API from deBridge — 3 operation(s) for referral program.

Operations 3

GET /api/ReferralProgram/{referralCode}/summary Returns referral statistics for given referral code #
GET /api/ReferralProgram/{referralCode}/referredUsers Returns aggregated information about users, that used given referral code #
GET /api/ReferralProgram/referrerCode/{walletAddress} Returns referral code which user used in first DeBridge order #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/debridge-com:debridge-com-referral-program-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

debridge-com-referral-program-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DLN stats Referral Program API
  description: '# Introduction

    This API is part of deBridge protocol infrastructure.


    Protocol documentation is available here.


    Terms and Condition | Privacy Policy


    # Swagger

    Swagger document can be found here


    Redoc document can be found here'
  version: v1
servers:
- url: https://dln-api.debridge.finance
tags:
- name: Referral Program
paths:
  /api/ReferralProgram/{referralCode}/summary:
    get:
      tags:
      - Referral Program
      summary: Returns referral statistics for given referral code
      operationId: ReferralProgram_GetReferralStatistics
      parameters:
      - name: referralCode
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferralStatisticsDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputDataResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
  /api/ReferralProgram/{referralCode}/referredUsers:
    get:
      tags:
      - Referral Program
      summary: Returns aggregated information about users, that used given referral code
      operationId: ReferralProgram_GetReferredUsers
      parameters:
      - name: referralCode
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: skip
        in: query
        schema:
          type: integer
          format: int32
      - name: take
        in: query
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferredUsersResponseDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputDataResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
  /api/ReferralProgram/referrerCode/{walletAddress}:
    get:
      tags:
      - Referral Program
      summary: Returns referral code which user used in first DeBridge order
      operationId: ReferralProgram_GetReferrerCode
      parameters:
      - name: walletAddress
        in: path
        description: wallet address [hex of base58]
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: integer
                format: int32
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputDataResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
components:
  schemas:
    InternalServerErrorResponse:
      type: object
      properties:
        message:
          type:
          - string
          - 'null'
          description: Error message
        errorCode:
          type: integer
          description: For this type of error it's always 500
          format: int32
      additionalProperties: false
      description: Information about an internal server error
    InvalidInputDataResponse:
      type: object
      properties:
        message:
          type:
          - string
          - 'null'
          description: Error message
        errorCode:
          type: integer
          description: For this type of error it's always 400
          format: int32
      additionalProperties: false
      description: Information about bad input params
    ReferralStatisticsDTO:
      type: object
      properties:
        referralCode:
          maximum: 4294967295
          minimum: 1
          type: integer
          description: Referral code user used to invite other users
          format: int32
        totalUsers:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: Total number of users, that used the ReferralCode at least once in their transactions
          format: int32
        totalOrdersFulfilled:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: Number of fulfilled orders that used the ReferralCode in order creation transaction
          format: int32
        totalAmountGivenUsd:
          type: number
          description: Total Give amount USD equivalent of all orders that used the ReferralCode
          format: double
        totalFeesGeneratedUsd:
          type: number
          description: Total amount (USD equivalent) of fees generated  by orders that used the ReferralCode
          format: double
      additionalProperties: false
    AddressPropertyDTO:
      type: object
      properties:
        Base64Value:
          type:
          - string
          - 'null'
          description: Binary representation of the property value
          format: byte
        bytesArrayValue:
          type:
          - string
          - 'null'
          description: Bytes array representation of the value
          readOnly: true
        stringValue:
          type:
          - string
          - 'null'
          description: String representation of the property value
          readOnly: true
      additionalProperties: false
    ReferredUserDTO:
      type: object
      properties:
        walletAddress:
          $ref: '#/components/schemas/AddressPropertyDTO'
        totalVolumeUSD:
          type: number
          description: Total give amount's USD equivalent of all user's orders that used the referral code
          format: double
        totalFeesUSD:
          type: number
          description: Total fees' USD equivalent of all user's orders that used the referral code
          format: double
        totalExecutedOrders:
          type: integer
          description: Total number of user's orders that used the referral code
          format: int32
        wasInvitedByCurrentUser:
          type: boolean
          description: Indicates whether the user is invited by the owner of the referral code passed in the request
      additionalProperties: false
      description: Information about a user, that used referral code [passed in the request] while creating an order
    ReferredUsersResponseDTO:
      type: object
      properties:
        users:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ReferredUserDTO'
          description: Orders from requested page of the search result
        totalCount:
          type: integer
          description: Total number of users
          format: int32
      additionalProperties: false