AAffilitera Help

Help

Hotmart credentials

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

Last updated

Hotmart connects in two parts. Your hotlinks — one per product you promote — are what your links are built from: Hotmart's API does not give them out, so you paste them on the connection, and Affilitera adds your tracking id to each one in Hotmart's src parameter. A developer credential (Client ID and Client Secret) reads your sales and commissions; Affilitera exchanges it for a short-lived access token on each sync.

Client ID

The client_id of a Hotmart developer credential. Hotmart generates it together with the Client Secret when you create the credential.

Where to find it

  1. Sign in to Hotmart.
  2. Open Tools → Developer Credentials.
  3. Click Create Credential and give it a name. The name is only for your own reference.
  4. Leave the sandbox option in the Type field unticked, so the credential is for production, then click Confirm.
  5. Copy the client_id that Hotmart shows.

Set up first

  • A credential's type cannot be changed after it is created. A sandbox credential will not work here. If you made one by mistake, create a new production credential.

Expiry and rotation: The Client ID does not expire. Only the access token Affilitera requests with it expires, and Affilitera requests a new one on each sync.

Client Secret

The client_secret of the same Hotmart developer credential. Keep it private. Anyone holding it can read your Hotmart sales data.

Where to find it

  1. Open Tools → Developer Credentials in Hotmart.
  2. Use the credential you created for the Client ID.
  3. Copy its client_secret.

Set up first

  • Use the Client ID and Client Secret from the same credential.

Expiry and rotation: The Client Secret does not expire. If you think it has been exposed, delete the credential in Tools → Developer Credentials, create a new one, and save both new values here.

Your Hotmart hotlinks, one per line — one for each product you promote. A hotlink is your own link to a product and looks like https://go.hotmart.com/A12345678B. Each one becomes an advertiser on the connection, and every link Affilitera builds for it is that hotlink with your tracking id added in src. Only go.hotmart.com hotlinks are accepted; a pay.hotmart.com checkout address carries no affiliate and is refused.

  1. Sign in to Hotmart.
  2. Open My products and choose I'm an affiliate.
  3. On the product, click the link icon (or open its Promotional Links page) and copy the hotlink.
  4. Paste it on its own line in Hotlinks. Repeat for each product, then save.
  • A product you stop promoting can be removed from the list; its advertiser is then ended on the connection and no new links are made for it.

Common errors

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

A line in Hotlinks is not a Hotmart hotlink, or a hotlink is listed twice. The message names the line and what is wrong. Nothing on the list is saved as advertisers until every line is a hotlink.

  1. Copy the product's hotlink again from Hotmart → My products → I'm an affiliate → link icon. It starts with https://go.hotmart.com/.
  2. Replace the named line with it (or delete the line), save, then test the connection again.

About Hotlinks

A link was asked for a Hotmart product whose hotlink is not on your connection. This happens for products that appear because Hotmart reported a sale on them, and for a hotlink you removed.

  1. Copy the product's hotlink from Hotmart → My products → I'm an affiliate.
  2. Add it on its own line in Hotlinks, save, then request the link again.

About Hotlinks

Hotmart: clientId/clientSecret not configured

The connection test ran without both the Client ID and the Client Secret saved.

  1. Copy both values from Hotmart → Tools → Developer Credentials.
  2. Paste them into Client ID and Client Secret, save, then test the connection again.

About Client ID

About Client Secret

Hotmart: credentials not configured

A sync ran without both the Client ID and the Client Secret saved.

  1. Save both Client ID and Client Secret on the connection.
  2. The next sync uses them.

About Client ID

About Client Secret

Hotmart token HTTP …

Hotmart refused to issue an access token. When the number is 401 or 403, Hotmart did not accept the Client ID and Client Secret as a pair, or the credential is a sandbox credential or has been deleted.

  1. Open Hotmart → Tools → Developer Credentials and check that the credential still exists and is a production credential.
  2. Copy its Client ID and Client Secret again, save both, then test again.

About Client ID

About Client Secret

Hotmart: token endpoint did not return access_token

Hotmart answered the token request without an access token.

  1. Test the connection again.
  2. If it repeats, create a new production credential in Tools → Developer Credentials and save its values.

About Client ID

About Client Secret

Hotmart API HTTP … — …

Hotmart answered a sales request with an error. A 401 means the access token was not accepted. A 429 that persists means Hotmart's limit of 500 calls per minute was reached.

  1. Run the sync again later.
  2. If the number is 401 or 403, save the Client ID and Client Secret again and test the connection.

About Client ID

About Client Secret

A Hotmart link was requested without the tracking id Affilitera adds to every link, so no link was made.

  1. Request the link again from Affilitera. If it repeats, contact Affilitera support.

The link given is not a Hotmart affiliate hotlink. A pay.hotmart.com checkout address is not one either: it carries no affiliate, so a sale through it would not be credited to you.

  1. Copy your hotlink for the product from your Hotmart account. It is the address that starts with go.hotmart.com.
  2. Use that address and try again.

What each status on the connection means

Credentials rejected

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

  1. Open the connection and choose Update credentials.
  2. Copy each value again from Hotmart, 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 Hotmart issues for a limited time, or for one use only, is no longer valid.

  1. Create a new token in Hotmart 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 Hotmart at all.

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

API access off

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

  1. Switch on API or reporting access in Hotmart (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 Hotmart accounts, for example an ID from one account and a key from another.

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

Token save pending

Hotmart 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 Hotmart and save it on the connection.

Check credentials

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

  1. Check each saved value against Hotmart, 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?