Shoffi Docs
  • 👋Getting Started
  • 💻For App Owners
    • Adding a new app
    • Google Analytics integration
    • The affiliate terms
    • Managing affiliates
    • Invite affiliates
    • Paying affiliates
    • Managing your apps
    • Managing your team
    • Integrations (Webhooks)
  • 💳Subscriptions
    • Choosing/Upgrading a plan
    • Plan limits
    • Changing billing details
    • Downgrade and cancellation
    • Frozen and Deactivated accounts
  • 🔀The Shoffi API
    • Introduction to Shoffi API
    • Get All Affiliates
    • Get Affiliate Info
    • Create New Affiliate
    • Update Affiliate Terms
    • Affiliate Payment Request
  • 🔗For Affiliates
    • Connecting to new apps
    • Referral links
    • Manual referrals
    • Payout requests
    • Performance analytics
    • Connected app Information
  • General
    • The markets
    • The affiliate commision
    • Disputes
Powered by GitBook
On this page
  • Create a new affiliate and get its affiliate link
  • Parameters breakdown
  • affiliateDetails
  • affiliateTerms
  • Response example
  1. The Shoffi API

Create New Affiliate

Create a new affiliate and get its affiliate link

POST https://platform.shoffi.app/API/affiliate/create

Request Body

Name
Type
Description

apiKey*

String

Your Shoffi app API Key

appId*

Integer

Your app ID

affiliateDetails*

Object

Affiliate account details

affiliateTerms*

Object

Affiliate contract terms

{
    "affiliateDetails": {
        "email": "[email protected]",
        "firstName": "Tobias",
        "lastName": "Lütke",
        "nickName": "tobi"
    },
    "affiliateTerms": {
        "revenueShare": 30,
        "cpi": 10,
        "limitPeriod": 24,
        "minWithdrawal": 50,
        "recurringChargeOnly": true
    },
    "affiliateLink": "https://platform.shoffi.app/r/rl_xxxxxxxx"
}
{
    "status": 400,
    "message": "Error details"
}

Please Note! If the email you will send in the POST request is already associated with an affiliate account in Shoffi, we will not create a new account. We will update the existing one with a new connection to your app with the affiliate terms you sent. You will still get a "200" response with the relevant data.

curl -X POST \
  https://platform.shoffi.app/API/affiliate/create \
  -H 'Content-Type: application/json' \
  -d '{
    "apiKey": "YourKey",
    "appId": 00000000,
    "affiliateDetails": {
        "email": "[email protected]",
        "firstName": "Tobias",
        "lastName": "Lütke",
        "nickName": "tobi"
    },
    "affiliateTerms": {
        "revenueShare": 30,
        "cpi": 10,
        "limitPeriod": 24,
        "minWithdrawal": 50,
        "recurringChargeOnly": true
    }
}'

Parameters breakdown

affiliateDetails

  • email: The new affiliate email address

  • firstName: The new affiliate first name

  • lastName: The new affiliate last name

  • nickName: The new affiliate nickname

affiliateTerms

  • cpi: Cost Per Install. The amount the affiliate will be rewarded for each successful install of the app. You can set the amount to '0' if you are not interested in paying per install.

  • limitPeriod: The period in which the affiliate will earn commissions from transactions made by the referred store, In months. If not limited, the affiliate will earn commissions as long as the referral is active.

  • minWithdrawal: The minimum amount an affiliate needs to reach in earnings so they can ask to withdraw their balance. In USD.

  • recurringChargeOnly: apply affiliate earnings from recurring charges only, excluding one-time fees charged by the app.

Response example

200 OK
Content-Type: application/json
{
    "affiliateDetails": {
        "email": "[email protected]",
        "firstName": "Tobias",
        "lastName": "Lütke",
        "nickName": "tobi"
    },
    "affiliateTerms": {
        "revenueShare": 30,
        "cpi": 10,
        "limitPeriod": 24,
        "minWithdrawal": 50,
        "recurringChargeOnly": true
    },
    "affiliateLink": "https://platform.shoffi.app/r/rl_xxxxxxxx"
}
PreviousGet Affiliate InfoNextUpdate Affiliate Terms

Last updated 5 months ago

revenueShare: The percentage you are willing to pay the affiliate for every transaction made by a store they referred to. You can read more about .

🔀
the affiliate commission