Skip to main content

Finding your API credentials and resetting your API secret

Find your API credentials, reset your secret, update your integrations and revoke the previous secret.

Written by Adam

Find your ReferralCandy API Access ID and API Secret ID in Account > Profile > API Tokens. If your API secret has been shared or exposed, reset it, update the integrations that use it, and revoke the previous secret. These settings are available to Shopify merchants and merchants on other platforms.


Find your API credentials

  1. Open ReferralCandy: from Shopify admin, open the ReferralCandy app; on other platforms, sign in to your ReferralCandy dashboard.

  2. Go to Account > Profile.

  3. Find the API Tokens section. It contains your API Access ID and API Secret ID.

If an integration asks for your ReferralCandy API Secret Key or Secret Key, use the value labeled API Secret ID here.


API troubleshooting

Why does the API return "Email Unverified"?

If an API call returns Email Unverified, check whether the login email for your ReferralCandy account is awaiting verification. This can happen after a login-email change. Use the login email shown in Store details; it can differ from the admin email in Profile. This is about your ReferralCandy login email, rather than a customer's email in your API request.

The verify.json method tests API authentication. A Verification Ok response does not confirm that your account's login email has been verified.

  1. In ReferralCandy, go to Account > Store details.

  2. If you see Your login email needs to be verified, check the email address shown in the notice and click Resend email.

  3. Someone with access to that inbox needs to open the verification email and click its link.

Once the login email is verified, the verification warning should disappear from Store details. Try the API request again.

If you do not see the verification notice, cannot access the verification inbox, or still get Email Unverified after verifying, our support team can look into your account. Just let us know. You do not need to send your API secret; see Keep your API secret private.


Reset your API secret

Resetting your ReferralCandy API secret creates a new secret immediately. API requests signed with the previous secret are accepted for 7 days after the reset, unless you revoke the previous secret sooner.

The seven-day allowance applies only to API requests. Immediately update any webhook verification, purchase-tracking snippets or store-plugin settings that hold your secret; these uses require the new secret as soon as you reset it.

If your API secret was exposed, reset it, update your integrations and revoke the previous secret promptly. Resetting alone leaves the previous secret accepted for API requests for 7 days.

  1. In ReferralCandy, go to Account > Profile > API Tokens.

  2. Click Reset API Secret. In the confirmation dialog, click Reset API Secret again.

  3. Use the new API Secret ID to replace the old secret in each integration or script that uses it.

  4. Once your integrations use the new secret, revoke the previous API secret.


Revoke your previous API secret

If you have already reset your API secret, you can revoke the previous secret without resetting again. First, make sure each integration or script uses the current API Secret ID.

  1. In ReferralCandy, go to Account > Profile > API Tokens.

  2. Click Revoke previous API Secret. In the confirmation dialog, click Revoke previous API Secret again.

API requests signed with the previous secret are rejected immediately; requests signed with the current secret are unaffected.


Keep your API secret private

Don't share your API Secret ID in support chat, email, screenshots or code samples. A full string prepared for MD5 signature calculation contains the secret too.

When asking for troubleshooting help, replace secrets with placeholders such as YOUR_API_SECRET and remove customer details from code, requests and responses. Calculate signatures with the real secret only in your own environment.

Did this answer your question?