AAffilitera Help

Help

Daisycon credentials

Where to find each Daisycon credential Affilitera asks for, who can create it, and what each connection error means.

Last updated

Daisycon only accepts OAuth 2.1, so there is no simple API key. You create an app in Daisycon, run Daisycon's command-line helper once to get a refresh token, and Affilitera keeps the connection signed in from then on.

Client ID

The Client ID of the app you create in Daisycon for Affilitera. It is sent with the refresh token each time Affilitera asks Daisycon for a new access token.

Where to find it

  1. In Daisycon, log in to your publisher account and go to Tools → Daisycon API.
  2. Create a developer account there (button at the bottom of the page) if you have none.
  3. Open the developer account and click Create App.
  4. Save the app. Daisycon shows the Client ID and Client Secret. Copy the Client ID.

Who can create it: Your Daisycon publisher login. The app is created under a developer account opened from it.

Set up first

  • When creating the app, choose App Type publisher.
  • Request only the permissions Affilitera needs.
  • Set the Authorized Redirect URI to Daisycon's CLI address, the one shown as the example in the Redirect URI field.

Client Secret

The Client Secret of the same Daisycon app. It is saved encrypted.

Where to find it

  1. Daisycon generates it together with the Client ID when you save the app in Tools → Daisycon API.

Refresh Token

The refresh token Daisycon's OAuth-over-CLI client prints. Affilitera uses it to get short-lived access tokens, and saves each new refresh token Daisycon hands back.

Where to find it

Step 5 — Run Daisycon's OAuth-over-CLI client once (github.com/DaisyconBV/oauth-examples: PHP/cli-client.php, or the npm package) with your Client ID and Client Secret, open the URL it prints, sign in, and paste the code back. Copy the refresh_token it outputs here. Refresh tokens are single-use and expire after 30 days unused; Affilitera stores each new one automatically. If Daisycon refuses it, repeat this step.

Set up first

  • Run Daisycon's OAuth-over-CLI client once (from Daisycon's oauth-examples on GitHub, or its npm package) with your Client ID and Client Secret.
  • Open the address it prints, sign in, and paste the code back into it.
  • Copy the refresh_token it outputs into this field.

Expiry and rotation: Refresh tokens are single-use and expire after 30 days unused. Affilitera stores each new one automatically, so a connection that syncs regularly stays signed in. If Daisycon refuses the token, run the CLI client again and save the new one.

Redirect URI (optional)

Optional. The Authorized Redirect URI registered on your Daisycon app. Leave it empty if your app uses Daisycon's CLI address. Otherwise enter exactly the URI registered on the app; it must match character for character.

Where to find it

Leave empty if your app's Authorized Redirect URI is Daisycon's CLI URL, https://login.daisycon.com/oauth/cli. Otherwise enter exactly the URI registered on the app — it must match character for character.

Publisher ID

Your Daisycon Publisher ID, a 6-digit number. It is not your account name and not a media ID. Testing the connection checks that the signed-in Daisycon account owns it.

Where to find it

  1. In Daisycon, read the 6-digit number shown under your account name. It is also in your account settings.

Media ID (optional)

Optional. The ID of the website (media) clicks are credited to. With exactly one approved media Affilitera uses it automatically. It is needed only if more than one of your media is approved for a program.

Where to find it

  1. In Daisycon, look under your media (websites) for the ID.

Common errors

These are the messages a Daisycon connection can show on its row in My Network, or after Test connection.

Daisycon: publisherId not configured

The connection has no Publisher ID saved.

  1. Copy the 6-digit number under your account name in Daisycon.
  2. Paste it into Publisher ID, save, then test again.

About Publisher ID

Daisycon: the authorised account did not return publisher …. The Publisher ID is the 6-digit number under your account name in Daisycon (PDF p.10), not the account name or a media ID.

The Publisher ID saved is not the one the signed-in Daisycon account answers for. Often it is the account name or a media ID instead.

  1. Copy the 6-digit number under your account name in Daisycon.
  2. Paste it into Publisher ID, save, then test again.

About Publisher ID

Daisycon needs re-authorising: no OAuth Refresh Token is saved. To fix: …

