ShareASale Affiliate
Official documentation: ShareASale Affiliate API docs
Authentication
ShareASale Affiliate uses API key authentication.
- Go to the Connections page and create a New Connection
- Select ShareASale Affiliate Reporting API from the Connector dropdown
- Enter a Connection name
- Fill in the following credentials:
| Field | Required |
|---|---|
| Api Token | ✅ |
| Api Secret Key | ✅ |
| Affiliate Id | ✅ |
In order to start using the hibase connector to the ShareASale Merchant API (v2.3), you need to retrieve your API Token and Secret Key from the ShareASale API Manager.
- Log into your ShareASale Account and navigate to the ShareASale API Manager
Copy your Token, Secret Key as displayed in the API Manager page
Navigate to your ShareASale Account Page and copy your Affiliate ID
In hibase, provide the information you just copied when adding the ShareASale Reporting API connector
Save the connector and you are good to make requests to the ShareASale Reporting API
Endpoints
Activity Details (API docs)
Retrieve detailed activity records including clicks, leads, and sales.
| Parameter | Description | Required |
|---|---|---|
start_date |
Start date (format: MM/DD/YYYY). | ✅ |
end_date |
End date (format: MM/DD/YYYY). | ✅ |
merchant_id |
Filter by specific merchant ID. | — |
Returned Data
| Column | Type |
|---|---|
trans_id |
integer |
user_id |
integer |
merchant_id |
integer |
trans_date |
string |
trans_amount |
integer |
commission |
integer |
comment |
string |
voided |
string |
pending_date |
string |
locked |
string |
aff_comment |
string |
banner_page |
string |
reversal_date |
string |
click_date |
datetime |
click_time |
string |
banner_id |
integer |
sku_list |
string |
quantity_list |
string |
lock_date |
datetime |
paid_date |
datetime |
merchant_organization |
string |
merchant_website |
string |
trans_type |
string |
merchant_defined_type |
string |
store_id |
integer |
reference_trans |
string |
Activity Summary (API docs)
Retrieve summary-level activity statistics.
| Parameter | Description | Required |
|---|---|---|
merchant_id |
Filter by merchant ID. | — |
Returned Data
| Column | Type |
|---|---|
merchant_id |
integer |
merchant |
string |
commissions_month |
integer |
commissions_total |
decimal |
hits_month |
integer |
hits_total |
integer |
sales_month |
integer |
sales_total |
integer |
conversion_month |
integer |
conversion_total |
decimal |
epc_month |
integer |
epc_total |
decimal |
merchant_status |
string |
sale_comm |
string |
lead_comm |
string |
hit_comm |
string |
numberofsalesmonth |
integer |
commissionssalesmonth |
integer |
numberofleadsmonth |
integer |
commissionsleadsmonth |
integer |
numberoftwotiermonth |
integer |
commissionstwotiermonth |
integer |
numberofbonusesmonth |
integer |
commissionsbonusmonth |
integer |
numberofppcallsmonth |
integer |
commissionsppcallmonth |
integer |
numberofleapfrogsmonth |
integer |
commissionsleapfrogmonth |
integer |
Api Token Count (API docs)
Check remaining API token allowance for the current period.
Returned Data
| Column | Type |
|---|---|
creditsremaining |
integer |
Balance Inquiry (API docs)
Retrieve current account balance.
Returned Data
| Column | Type |
|---|---|
balance |
integer |
Edit Trail (API docs)
Retrieve the audit trail of edits to transactions.
| Parameter | Description | Required |
|---|---|---|
start_date |
Start date (format: MM/DD/YYYY). |
✅ |
end_date |
End date (format: MM/DD/YYYY). |
— |
merchant_id |
Filter by merchant ID. | — |
Returned Data
| Column | Type |
|---|---|
transid |
integer |
editdate |
string |
originaltransamount |
string |
originalcommission |
string |
newtransamount |
string |
newcommission |
string |
affcomment |
string |
Invalid Links (API docs)
Retrieve links that have been marked as invalid.
| Parameter | Description | Required |
|---|---|---|
merchant_ids |
Comma-separated list of merchant IDs. | — |
Returned Data
| Column | Type |
|---|---|
invalid_id |
integer |
merchant_id |
integer |
banner_id |
integer |
referrer |
string |
reason_code |
string |
reason |
string |
date |
string |
full_link |
string |
afftrack |
string |
Ledger Report (API docs)
Retrieve the financial ledger of earnings and payments.
| Parameter | Description | Required |
|---|---|---|
start_date |
Start date (format: MM/DD/YYYY). |
✅ |
end_date |
End date (format: MM/DD/YYYY). |
✅ |
Returned Data
| Column | Type |
|---|---|
ledgerid |
string |
action |
string |
dt |
string |
transid |
integer |
transtype |
string |
impact |
integer |
afftrack |
string |
comment |
string |
merchantid |
integer |
storeid |
string |
orderimpact |
integer |
ordernumber |
string |
merchantorganization |
string |
merchantwww |
string |
storename |
string |
storewww |
string |
Merchant Creatives (API docs)
Retrieve available creative assets from a merchant.
| Parameter | Description | Required |
|---|---|---|
merchant_id |
The merchant ID. | ✅ |
Returned Data
| Column | Type |
|---|---|
banner_id |
integer |
name |
string |
image_url |
string |
click_url |
string |
text |
string |
category |
string |
image_width |
integer |
image_height |
integer |
alt_text |
string |
modified_date |
datetime |
merchant_id |
integer |
organization |
string |
www |
string |
Merchant Datafeed (API docs)
Retrieve product data feeds from merchants.
Returned Data
| Column | Type |
|---|---|
merchant_id |
integer |
merchant |
string |
apply_status |
string |
ftp_status |
integer |
number_of_products |
integer |
last_updated |
string |
Merchant Deals (API docs)
Retrieve active promotional deals from merchants.
Returned Data
| Column | Type |
|---|---|
deal_id |
integer |
merchant_id |
integer |
merchant |
string |
start_date |
datetime |
end_date |
datetime |
publish_date |
datetime |
title |
string |
bigimage |
string |
tracking_url |
string |
smallimage |
string |
category |
string |
description |
string |
restrictions |
string |
keywords |
string |
coupon_code |
string |
edit_date |
datetime |
store_id |
integer |
Merchant Gift Cards (API docs)
Retrieve available gift card programs.
Returned Data
| Column | Type |
|---|---|
gift_card_id |
integer |
merchant_id |
integer |
merchant_name |
string |
publish_date |
datetime |
title |
string |
bigimage |
string |
tracking_url |
string |
smallimage |
string |
category |
string |
description |
string |
restrictions |
string |
keywords |
string |
value |
string |
edit_date |
string |
Merchant Search (API docs)
Search for merchants available to join on ShareASale.
| Parameter | Description | Required |
|---|---|---|
search |
Search query to find merchants. | — |
activated_since |
Filter to merchants activated after this date. | — |
category |
Filter by merchant category. | — |
Returned Data
| Column | Type |
|---|---|
merchant_id |
integer |
organization |
string |
www |
string |
category |
string |
status |
string |
commission_text |
string |
sale_comm |
integer |
lead_comm |
decimal |
hit_comm |
integer |
cookie_length |
integer |
auto_approve |
string |
auto_deposit |
integer |
datafeed_items |
integer |
epc_7_day |
integer |
epc_30_day |
decimal |
reversal_rate_7_day |
decimal |
reversal_rate_30_day |
decimal |
ave_sale_7_day |
decimal |
ave_sale_30_day |
integer |
ave_comm_7_day |
integer |
ave_comm_30_day |
decimal |
powerrank_top_100 |
string |
Merchant Status (API docs)
Retrieve current relationship status with merchants.
Returned Data
| Column | Type |
|---|---|
merchant_id |
integer |
merchant |
string |
www |
string |
program_status |
string |
program_category |
string |
sale_comm |
string |
lead_comm |
string |
hit_comm |
string |
approved |
string |
link_url |
string |
store_names |
string |
store_ids |
string |
store_wwws |
string |
store_sale_comms |
string |
store_link_urls |
string |
rulecommissiondate |
datetime |
conversionlinedate |
datetime |
Merchant Timespan (API docs)
Retrieve merchant performance data over a specific time range.
| Parameter | Description | Required |
|---|---|---|
start_date |
Start date (format: MM/DD/YYYY). |
✅ |
end_date |
End date (format: MM/DD/YYYY). |
— |
merchant_id |
Filter by merchant ID. | — |
Returned Data
| Column | Type |
|---|---|
merchant |
string |
clicks |
integer |
gross_sales |
string |
voids |
integer |
net_sales |
string |
sales |
integer |
manual_credits |
integer |
commisssions |
string |
conversion |
decimal |
epc |
integer |
average_order |
integer |
number_sales |
integer |
number_leads |
integer |
number_twotier |
integer |
number_bonuses |
integer |
number_paypercall |
integer |
number_leapfrog |
integer |
sale_commissions |
string |
lead_commissions |
string |
twotier_commissions |
string |
bonus_commissions |
string |
paypercall_commissions |
string |
leapfrog_commissions |
string |
Monthly Summary (API docs)
Retrieve monthly aggregated performance summary.
| Parameter | Description | Required |
|---|---|---|
date_month |
The month to retrieve (format: MM-YYYY). | ✅ |
Returned Data
| Column | Type |
|---|---|
merchant_id |
integer |
merchant |
string |
website |
string |
transaction_in_period |
integer |
voids_in_period |
integer |
gross_sales_amount |
decimal |
total_commision_in_period |
decimal |
Payment Summary (API docs)
Retrieve payment summary for a specific month.
| Parameter | Description | Required |
|---|---|---|
payment_month |
Payment month (1-12). | ✅ |
payment_year |
Payment year (YYYY). | ✅ |
Returned Data
| Column | Type |
|---|---|
merchant_id |
integer |
merchant |
string |
website |
string |
number_of_transactions |
integer |
net_sales |
integer |
commissions |
decimal |
Products (API docs)
Search for products across merchant data feeds.
| Parameter | Description | Required |
|---|---|---|
search |
Product search query. | ✅ |
merchant_id |
Filter by merchant ID. | — |
Returned Data
| Column | Type |
|---|---|
productid |
integer |
name |
string |
merchant_id |
integer |
organization |
string |
link |
string |
thumbnail |
string |
big_image |
string |
price |
decimal |
retail_price |
integer |
category |
integer |
sub_category |
integer |
description |
string |
custom_1 |
string |
custom_2 |
string |
custom_3 |
string |
custom_4 |
string |
custom_5 |
string |
last_updated |
datetime |
status1 |
string |
manufacture |
string |
part_number |
string |
merchant_category |
string |
merchant_sub_category |
string |
short_description |
string |
isbn |
string |
upc |
string |
sku |
string |
cross_sell |
string |
merchant_group |
string |
merchant_sub_group |
string |
compatiable_with |
string |
compare_to |
string |
quantity_discount |
string |
best_seller |
string |
add_to_cart_url |
string |
reviews_url |
string |
option_1 |
string |
option_2 |
string |
option_3 |
string |
options_4 |
string |
option_5 |
string |
reservedforfutureuse1 |
string |
reservedforfutureuse2 |
string |
reservedforfutureuse3 |
string |
reservedforfutureuse4 |
string |
reservedforfutureuse5 |
string |
reservedforfutureuse6 |
string |
reservedforfutureuse7 |
string |
reservedforfutureuse8 |
string |
reservedforfutureuse9 |
string |
reservedforfutureuse10 |
string |
www |
string |
program_category |
string |
status2 |
string |
commission_text |
string |
sale_comm |
integer |
lead_comm |
integer |
hit_comm |
integer |
cookie_length |
integer |
auto_approve |
string |
auto_deposit |
integer |
datafeed_items |
integer |
epc_7_day |
decimal |
epc_30_day |
decimal |
reversal_rate_7_day |
integer |
reversal_rate_30_day |
integer |
ave_sale_7_day |
decimal |
ave_sale_30_day |
decimal |
ave_comm_7_day |
decimal |
ave_comm_30_day |
decimal |
powerrank_top_100 |
string |
store_id |
integer |
Todays Stats (API docs)
Retrieve real-time statistics for the current day.
Returned Data
| Column | Type |
|---|---|
merchant |
string |
status |
string |
commissions |
string |
unique_hits |
integer |
sales |
integer |
conversions |
string |
reversals |
integer |
manual_credits |
integer |
epc |
string |
last_page_clicked |
string |
number_sales |
integer |
number_leads |
integer |
number_twotier |
integer |
number_bonuses |
integer |
number_paypercall |
integer |
number_leapfrog |
integer |
sale_commissions |
string |
lead_commissions |
string |
twotier_commissions |
string |
bonus_commissions |
string |
paypercall_commissions |
string |
leapfrog_commissions |
string |
Traffic (API docs)
Retrieve traffic statistics (clicks) over a date range.
| Parameter | Description | Required |
|---|---|---|
start_date |
Start date (format: MM/DD/YYYY). |
✅ |
end_date |
End date (format: MM/DD/YYYY). |
— |
group_by |
Dimension to group traffic data by. Values: day, month, merchant |
— |
banner_type |
Filter by banner type. | — |
merchant_id |
Filter by merchant ID. | — |
Returned Data: Returned as CSV. Columns are determined by the API response headers.
Void Trail (API docs)
Retrieve voided/reversed transactions and the reasons.
| Parameter | Description | Required |
|---|---|---|
start_date |
Start date (format: MM/DD/YYYY). |
✅ |
end_date |
End date (format: MM/DD/YYYY). |
— |
merchant_id |
Filter by merchant ID. | — |
Returned Data
| Column | Type |
|---|---|
transid |
string |
voiddate |
string |
voidreason |
string |
transamount |
string |
commission |
string |
affcomment |
string |