Shopify Private App Setup

    🛍️ Shopify Private App Setup

    Follow these steps to create a private app in your Shopify store and get the API credentials needed for the referral system.


    1. Access Private Apps in Shopify Admin

    1. Log into your Shopify Admin dashboard
    2. Go to Settings (bottom left)
    3. Click on Apps and sales channels
    4. Click Develop apps at the bottom
    5. If this is your first time, click Allow custom app development

    Note: You must be the store owner or have the “Develop apps” permission to create private apps.


    2. Create Your Private App

    1. Click Create an app
    2. Enter an app name: referal app
    3. Enter your email as the App developer
    4. Click Create app

    3. Configure API Permissions

    Click on Configure Admin API scopes and enable these permissions:

    ✅ Required Permissions

    ScopeDescription
    read_discountsView discount codes
    write_discountsCreate discount codes
    read_ordersTrack referral purchases
    read_productsAccess product information

    ⚙️ Optional (for advanced features)

    ScopeDescription
    read_customersCustomer analytics
    write_script_tagsTracking scripts

    Important: Only grant the minimum permissions needed. You can always add more later if required.


    4. Install App and Get API Credentials

    1. Click Save to save your API permissions
    2. Click Install app (top right)
    3. Review the permissions and click Install
    4. You’ll now see the Admin API access token
    5. Click Reveal token once and copy it immediately
    Security Warning:
    The API token will only be shown once.
    Store it securely and never share it publicly.
    If you lose it, you’ll need to uninstall and reinstall the app.

    5. Configure in Referral System

    1. Return to your Referral System Admin Panel
    2. Go to Shopify Configuration
    3. Enter your store URL (e.g. your-store.myshopify.com)
    4. Paste the Admin API access token
    5. Test the connection to verify everything works

    🎉 You’re all set! Your referral system can now create discount codes and track purchases.


    Troubleshooting

    Can't find "Develop apps"?

    You need to be the store owner or have developer permissions. Contact your store owner to enable custom app development.

    API calls failing?

    Check that you've granted the correct permissions and that your store URL is in the format your-store.myshopify.com (without https://).

    Lost your API token?

    You'll need to uninstall the app and reinstall it to generate a new token. The old token will be invalidated.


    Additional Resources