GoAffPro MCP by usefulapi

v1.8.1
io.usefulapi/goaffpro Checked 2 days ago Published 1 day ago

Read affiliates, orders, payouts and traffic; set affiliate status and add coupons in GoAffPro.

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

goaffpro_list_affiliates List affiliates

List the affiliates of the program with status, ref code, coupon, group and contact fields. GET /admin/affiliates. Answer: { affiliates: [] }.

ParameterTypeDescription
couponstringOnly the affiliate that owns this coupon code.
created_at_maxstringOnly items created at or before this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
created_at_minstringOnly items created at or after this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
emailstringOnly the affiliate with this email.
fieldsstringComma-separated list of fields to return.
idstringComma-separated affiliate ids.
limitintegerMaximum number of results.
offsetintegerNumber of results to skip (for paging).
ref_codestringOnly the affiliate with this ref code.
since_idstringOnly items with an id greater than this id (paging by id).
statusstringComma-separated statuses: pending, approved, invited, rejected.
updated_at_maxstringOnly affiliates updated at or before this date.
updated_at_minstringOnly affiliates updated at or after this date.

goaffpro_search_affiliates Search affiliates

Search affiliates by a keyword in name, ref_code, email or coupon. GET /admin/affiliates/search. Answer: a list of affiliates.

ParameterTypeDescription
in *stringComma-separated columns to search: name, ref_code, email, coupon.
keyword *stringThe text to look for.
fieldsstringComma-separated list of fields to return.
limitintegerMaximum number of results.
operatorstringHow to match (default starts_with).
sort_columnstring
sort_directionstring

goaffpro_list_orders List orders

List orders that are tied to affiliates, with total, commission, status (approved or rejected) and the date. GET /admin/orders. Answer: { orders: [] }.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
created_at_maxstringOnly items created at or before this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
created_at_minstringOnly items created at or after this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
customer_emailstringOnly orders of this customer email.
fieldsstringComma-separated list of fields to return.
idstringComma-separated order ids.
is_new_customerboolean
is_subscriptionboolean
is_subscription_renewalboolean
limitintegerMaximum number of results.
numberstringComma-separated order numbers.
since_idstringOnly items with an id greater than this id (paging by id).
statusstringComma-separated statuses: approved, rejected.

goaffpro_list_rewards List rewards

List rewards (bonuses) given to affiliates. GET /admin/rewards. Answer: { rewards: [] }.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
created_at_maxstringOnly items created at or before this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
created_at_minstringOnly items created at or after this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
fieldsstringComma-separated list of fields to return.
idstringComma-separated reward ids.
limitintegerMaximum number of results.
order_idstringOnly rewards for this order id.
since_idstringOnly items with an id greater than this id (paging by id).
statusstringComma-separated statuses.
typestringComma-separated reward types.

goaffpro_list_payments List payments

List the payment history to affiliates (amount, method, date). GET /admin/payments. Answer: { payments: [] }.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
created_at_maxstringOnly items created at or before this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
created_at_minstringOnly items created at or after this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
fieldsstringComma-separated list of fields to return.
idstringComma-separated payment ids.
limitintegerMaximum number of results.
offsetintegerNumber of results to skip (for paging).
since_idstringOnly items with an id greater than this id (paging by id).

goaffpro_list_payment_requests List payment requests

List payment requests that affiliates made from their dashboard. GET /admin/payments/requests. Answer: { PaymentRequests: [] }.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
limitintegerMaximum number of results.
since_idstringOnly items with an id greater than this id (paging by id).
statusstringFilter by status, for example in_progress, paid or rejected.

goaffpro_get_pending_payouts Get pending payouts

Show the amount due to each affiliate up to a date. GET /admin/payments/pending. Answer: { pending: [{ affiliate_id, amount }], upto }.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
uptostringAmounts due up to this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.

goaffpro_list_transactions List transactions

List the transaction log (commission credits, payouts, balances) per affiliate. GET /admin/transactions. Answer: { transactions, count, limit, offset }.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
idstringComma-separated transaction ids.
is_paidbooleantrue = only paid, false = only unpaid.
limitintegerMaximum number of results.
offsetintegerNumber of results to skip (for paging).
payout_idstring
typestringEntity type filter, comma-separated.

goaffpro_list_traffic List affiliate traffic

List visits that affiliate links sent to the store (landing page, referrer, time). GET /admin/traffic. Answer: { traffic: [] }. Max limit 1000.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
created_at_maxstringOnly items created at or before this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
created_at_minstringOnly items created at or after this date. Use a date such as 2026-10-01 or 'Sun Jul 26 2019 12:10:07 GMT+0530'.
fieldsstringComma-separated list of fields to return.
limitintegerMaximum number of results.
since_idstringOnly items with an id greater than this id (paging by id).

goaffpro_list_coupons List coupons

List the coupon codes that are assigned to affiliates. GET /admin/coupons. Answer: { coupons: [] }.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
codestringOnly this coupon code.
limitintegerMaximum number of results.
offsetintegerNumber of results to skip (for paging).
typestringOnly this coupon type.

goaffpro_list_groups List affiliate groups

List affiliate groups and their commission settings. GET /admin/groups. Answer: { groups: [] }.

ParameterTypeDescription
fieldsstringComma-separated list of fields to return.
idstringComma-separated group ids.

goaffpro_list_special_commissions List special commission rates

List the special commission rates set for products and collections. GET /admin/commissions. Answer: { commissions: [] }.

goaffpro_list_connections List affiliate-customer connections

List the links between affiliates and customers. GET /admin/connections.

ParameterTypeDescription
affiliate_idstringOnly items for this affiliate id.
customer_emailstring
limitintegerMaximum number of results.
since_idstringOnly items with an id greater than this id (paging by id).
updated_at_maxstringOnly connections updated at or before this date.
updated_at_minstringOnly connections updated at or after this date.

goaffpro_set_affiliate_status Set affiliate status

WRITE: approve, reject or set to pending one affiliate. The affiliate may get an email from GoAffPro. PATCH /admin/affiliates/{id}.

ParameterTypeDescription
affiliate_id *stringThe affiliate id (from goaffpro_list_affiliates).
status *stringThe new status.

goaffpro_add_affiliate_coupon Add a coupon to an affiliate

WRITE: add a discount coupon code to one affiliate. This changes the store discounts. A repeat call can create a second coupon. POST /admin/affiliates/{id}/coupons.

ParameterTypeDescription
affiliate_id *stringThe affiliate id (from goaffpro_list_affiliates).
code *stringThe coupon code, for example JOHN10OFF.
discount_type *stringThe kind of discount.
discount_valuenumberThe discount amount or percent (not needed for free_shipping).