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

Create referral code

Endpoint for creating referral codes

Create new referral code

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

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

Request Body

Name
Type
Description

label*

String

Label for the referral code

{
    "message": "Referral code created",
    "id": 1,
    "code": "xyzXYZ123"
}
{
    "message": "Please login"
}
{
    "message": "The given data was invalid.",
    "errors": {
        "label": [
            "The label field is required."
        ],
    }
}
PreviousReferral codesNextReferral statistics

Last updated 2 years ago