ReferralCandy MCP by usefulapi

v1.2.1
io.usefulapi/referralcandy Checked 3 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
campaignIdintegerCampaign ID (from referralcandy_list_campaigns). Default: the first campaign.
emailstringReturn only the contact with this exact email address.
idintegerLowest contact ID to return (default 1). Use the last ID plus 1 to page.
limitintegerContacts 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.

ParameterTypeDescription
customer_email *stringEmail 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.

ParameterTypeDescription
period_from *integerStart of the window (UNIX seconds).
customer_emailstringOnly referrals made by this advocate.
pending_review_onlybooleanOnly referrals still in the review period.
period_tointegerEnd 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.

ParameterTypeDescription
campaignIdintegerCampaign ID (from referralcandy_list_campaigns). Default: the first campaign.
emailstringOnly rewards of this advocate.
since_idintegerStart after this reward ID.
statusstring
typestring

referralcandy_list_reward_purchases List purchases behind a reward

List the referred purchases that a reward is based on. GET /reward_purchases.json.

ParameterTypeDescription
reward_id *integerReward 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.

ParameterTypeDescription
email *stringEmail address.
first_name *string
last_name *string
campaignIdintegerCampaign ID (from referralcandy_list_campaigns). Default: the first campaign.
segment_idintegerStatic 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.

ParameterTypeDescription
browser_ip *stringIP address of the buyer at purchase time.
currency_code *stringISO 4217 currency code, e.g. USD.
email *stringEmail address.
first_name *string
invoice_amount *numberInvoice amount in the order currency.
order_timestamp *integerOrder time (UNIX seconds).
user_agent *stringBrowser user-agent string of the buyer.
accepts_marketingbooleanMarketing opt-in (default true).
discount_codestringDiscount code used in the order (required if one was used).
external_reference_idstringYour own order ID.
last_namestring
localestring
referrer_idstringReferrer 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.

ParameterTypeDescription
customer_email *stringEmail of the customer who made the referred purchase.
returned *booleantrue to disregard the referral (the order was returned).
notifybooleanEmail 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.

ParameterTypeDescription
email *stringEmail address.
segment_id *integerNumeric 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.

ParameterTypeDescription
email *stringEmail address.
segment_id *integerNumeric 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.

ParameterTypeDescription
email *stringEmail address.
campaignIdintegerCampaign 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.

ParameterTypeDescription
id *integerReward ID (from referralcandy_list_rewards).
status *string