Seal Subscriptions MCP by usefulapi

v1.24.1
io.usefulapi/seal-subscriptions Checked 2 days ago Published 1 day ago

Manage Seal Subscriptions on Shopify: subscriptions, billing attempts, items, discounts, rules.

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

sealsubscriptions_list_subscriptions List subscriptions

List or search the shop's subscriptions (up to 50 per page; pass next_cursor as cursor for the next page): status, customer, interval, total value, shipping address and card brand/last digits. Search by customer email, first or last name; filter by status; optionally include the items and the billing attempts of each. GET /subscriptions.

ParameterTypeDescription
cursorstringOpaque next_cursor from the previous reply; omit for the first page. Keep the same filters.
pageintegerDeprecated: only page 1 is accepted. For later pages use the returned next_cursor as cursor.
querystringSearch text: customer email, first name or last name.
statusstringOnly subscriptions in this status (default: all).
with_billing_attemptsbooleanInclude each subscription's billing attempts (default false).
with_itemsbooleanInclude each subscription's items (default false).

sealsubscriptions_list_subscriptions_by_billing_date List subscriptions by billing date

Subscriptions that have at least one billing attempt scheduled between two UTC date-times: the way to see what will be charged tomorrow or this week. Each subscription carries a cursor; pass the last one's cursor as `cursor` to get the next page. GET /subscriptions-by-billing-date.

ParameterTypeDescription
from_datetime *stringStart of the period in UTC, yyyy-mm-ddThh:mm:ss, e.g. 2030-12-24T00:00:00.
to_datetime *stringEnd of the period in UTC, yyyy-mm-ddThh:mm:ss, e.g. 2030-12-24T23:59:59.
cursorstringCursor of the last subscription of the previous page.

sealsubscriptions_get_subscription Get subscription

One subscription with everything Seal knows: customer, shipping and billing address, status, intervals, delivery method, items with discounts, billing attempts (with status and error messages), fulfillment orders, invoices, tags and the activity log. Private customer links are removed. GET /subscription?id=.

ParameterTypeDescription
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_list_subscription_rules List subscription rules

List the subscription rules (plans) of the shop: name, payment type, the products and variants they apply to and their selling plans. GET /subscription-rules.

ParameterTypeDescription
pageintegerPage number, from 1 (default 1); 50 per page. Pass the previous reply's next_page.

sealsubscriptions_get_subscription_rule Get subscription rule

One subscription rule by id, with its products, variants and selling plans. GET /subscription-rule?id=.

ParameterTypeDescription
rule_id *integerSubscription rule id (from sealsubscriptions_list_subscription_rules).

sealsubscriptions_list_selling_plans List selling plans

Read a subscription rule's complete selling plans, including initial/fixed and recurring pricing policies, cycle thresholds, billing and delivery intervals. Returns Seal's original field names and values. Read only: Seal's public API does not support editing these policies or reading/creating/updating automated interval-change rules; configure those in the Seal app. Does not change existing contracts. GET /subscription-rule?id=.

ParameterTypeDescription
rule_id *integerSubscription rule id from sealsubscriptions_list_subscription_rules.

sealsubscriptions_list_webhooks List webhooks

List the webhooks registered for this shop through the API (topic and address). GET /webhooks.

sealsubscriptions_pause_subscription Pause subscription

WRITE: Pause an active subscription: no further charges or shipments until it is resumed. Undo with sealsubscriptions_resume_subscription. PUT /subscription action=pause.

ParameterTypeDescription
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_resume_subscription Resume subscription

WRITE: Resume a paused subscription so charges and shipments continue on the schedule. PUT /subscription action=resume.

ParameterTypeDescription
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_reactivate_subscription Reactivate subscription

WRITE: Reactivate a cancelled subscription (the effect is the same as resume; use this for cancelled ones). Charges restart on the schedule, so the customer may be billed. PUT /subscription action=reactivate.

ParameterTypeDescription
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_cancel_customer_subscription Cancel subscription

WRITE: Cancel a subscription now: all future charges and shipments stop and the customer may get Seal's cancellation email. It can be brought back with sealsubscriptions_reactivate_subscription. For a later cancellation use sealsubscriptions_schedule_cancellation. PUT /subscription action=cancel.

