Skip to main content
If you run a cashback, coupon or deals site, this page is all you need to list Fluz merchants. You copy four values, run one script, and get a file with every merchant, its cashback rate and a link that credits new members to you. The script works for personal and business Fluz accounts. Run it once a day.

What you get

One entry per merchant:

Before you start

You need four values. All of them come from your Fluz account.
Create the application at fluz.app/for-developers. An application created in the sandbox (uni.staging.fluzapp.com) has a different key, and the live API rejects it with Error verifying API basic token.

Run the feed

Save this as fluz-feed.php, paste your four values at the top, and run php fluz-feed.php. It writes fluz-feed.json next to the script. Needs PHP 7.4 or newer with the curl extension.
fluz-feed.php

Check it

  1. Open fluz-feed.json and check that it lists merchants with rates.
  2. Open one link in a private browser window. It should land on that merchant’s page on fluz.app.
  3. Check that the code at the end of the link matches your referral code exactly, including uppercase and lowercase letters. A wrong code shows no error, and the signup isn’t credited to you.

Keep it current

  • Run the script once a day, for example from cron. Fluz updates the catalog twice a day, and rates change often.
  • The access token is short-lived. The script gets a new one each time it runs, so you never have to manage it.
  • Merchant slugs don’t change when rates change, so links you’ve already published keep working.

If it doesn’t work

The API Key isn’t accepted. Check that:
  • You created the application at fluz.app/for-developers, not in the sandbox.
  • You pasted the API Key whole, exactly as shown. Don’t encode it again.
  • The key wasn’t regenerated. A regenerated key replaces the old one right away.
  • The User ID and Account ID come from the same application as the key.
Some merchants have no rate at the moment. Skip them on your site, or show them without a rate. They are back in the feed when a rate returns.
The script stops on any error and prints the response from Fluz. Run it again. If the same error repeats, send that message to your Fluz contact.

More detail