Friendbuy MCP by usefulapi

v1.2.1
io.usefulapi/friendbuy Checked 1 day ago Published 50 minutes ago

Read referral analytics, loyalty balances and coupons, and record purchases in Friendbuy.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

friendbuy_list_shares List advocate shares

List referral shares sent by advocates in a date range, optionally by campaign, advocate or channel. Friendbuy: GET /v1/analytics/shares.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
advocate_customer_idstringYour customer id for the shopper (not a Friendbuy id).
advocate_emailstringEmail address to filter on.
campaign_idstringCampaign id (UUID) to filter on.
channelstringShare channel to filter on.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_list_clicks List valid referral clicks

List valid referral-link clicks in a date range, optionally by campaign or channel. Friendbuy: GET /v1/analytics/clicks.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
campaign_idstringCampaign id (UUID) to filter on.
channelstringChannel the click came from.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_list_account_signups List referral sign-ups

List account sign-ups that came from a referral in a date range, filterable by campaign, customer or email. Friendbuy: GET /v1/analytics/account-sign-ups.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
campaign_idstringCampaign id (UUID) to filter on.
customer_idstringYour customer id for the shopper (not a Friendbuy id).
emailstringEmail address to filter on.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_list_purchases List referral purchases

List purchases attributed to a referral in a date range, filterable by campaign, customer or email. Friendbuy: GET /v1/analytics/purchases.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
campaign_idstringCampaign id (UUID) to filter on.
customer_idstringYour customer id for the shopper (not a Friendbuy id).
emailstringEmail address to filter on.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_list_widget_views List widget views

List widget views in a date range, filterable by campaign, widget name or widget type. Friendbuy: GET /v1/analytics/widget-views.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
campaign_idstringCampaign id (UUID) to filter on.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.
widget_namestringWidget name to filter on.
widget_typestringWidget type to filter on.

friendbuy_list_email_captures List email captures

List emails captured by a widget in a date range, filterable by campaign, capture type or email. Friendbuy: GET /v1/analytics/email-captures.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
campaign_idstringCampaign id (UUID) to filter on.
capture_typestringCapture type to filter on.
emailstringEmail address to filter on.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_get_email_metrics Get email metrics

Get referral email metrics for whole days in a timezone, optionally with a daily series. Friendbuy: GET /v1/analytics/email-metrics.

ParameterTypeDescription
from_date *stringFirst day, yyyy-mm-dd.
to_date *stringLast day, yyyy-mm-dd.
zone *stringTimezone for the period, for example America/New_York.
campaign_idstringCampaign id (UUID) to filter on.
include_seriesbooleanInclude a daily time series in the reply.
widget_idstringWidget id (UUID) to filter on.

friendbuy_list_distributed_advocate_rewards List advocate rewards

List advocate rewards distributed in a date range, filterable by campaign or advocate. Friendbuy: GET /v1/analytics/distributed-advocate-rewards.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
advocate_customer_idstringYour customer id for the shopper (not a Friendbuy id).
advocate_emailstringEmail address to filter on.
campaign_idstringCampaign id (UUID) to filter on.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_list_distributed_friend_incentives List friend incentives

List friend incentives distributed in a date range, filterable by campaign or friend. Friendbuy: GET /v1/analytics/distributed-friend-incentives.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
campaign_idstringCampaign id (UUID) to filter on.
friend_customer_idstringYour customer id for the shopper (not a Friendbuy id).
friend_emailstringEmail address to filter on.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_list_referral_rewards List referral rewards

List referral rewards in a date range, filterable by campaign or advocate. Friendbuy: GET /v1/analytics/rewards/referral.

ParameterTypeDescription
from_date *stringStart of the search period, ISO 8601 timestamp (for example 2026-01-01T00:00:00Z).
to_date *stringEnd of the search period, ISO 8601 timestamp (for example 2026-01-31T23:59:59Z).
advocate_customer_idstringYour customer id for the shopper (not a Friendbuy id).
advocate_emailstringEmail address to filter on.
campaign_idstringCampaign id (UUID) to filter on.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_list_loyalty_ledger_heads List loyalty ledger heads

List every customer's loyalty balance head for one currency. Friendbuy: GET /v1/analytics/loyalty/ledger-heads.

ParameterTypeDescription
currency *stringLedger currency, such as USD, or a custom points currency defined in the account.
page_sizeintegerResults per page.
page_tokenstringnextPageToken from the previous reply, to get the next page.

friendbuy_get_customer Get a customer

Get a Friendbuy customer record by your customer id. Friendbuy: GET /v1/customers?id=.

ParameterTypeDescription
customer_id *stringYour customer id for the shopper.

friendbuy_get_member_tier Get a member tier

Get the loyalty member tier of a customer by your customer id. Friendbuy: GET /v1/customers/member-tier?id=.

ParameterTypeDescription
customer_id *stringYour customer id for the shopper.

friendbuy_get_ledger_balance Get a loyalty balance

