AAffilitera Help

Help

Travelpayouts credentials

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

Last updated

Travelpayouts connects with one API token and a reporting currency. To create partner links, it also needs your marker (partner ID) and the ID of the project connected to the brands you promote.

API token

Your Travelpayouts API token. The same token serves statistics, finance and partner links. Affilitera sends it in a secure header on every call.

Where to find it

  1. Sign in to Travelpayouts.
  2. Open Profile → API token.
  3. Click Copy.

Marker (partner ID)

Your numeric Travelpayouts partner ID, which Travelpayouts calls the marker. It is needed to create partner links.

Where to find it

Your numeric Travelpayouts partner ID ('marker – unique partner ID in Travelpayouts', travelpayouts-partner-api.pdf p.11). WHERE IT IS SHOWN IS UNVERIFIED: the current help pages do not say, and the only screenshot is on Travelpayouts' deprecated-API page, where 'Your marker' sits beside 'Your API token' (PDF p.14). Check your Travelpayouts account if it is not there.

Project ID (trs)

The numeric ID of the Travelpayouts project connected to the brands you promote. It is needed to create partner links.

Where to find it

  1. Sign in to Travelpayouts.
  2. Open your project list.
  3. Copy the numeric ID of the project connected to the brands you promote.

Set up first

  • Connect the project to each brand's program in your Travelpayouts account. A link for a brand the project is not connected to is refused.

Reporting currency

The currency Travelpayouts reports your amounts in: USD, EUR or RUB, the three its finance API offers. Amounts are stored exactly as Travelpayouts states them. Nothing is converted, and a connection with no currency chosen is refused rather than assumed to be USD.

Where to find it

The currency Travelpayouts reports your amounts in — one of the three its finance API offers (travelpayouts-partner-api.pdf p.7). Amounts are stored exactly as Travelpayouts states them; nothing is converted.

Choices: usd, eur, rub

Common errors

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

Travelpayouts: not configured — …

One or more required fields are missing or not in the right form. The message lists them: the API token, the currency, the marker (a number) or the project ID (a number).

  1. Fill in each field the message names. The marker and project ID must be numbers only.
  2. Save, then test the connection again.

About API token

About Reporting currency

About Marker (partner ID)

About Project ID (trs)

Travelpayouts: the API token was refused (HTTP 401) — …

Travelpayouts did not accept the saved API token.

  1. Copy your token again from Profile → API token in Travelpayouts.
  2. Paste it into API token, save, then test again.

About API token

A partner link could not be created because Travelpayouts did not accept the saved API token.

  1. Copy your token from Profile → API token in Travelpayouts.
  2. Save it on your Travelpayouts connection, then request the link again.

About API token

Travelpayouts does not recognize the saved project ID.

  1. Find the project's numeric ID in your Travelpayouts project list.
  2. Save it as Project ID (trs), then request the link again.

About Project ID (trs)

Travelpayouts does not recognize the saved marker as your partner ID.

  1. Check your numeric partner ID in your Travelpayouts account.
  2. Save it as Marker (partner ID), then request the link again.

About Marker (partner ID)

A partner link was requested, but the connection lacks one of the three fields links need, or the marker or project ID is not a number.

  1. Save the API token, marker and project ID on your Travelpayouts connection.
  2. Request the link again.

About API token

About Marker (partner ID)

About Project ID (trs)

The saved project is valid, but it is not connected to this brand's program, so Travelpayouts will not create a link for it.

  1. Connect your project to the brand in your Travelpayouts account.
  2. Request the link again.

About Project ID (trs)

What each status on the connection means

Credentials rejected

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

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

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

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

API access off

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

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

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

Token save pending

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

Check credentials

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

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