ParameterTypeDescription
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_schedule_cancellation Schedule subscription cancellation

WRITE: Schedule the cancellation of a subscription for a future date and time (it stays active until then). PUT /subscription-schedule-cancellation.

ParameterTypeDescription
date *stringCancellation date, yyyy-mm-dd.
subscription_id *integerThe subscription's `id` (not its `internal_id`).
time *stringCancellation time, hh:mm (24-hour), in the given timezone.
timezone *stringUTC offset of the date and time, e.g. +00:00 or -04:00.

sealsubscriptions_add_items Add items to subscription

WRITE: Add products to a subscription. Prices are in the subscription's currency and change what the customer pays on the next charge. An item with one_time=true is removed after the next renewal. PUT /subscription action=add_items.

ParameterTypeDescription
items *array
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_edit_items Edit subscription items

WRITE: Change existing items of a subscription: variant, quantity (> 0), price (>= 0), SKU, one-time flag, properties. Changes what the customer pays on the next charge. PUT /subscription action=edit_items.

ParameterTypeDescription
items *array
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_remove_items Remove items from subscription

WRITE: Remove items from a subscription by item id. The customer stops receiving and paying for them. PUT /subscription action=remove_items.

ParameterTypeDescription
item_ids *array
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_edit_subscription Edit subscription

WRITE: Edit a subscription's schedule and details: delivery and billing interval (a billing interval longer than the delivery interval makes it prepaid), min/max number of payments, note attributes (an empty list removes them), delivery method and price, and the shipping address. Only the fields you pass change. To change items use the item tools. PUT /subscription action=edit.

ParameterTypeDescription
subscription_id *integerThe subscription's `id` (not its `internal_id`).
automatically_update_product_pricesbooleanWhen switching between prepaid and not prepaid, reprice the items.
billing_intervalstringBilling interval, e.g. "8 week". Longer than delivery_interval = prepaid.
billing_max_cyclesintegerMaximum number of payments (0 = unlimited).
billing_min_cyclesintegerMinimum number of payments.
delivery_intervalstringDelivery interval, e.g. "4 week" or "1 month".
delivery_method_codestring
delivery_method_presentment_titlestring
delivery_method_titlestring
delivery_pricenumber
note_attributesarrayReplaces all note attributes.
s_address1string
s_address2string
s_citystring
s_companystring
s_countrystring
s_country_codestring
s_first_namestring
s_last_namestring
s_phonestring
s_provincestring
s_province_codestring
s_zipstring

sealsubscriptions_reschedule_billing_attempt Reschedule billing attempt

WRITE: Move a billing attempt that has not been processed yet to another date and time. With reset_schedule=true the later attempts are rebuilt from the new date. PUT /subscription-billing-attempt action=reschedule.

ParameterTypeDescription
billing_attempt_id *integerBilling attempt id (billing_attempts[].id from sealsubscriptions_get_subscription).
date *stringNew date, yyyy-mm-dd.
subscription_id *integerThe subscription's `id` (not its `internal_id`).
time *stringNew time, hh:mm (24-hour), in the given timezone.
timezone *stringUTC offset of the date and time, e.g. +00:00 or -04:00.
reset_schedulebooleanRebuild the rest of the schedule after this attempt (default false).

sealsubscriptions_skip_billing_attempt Skip billing attempt

WRITE: Skip one upcoming billing attempt so the customer is not charged for that cycle. Undo with sealsubscriptions_unskip_billing_attempt. PUT /subscription-billing-attempt action=skip.

ParameterTypeDescription
billing_attempt_id *integerBilling attempt id (billing_attempts[].id from sealsubscriptions_get_subscription).
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_unskip_billing_attempt Unskip billing attempt

WRITE: Bring back a skipped billing attempt, so it is charged on its date again. PUT /subscription-billing-attempt action=unskip.

ParameterTypeDescription
billing_attempt_id *integerBilling attempt id (billing_attempts[].id from sealsubscriptions_get_subscription).
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_delete_billing_attempt Delete billing attempt

