LogoLogo
REST APIWebhooksHelp Center →
  • Introduction
  • JavaScript API
    • Overview
  • REST API
    • Overview
    • Campaigns
      • The campaign object
      • List campaigns
      • Create campaign
      • Retrieve campaign
      • Update campaign
    • Affiliates
      • The affiliate object
      • List affiliates
      • Create affiliate
      • Retrieve affiliate
      • Update affiliate
      • Magic Link (SSO)
    • Affiliate Links
      • The affiliate link object
      • List affiliate links
      • Create affiliate link
      • Retrieve affiliate link
      • Update affiliate link
    • Affiliate Coupons
      • The affiliate coupon object
      • List affiliate coupons
      • Create affiliate coupon
      • Retrieve affiliate coupon
    • Referrals
      • The referral object
      • List referrals
    • Commissions
      • The commission object
      • List commissions
      • Retrieve commission
      • Update commission
      • Delete commission
    • Payouts
      • The payout object
      • List payouts
      • Retrieve a payout
      • Mark a payout as paid
  • Webhooks
    • Overview
    • Endpoints
    • Requests
    • Event types
    • Signed webhooks
  • Links
    • Help Center
    • Sign up
    • Login
    • Learn more about Rewardful
Powered by GitBook
On this page
  • Request
  • Optional parameters
  • Expandable objects
  • Examples

Was this helpful?

Export as PDF
  1. REST API
  2. Affiliates

List affiliates

Returns a list of your affiliates. The affiliates are returned sorted by creation date, with the most recent affiliates appearing first. The list can also be filtered using various criteria.

Request

Method

URL

GET

https://api.getrewardful.com/v1/affiliates

Optional parameters

Parameter

Description

campaign_id

A filter based on the affiliate's campaign.

email

A filter based on the affiliate's email address.*

stripe_customer_id

A filter based on the affiliate's Stripe customer ID.* (Applies to customer referrers)

page

limit

How many results to return per page. Default is 25, maximum is 100.

expand

*Filtering by email or stripe_customer_id will return a list with one (or zero) items.

Expandable objects

Parameter

Description

campaign

Includes the campaign details as a nested object for each affiliate in the list.

links

Includes an array of the affiliate's links as a nested object for each affiliate in the list.

commission_stats

Include a nested object describing the affiliate's commission stats for each affiliate in the list.

Examples

List all affiliates

curl --request GET \
  --url https://api.getrewardful.com/v1/affiliates \
  -u YOUR_API_SECRET:

List all affiliates and expand campaign data

curl --request GET \
  --url https://api.getrewardful.com/v1/affiliates?expand=campaign \
  -u YOUR_API_SECRET:

List all affiliates and expand campaign and links data

curl --request GET \
  --url https://api.getrewardful.com/v1/affiliates?expand[]=campaign&expand[]=links \
  -u YOUR_API_SECRET:

Filter list of affiliates by campaign

curl --request GET \
  --url https://api.getrewardful.com/v1/affiliates?campaign_id=c3482343-8680-40c5-af9a-9efa119713b5 \
  -u YOUR_API_SECRET:

Filter list of affiliates by email address

curl --request GET \
  --url https://api.getrewardful.com/v1/affiliates?email=joe@example.com \
  -u YOUR_API_SECRET:
PreviousThe affiliate objectNextCreate affiliate

Last updated 6 months ago

Was this helpful?

cursor specifying which page to fetch.

Which object(s) to in response data. See below for available objects.

Pagination
expand