Smile.io MCP by usefulapi

v1.41.1
io.usefulapi/smile-io Checked 3 days ago Published 2 days ago

Look up loyalty customers, points history, rewards and VIP tiers, and add points or activities.

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

smile_list_customers List customers

List loyalty-program customers, newest first, with their points balance, state and VIP tier id. Look a customer up by exact email, or filter by state or last-updated time. Cursor-paginated (metadata.next_cursor). Smile: GET /customers.

ParameterTypeDescription
cursorstringCursor from the previous response's metadata.next_cursor (or previous_cursor). Omit for the first page.
emailstringExact email address to look up.
include_vip_statusbooleanInclude each customer's vip_status object (include=vip_status).
limitintegerMaximum number of results, 1-250 (Smile default 50).
statestringcandidate = not yet joined, member = in the program, disabled = excluded.
updated_at_minstringOnly records updated at/after this ISO 8601 date-time, e.g. 2026-01-01T00:00:00Z.

smile_get_customer Get a customer

Fetch one customer by Smile customer ID: name, email, state, points_balance, referral_url, vip_tier_id, and optionally their VIP status with current and next tier. Smile: GET /customers/{id}.

ParameterTypeDescription
customer_id *integerSmile customer ID.
includearrayRelated objects to include, e.g. ["vip_status.vip_tier", "vip_status.next_vip_tier"].

smile_list_points_transactions List points transactions

List points transactions (every earn, spend and manual adjustment), newest first — e.g. a customer's full points history. Each has points_change (+/-), a customer-visible description and a merchant internal_note. Cursor-paginated. Smile: GET /points_transactions.

ParameterTypeDescription
cursorstringCursor from the previous response's metadata.next_cursor (or previous_cursor). Omit for the first page.
customer_idintegerOnly this customer's transactions.
limitintegerMaximum number of results, 1-250 (Smile default 50).
updated_at_minstringOnly records updated at/after this ISO 8601 date-time, e.g. 2026-01-01T00:00:00Z.

smile_get_points_transaction Get a points transaction

Fetch one points transaction by ID. Smile: GET /points_transactions/{id}.

ParameterTypeDescription
points_transaction_id *integerSmile points transaction ID.

smile_list_points_products List points products (ways to redeem)

List points products — the rewards customers can buy with points. 'fixed' products cost points_price; 'variable' products trade variable_points_step points for variable_points_step_reward_value, between variable_points_min and variable_points_max. Each embeds its reward. Page-numbered (page, page_size); a page shorter than page_size is the last. Smile: GET /points_products.

ParameterTypeDescription
exchange_typestringOnly fixed- or variable-price products.
pageintegerPage number, starting at 1.
page_sizeintegerResults per page, 1-250 (default 50).

smile_get_points_product Get a points product

Fetch one points product (a way to redeem points) by ID, including its reward. Smile: GET /points_products/{id}.

ParameterTypeDescription
points_product_id *integerSmile points product ID.

smile_list_reward_fulfillments List reward fulfillments

List rewards that have been issued to customers — usually discount codes — with code, fulfillment_status (pending/issued/cancelled/failed), usage_status (used/unused/untracked), used_at and expires_at. Use customer_id to answer 'what codes does this customer have?'. Cursor-paginated. Smile: GET /reward_fulfillments.

ParameterTypeDescription
cursorstringCursor from the previous response's metadata.next_cursor (or previous_cursor). Omit for the first page.
customer_idintegerOnly this customer's rewards.
fulfillment_statusstring
limitintegerMaximum number of results, 1-250 (Smile default 50).
updated_at_minstringOnly records updated at/after this ISO 8601 date-time, e.g. 2026-01-01T00:00:00Z.
usage_statusstring

smile_list_earning_rules List earning rules (ways to earn)

List the enabled earning rules — the ways customers earn points or rewards (placing an order, signing up, birthdays, custom activities), with reward, reward_value, earning_limit and any VIP-tier restriction. Cursor-paginated. Smile: GET /earning_rules.

ParameterTypeDescription
cursorstringCursor from the previous response's metadata.next_cursor (or previous_cursor). Omit for the first page.
limitintegerMaximum number of results, 1-250 (Smile default 50).

smile_list_vip_tiers List VIP tiers

List the VIP program's tiers, sorted by milestone (the threshold to reach each tier), optionally with each tier's perks and entry rewards. Smile: GET /vip_tiers.

ParameterTypeDescription
includearrayNested objects to include, e.g. ["perks", "entry_rewards"].

smile_get_points_settings Get points settings

Fetch the points program's configuration, e.g. the points currency label ("Points", "Stars"). Smile: GET /points_settings.

smile_get_referral_settings Get referral settings

Fetch the referral program's configuration: whether it is active, and the sender (advocate) and receiver (friend) rewards. Smile: GET /referral_settings.

smile_create_points_transaction Adjust a customer's points balance

WRITE: add or deduct points from a customer's balance (a manual adjustment, e.g. a goodwill credit or a correction). points_change > 0 adds, < 0 deducts; Smile rejects a deduction that would make the balance negative. Undo by creating an opposite adjustment. `description` is shown to the customer; `internal_note` is merchant-only. To reward a customer for completing an action, prefer smile_create_activity. Requires the points_transaction:write scope. Smile: POST /points_transactions.

ParameterTypeDescription
customer_id *integerSmile customer ID.
points_change *integerPoints to add (positive) or deduct (negative).
descriptionstringCustomer-visible reason, e.g. "Points correction".
internal_notestringMerchant-only note, never shown to the customer.

smile_create_activity Record a customer activity

WRITE: record that a customer performed an action (identified by an activity type token configured in Smile Admin, e.g. a custom 'newsletter signup' activity). Smile then asynchronously applies the store's earning rules and may issue points or rewards. Identify the customer by customer_id OR customer_email (exactly one). Pass distinct_id (e.g. an order number) to make it idempotent — a second activity with the same token + distinct_id is rejected. Custom activity types need Smile's Plus/Enterprise plan. Requires the activity:write scope. Smile: POST /activities.

ParameterTypeDescription
token *stringActivity type token, e.g. activity_f57a9b5a8d0ac5.
created_on_origin_atstringISO 8601 date-time the action actually happened, if earlier than now.
customer_emailstringCustomer email (or give customer_id).
customer_idintegerSmile customer ID (or give customer_email).
distinct_idstringUnique id for this activity in your system; prevents duplicates for the same token.

smile_purchase_points_product Redeem a customer's points for a reward

WRITE — SPENDS THE CUSTOMER'S POINTS: redeem points on the customer's behalf by purchasing a points product; Smile deducts the points and issues the reward (the response's points_purchase.reward_fulfillment usually holds a discount code). Only do this when the customer asked for it. For a 'variable' product pass points_to_spend; leave it out for 'fixed' products. There is no API to cancel a redemption — a mistaken one can only be compensated with smile_create_points_transaction. Requires the points_purchase:write scope. Smile: POST /points_products/{id}/purchase.

ParameterTypeDescription
customer_id *integerSmile customer ID.
points_product_id *integerSmile points product ID.
points_to_spendintegerPoints to spend — variable-price products only.