Get a customer's loyalty balance in one currency, by Friendbuy customer id (your customer id). Friendbuy: GET /v1/ledger-balance.

ParameterTypeDescription
currency *stringLedger currency, such as USD, or a custom points currency defined in the account.
customer_id *stringYour customer id for the shopper.

friendbuy_get_custom_ledger_balance Get a loyalty balance by custom id

Get a loyalty balance by your custom customer id, for shoppers without a Friendbuy customer record. Friendbuy: GET /v1/ledger-balance-custom.

ParameterTypeDescription
currency *stringLedger currency, such as USD, or a custom points currency defined in the account.
custom_customer_id *stringYour custom customer id.

friendbuy_list_ledger_entries List loyalty ledger entries

List a customer's loyalty ledger entries in one currency, from a timestamp onward. Friendbuy: GET /v1/ledger-entries.

ParameterTypeDescription
created_after *stringReturn entries created after this ISO 8601 timestamp.
currency *stringLedger currency, such as USD, or a custom points currency defined in the account.
customer_id *stringYour customer id for the shopper.

friendbuy_get_user_data Get stored personal data

Get the personal data Friendbuy holds for one shopper, by email or your customer id (at least one). Friendbuy: GET /v1/user-data.

ParameterTypeDescription
customer_idstringYour customer id for the shopper (not a Friendbuy id).
emailstringEmail address to filter on.

friendbuy_get_referral_status Check a referral code

Check a referral, product-sharing or influencer code: its campaign type and status. Case and punctuation are ignored. Friendbuy: GET /v1/referral-status.

ParameterTypeDescription
code *stringThe code to look up, for example EMMA-10.

friendbuy_list_coupons List reward coupons

List reward coupons a customer received or redeemed, by customer id or email (at least one). Friendbuy: GET /v1/reward/coupons.

ParameterTypeDescription
customer_idstringYour customer id for the shopper (not a Friendbuy id).
emailstringEmail address to filter on.
statusstringReturn only distributed or only redeemed coupons.

friendbuy_list_redemption_options List redemption options

List the active loyalty redemption options configured in the Friendbuy dashboard. Friendbuy: GET /v1/reward/redemption-options.

friendbuy_track_purchase Record a purchase

Record a purchase event, so a referral or reward can be attributed to it. Changes Friendbuy data. Friendbuy: POST /v1/event/purchase.

ParameterTypeDescription
order_id *stringUnique order id for the purchase.
amountnumberOrder total, in the currency below.
attribution_idstring
coupon_codestring
currencystringISO currency code, for example USD.
customer_idstringYour customer id for the shopper (not a Friendbuy id).
emailstringEmail address to filter on.
first_namestring
ip_addressstring
is_new_customerbooleanTrue when this is the customer's first purchase.
last_namestring
productsarrayProducts in the order.
referral_codestring
user_agentstring

friendbuy_track_account_signup Record an account sign-up

Record an account sign-up event, so a referral can be credited for it. Changes Friendbuy data. Friendbuy: POST /v1/event/account-sign-up.

ParameterTypeDescription
customer_id *stringYour e-commerce platform id for the new customer, for example a Shopify customer id.
email *stringEmail of the new account.
attribution_idstring
coupon_codestring
first_namestring
ip_addressstring
last_namestring
user_agentstring

friendbuy_track_custom_event Record a custom event

Record a custom event of a type you define, such as a newsletter sign-up. Changes Friendbuy data. Friendbuy: POST /v1/event/custom.

ParameterTypeDescription
email *stringEmail of the user who did the event.
event_type *stringThe event type, for example newsletter signup.
attribution_idstring
coupon_codestring
customer_idstringYour customer id for the shopper (not a Friendbuy id).
deduplication_idstringSame id twice means one event.
first_namestring
ip_addressstring
is_new_customerboolean
last_namestring
referral_codestring
user_agentstring

friendbuy_upsert_customer Add a customer record

Add a customer to Friendbuy's records, with profile fields. Changes Friendbuy data. Friendbuy: POST /v1/customer.

ParameterTypeDescription
customer_id *stringYour e-commerce platform id for the customer, for example a Shopify customer id.
email *stringEmail of the customer.
citystring
countrystringCountry code.
first_namestring
is_new_customerboolean
languagestring
last_namestring
statestring
timezonestringIANA timezone, for example Europe/Amsterdam.
zip_codestring

friendbuy_send_share_email Send a referral share email

Send a campaign's referral share email from an advocate to up to 10 friends. Each advocate may send 10 shares a day. Sends email to third parties. Friendbuy: POST /v1/share/email.

ParameterTypeDescription
campaign_id *stringCampaign id (UUID) whose share email to send.
email *stringEmail of the advocate who shares.
recipients *arrayFriend email addresses, 1 to 10.
customer_idstringYour customer id for the shopper (not a Friendbuy id).
first_namestring
messagestringPersonal note added to the email.