Linkshare Payment

Official documentation: Linkshare Payment API docs

Authentication

Linkshare Payment uses API key authentication.

  1. Go to the Connections page and create a New Connection
  2. Select Linkshare Payment API from the Connector dropdown
  3. Enter a Connection name
  4. Fill in the following credentials:
Field Required
Username ✅
Password ✅
Scope ✅
Token Request Authorization ✅
Security Token —

In order to start using the hibase connector to the Linkshare Payment API (v1), you first need to setup Subscriptions to the APIs you want to use within the Linkshare API Developer Portal.

  1. Log into your Linkshare API Developer Portal and navigate to APIs

  2. In the search bar, look up the API you want to subscribe to, in this case Advanced Reports

  3. If you did not do so already, create an Application from the Applications drop down menu on the right. You can omit the Callback URL and you can select Unlimited as Throttling Tier, or anything else according to your security policy

  4. Back in the Subscriptions page, with the API selected, choose your desired Application and Tiers from the dropdown menus on the right and hit Subscribe

  5. As the new Subscription is created, a Keys section should display a few tokens

  6. Copy the Token Request Authorization hash (excluding the Basic word). This is the Token Request Authorization you will need to input in hibase when subscribing to the connector

  7. For some calls, you will need an additional Security Token which can be found in your Publisher Portal under Links > Web Services

  8. In hibase, when adding the Linkshare connector, you will need to provide the token you just copied, together with your username, password and Merchant ID or Site ID as Scope. The latter can be obtained by logging into your Rakuten Marketing Account

  9. Save the connector and you are good to make requests to the API you just subscribed to

Endpoints

Payment History (API docs)

Retrieve payment history records from the Rakuten Advertising (formerly LinkShare) affiliate network.

Parameter Description Required
start_date Start date for the payment history query (format: YYYY-MM-DD). ✅
end_date End date for the payment history query (format: YYYY-MM-DD). ✅
network_id Filter by affiliate network ID. —
advertiser_id Filter by advertiser ID. —
language Response language code. —
locale Locale code for localized data (e.g. en_US). —
currency Filter by payment currency code (e.g. USD, EUR, GBP). —
site_id Filter by specific site ID. —
page Page number for pagination. —
limit Number of results per page. —

Returned Data: Schema depends on the query. All fields from the API response are flattened into columns.