The connection has no refresh token, so Affilitera cannot sign in to Daisycon.

  1. In Daisycon, go to Tools → Daisycon API and open your app.
  2. Run Daisycon's OAuth-over-CLI client again with this connection's Client ID and Client Secret, and sign in.
  3. Paste the refresh token it prints into Refresh Token and save.

About Refresh Token

Daisycon needs re-authorising: only a legacy static API key is saved, and Daisycon's API accepts OAuth 2.1 tokens only. To fix: …

This connection still holds an old static API key. Daisycon no longer accepts those.

  1. Create an app in Tools → Daisycon API and save its Client ID and Client Secret here.
  2. Run Daisycon's OAuth-over-CLI client again with this connection's Client ID and Client Secret, and sign in.
  3. Paste the refresh token it prints into Refresh Token and save.

About Client ID

About Client Secret

About Refresh Token

Daisycon needs re-authorising: no OAuth Client ID is saved. To fix: …

The connection has a refresh token but no Client ID, so a new access token cannot be requested.

  1. Copy the Client ID of your app from Tools → Daisycon API.
  2. Paste it into Client ID and save.

About Client ID

Daisycon needs re-authorising: Daisycon refused the stored refresh token (…). To fix: …

Daisycon would not accept the saved refresh token. It has expired after 30 days unused, was already used, or does not match the saved Client ID, Client Secret or Redirect URI.

  1. Check that Client ID, Client Secret and Redirect URI match the app in Tools → Daisycon API.
  2. Run Daisycon's OAuth-over-CLI client again with this connection's Client ID and Client Secret, and sign in.
  3. Paste the refresh token it prints into Refresh Token and save.

About Refresh Token

About Client ID

About Client Secret

About Redirect URI (optional)

Daisycon needs re-authorising: Daisycon refused a freshly refreshed access token for this publisher ID (the authorised Daisycon account may not own this publisher, or the app lacks the permission). To fix: …

Signing in worked, but Daisycon would not let that account read this publisher. The Publisher ID may belong to another account, or the app was created without the permission needed.

  1. Check that Publisher ID is the 6-digit number under the name of the account you signed in with.
  2. Check the app's permissions in Tools → Daisycon API.
  3. Run Daisycon's OAuth-over-CLI client again with this connection's Client ID and Client Secret, and sign in.
  4. Paste the refresh token it prints into Refresh Token and save.

About Publisher ID

About Client ID

About Refresh Token

Daisycon: this publisher has … media (websites) and no Media ID is set on the connection, so it is not known which website to subscribe. Set the Media ID in My networks.

You have more than one website in Daisycon, and Affilitera will not guess which one should join the program.

  1. Find the ID of the website to use under your media in Daisycon.
  2. Enter it in Media ID, save, then try again.

About Media ID (optional)

What each status on the connection means

Credentials rejected

Daisycon refused the saved credentials. They were mistyped, regenerated or revoked on the Daisycon side, or belong to a user who has lost access.

  1. Open the connection and choose Update credentials.
  2. Copy each value again from Daisycon, using the steps in the field sections above, and save.
  3. Test the connection. The next sync uses the new values.

Credentials expired

A token Daisycon issues for a limited time, or for one use only, is no longer valid.

  1. Create a new token in Daisycon as described in the field section above.
  2. Save it on the connection and test again.

Credential missing

A value the connection needs has not been saved, so Affilitera cannot call Daisycon at all.

  1. Open the connection and choose Update credentials.
  2. Fill in every required field and save.

API access off

Daisycon accepted the credentials but refused the data. API or reporting access is not switched on for this account or site on the Daisycon side.

  1. Switch on API or reporting access in Daisycon (see the setup notes in the field sections above).
  2. Test the connection again. Nothing needs changing in Affilitera.

Account mismatch

The saved values come from different Daisycon accounts, for example an ID from one account and a key from another.

  1. Sign in to the one Daisycon account you want to connect.
  2. Copy every value from that same account, save, and test again.

Token save pending

Daisycon issued a new token and Affilitera could not save it yet. This usually clears on its own at the next sync.

  1. Wait for the next sync.
  2. If the message stays, create a new token in Daisycon and save it on the connection.

Check credentials

Daisycon refused the connection with a message Affilitera does not recognize.

  1. Check each saved value against Daisycon, using the field sections above.
  2. Save and test again. If it still fails, contact support and quote the message shown on the connection.
Was this helpful?