WRITE: Delete a billing attempt that has not been processed. Seal keeps 65 days of attempts scheduled, so a deleted one is recreated within hours unless the schedule is moved first (see sealsubscriptions_reschedule_billing_attempt). DELETE /subscription-billing-attempt.

ParameterTypeDescription
billing_attempt_id *integerBilling attempt id (billing_attempts[].id from sealsubscriptions_get_subscription).
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_reschedule_fulfillment_order Reschedule fulfillment order

WRITE: Move a fulfillment order of a prepaid subscription to another date and time. PUT /subscription-fulfillment-order action=reschedule.

ParameterTypeDescription
date *stringNew date, yyyy-mm-dd.
fulfillment_order_id *integerFulfillment order id (fulfillment_orders[].id from sealsubscriptions_get_subscription).
subscription_id *integerThe subscription's `id` (not its `internal_id`).
time *stringNew time, hh:mm (24-hour), in the given timezone.
timezone *stringUTC offset of the date and time, e.g. +00:00 or -04:00.

sealsubscriptions_create_charge_now Charge subscription now

WRITE: CHARGES THE CUSTOMER'S PAYMENT METHOD IMMEDIATELY for the next billing attempt of the subscription and creates a Shopify order; it does not wait for the scheduled date. Only call it when the user clearly asked for an immediate charge. With reset_schedule=true the later attempts are rebuilt from today. PUT /subscription-create-charge-now.

ParameterTypeDescription
subscription_id *integerThe subscription's `id` (not its `internal_id`).
reset_schedulebooleanRebuild the rest of the schedule after this charge (default false).

sealsubscriptions_process_charge Process a specific charge

WRITE: CHARGES THE CUSTOMER'S PAYMENT METHOD NOW for one specific billing attempt (for example a failed or upcoming one) and creates a Shopify order. Only call it when the user clearly asked for that charge. PUT /subscription-process-charge.

ParameterTypeDescription
billing_attempt_id *integerBilling attempt id (billing_attempts[].id from sealsubscriptions_get_subscription).
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_apply_discount_code Apply discount code

WRITE: Apply a Shopify discount code to an auto-charging subscription (not to recurring-invoice subscriptions); it lowers what the customer pays on the next charges. PUT /subscription-discount-code action=apply.

ParameterTypeDescription
discount_code *stringThe discount code as the customer would type it.
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_remove_discount_code Remove discount code

WRITE: Remove a discount code from a subscription. Use the discount code id from the subscription's items[].discount_codes[].id (a uuid), not the code text. DELETE /subscription-discount-code.

ParameterTypeDescription
discount_code_id *stringDiscount code id (a uuid) from sealsubscriptions_get_subscription → items[].discount_codes[].id.
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_send_payment_method_update_email Email customer to update payment method

WRITE: SENDS AN EMAIL TO THE CUSTOMER of the subscription with a link to update their payment method (for example after failed charges). Only call it when the user clearly asked to contact the customer. PUT /subscription action=send_payment_method_update_email.

ParameterTypeDescription
subscription_id *integerThe subscription's `id` (not its `internal_id`).

sealsubscriptions_edit_subscription_rule Edit subscription rule

WRITE: Edit a subscription rule: its name, the plan selector label (`options`, e.g. "Deliver every") and the products it applies to. Cannot edit selling-plan pricing, billing intervals or automated interval-change rules; use the Seal app for those settings. product_variants REPLACES all products and variants linked to the rule: to add some without removing the others use sealsubscriptions_append_rule_product_variants. PUT /subscription-rule.

ParameterTypeDescription
rule_id *integerSubscription rule id.
namestring
optionsstringLabel for the plan selector, e.g. "Deliver every".
product_variantsarrayThe complete new list of products/variants (replaces the current list; an empty list unlinks every product).

sealsubscriptions_append_rule_product_variants Add products to subscription rule

WRITE: Add products or variants to a subscription rule without touching the ones already linked. PUT /subscription-rule/append-product-variants.

ParameterTypeDescription
product_variants *arrayProducts/variants to add.
rule_id *integerSubscription rule id.