ReferralCandy MCP by usefulapi
v1.2.1Read campaigns and rewards; enroll advocates, record purchases, update rewards in ReferralCandy.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
referralcandy_list_campaigns List referral campaigns
List the campaigns in the account with their IDs, names, join URLs and state (ACTIVE, PAUSED or STOPPED). Call this first: other tools take campaign IDs. GET /campaigns.json.
referralcandy_list_segments List static segments
List the static contact segments with their IDs. Dynamic segments are not included. Use a segment ID with the segment tools and referralcandy_signup_advocate. GET /segments.json.
referralcandy_list_contacts List contacts
Read contacts enrolled in a campaign, with purchase history and unsubscribe state. Page with id (lowest contact ID to start at) and limit (max 100). GET /contacts.json.
| Parameter | Type | Description |
|---|---|---|
campaignId | integer | Campaign ID (from referralcandy_list_campaigns). Default: the first campaign. |
email | string | Return only the contact with this exact email address. |
id | integer | Lowest contact ID to return (default 1). Use the last ID plus 1 to page. |
limit | integer | Contacts to return (default 100, max 100). |
referralcandy_get_referrer Get a customer's referrer
Look up who referred a customer, if anyone. Returns the referrer's email and the campaign ID, or null. GET /referrer.json.
| Parameter | Type | Description |
|---|---|---|
customer_email * | string | Email address. |
referralcandy_list_referrals List referred purchases
List referred purchases in a time window (UNIX seconds). Filter by the advocate's email or only those still in the review period. Recent referrals appear a few minutes after purchase. GET /referrals.json.
| Parameter | Type | Description |
|---|---|---|
period_from * | integer | Start of the window (UNIX seconds). |
customer_email | string | Only referrals made by this advocate. |
pending_review_only | boolean | Only referrals still in the review period. |
period_to | integer | End of the window (UNIX seconds). Default: the most recent time. |
referralcandy_list_rewards List rewards
List earned advocate rewards, first 200 matches. Filter by advocate email, status (pending_fulfillment or delivered), type (cash, coupon, custom or none), campaign, or start after a reward ID. GET /rewards.json.
| Parameter | Type | Description |
|---|---|---|
campaignId | integer | Campaign ID (from referralcandy_list_campaigns). Default: the first campaign. |
email | string | Only rewards of this advocate. |
since_id | integer | Start after this reward ID. |
status | string | |
type | string |
referralcandy_list_reward_purchases List purchases behind a reward
List the referred purchases that a reward is based on. GET /reward_purchases.json.
| Parameter | Type | Description |
|---|---|---|
reward_id * | integer | Reward ID (from referralcandy_list_rewards). |
referralcandy_signup_advocate Enroll an advocate
Add a contact and try to enroll them in every campaign. Returns the advocate's referral link and sharing page for each enrolled campaign. Check enrollments: a contact can exist without any enrollment. POST /signup.json.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address. |
first_name * | string | |
last_name * | string | |
campaignId | integer | Campaign ID (from referralcandy_list_campaigns). Default: the first campaign. |
segment_id | integer | Static segment to assign the contact to before enrollment is checked. |
referralcandy_record_purchase Record a purchase
Register a completed order so ReferralCandy can detect referrals and reward advocates. order_timestamp must be within 10 minutes of the buyer's visit to the purchase-complete page. Sending the same external_reference_id twice is deduplicated. POST /purchase.json.
| Parameter | Type | Description |
|---|---|---|
browser_ip * | string | IP address of the buyer at purchase time. |
currency_code * | string | ISO 4217 currency code, e.g. USD. |
email * | string | Email address. |
first_name * | string | |
invoice_amount * | number | Invoice amount in the order currency. |
order_timestamp * | integer | Order time (UNIX seconds). |
user_agent * | string | Browser user-agent string of the buyer. |
accepts_marketing | boolean | Marketing opt-in (default true). |
discount_code | string | Discount code used in the order (required if one was used). |
external_reference_id | string | Your own order ID. |
last_name | string | |
locale | string | |
referrer_id | string | Referrer identifier (the aic parameter from the referral link). |
referralcandy_update_referral Mark a referred purchase as returned
Mark a referred customer's purchase as returned. The referral is disregarded and no reward is paid. By default the advocate is emailed. POST /referral.json.
| Parameter | Type | Description |
|---|---|---|
customer_email * | string | Email of the customer who made the referred purchase. |
returned * | boolean | true to disregard the referral (the order was returned). |
notify | boolean | Email the advocate about the disregarded referral (default true). |
referralcandy_add_segment_contact Add a contact to a segment
Add an existing contact to a static segment. The contact then enrolls in every campaign that targets the segment. The contact must already exist (use referralcandy_signup_advocate for a new one). POST /segment_contacts.json.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address. |
segment_id * | integer | Numeric ID. |
referralcandy_remove_segment_contact Remove a contact from a segment
Remove a contact from a static segment. The contact is unenrolled from campaigns that no longer match them. DELETE /segment_contacts.json.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address. |
segment_id * | integer | Numeric ID. |
referralcandy_send_invite Send the welcome invite
Send the welcome email to a contact who is enrolled in a campaign. No email is sent if the contact is not enrolled. POST /invite.json.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address. |
campaignId | integer | Campaign ID (from referralcandy_list_campaigns). Default: the first campaign. |
referralcandy_update_reward_status Set a reward's status
Set a custom reward to pending_fulfillment or delivered, for example after you ship the reward. It can also move a delivered reward back to pending_fulfillment. POST /rewards.json.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Reward ID (from referralcandy_list_rewards). |
status * | string |