Swapin Partner API
  • What is Swapin?
  • Help & Customer Support
  • General
  • Authentication
  • API Endpoints
    • Get coins
    • Create payment
    • Payment status
    • Settle Payment
    • Payment statuses
    • Create buy order
    • Buy order status
    • Buy order statuses
  • Referral codes
  • Create referral code
  • Referral statistics
  • End customer experience
    • Verification Levels
    • Supported Countries
    • Fees, Supported Currencies and Payment Processing Times
    • Dedicated IBANs
Powered by GitBook
On this page

Referral codes

Endpoint for getting a list of created referral codes for Partner

Returns a list of created referral codes

GET https://papi.swapin.com/api/referral_codes

Send users to https://app.swapin.com/join/ + code

[
    {
        "id": 1,
        "label": "Default code", 
        "code": "RANDOMXYZ",
        "user_id": 1, // Partner ID
        "created_at": "2022-01-01 11:11:11",
        "updated_at": "2022-01-01 11:11:11",
        "signups_count": 0, // Total signups with this code
        "completed_count": 0 // Total count of signups that completed KYC
    },
    {...}
]
{
    "message": "Please login"
}
PreviousBuy order statusesNextCreate referral code

Last updated 2 years ago