Cratejoy MCP by usefulapi

v1.25.1
io.usefulapi/cratejoy Checked 2 days ago Published 1 day ago

Read Cratejoy subscriptions, customers, orders and shipments; skip or cancel subscriptions.

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

cratejoy_get_store_metadata Get store metadata

The store-level metadata record (id, store_id, created_at, updated_at, data: free-form JSON attached to the store). GET /v1/metadata/.

cratejoy_list_customers List customers

List customers (id, name, email, country, location, num_orders, num_subscriptions, subscription_status, total_revenue). Filter by email or name, or with `filters` (e.g. { 'addresses.city': 'Austin' }). Relationships: addresses, logs, carts, notes, orders, shipments, subscriptions. GET /v1/customers/.

ParameterTypeDescription
emailstringExact customer email.
filtersobjectExtra Cratejoy filters as { '[relation.]property[__comparison]': value }. Comparisons: eq (default), ne, lt, le, gt, ge, like, ilike (% is the wildcard), in, nin (comma-separated), is_null. Status col…
limitintegerResults per page, 1-100 (default 25).
namestringCustomer name contains this text (case-insensitive).
pageintegerPage number, counting from 0 (default 0). Pass the previous reply's next_page.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_get_customer Get customer

One customer by id, optionally with relationships (addresses, subscriptions, orders, shipments, notes...). GET /v1/customers/{customer_id}/.

ParameterTypeDescription
customer_id *integerCratejoy customer id.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_list_subscriptions List subscriptions

List subscriptions (id, status, autorenew, billing_name, start_date, end_date, skipped_date, is_test, product_billing_id). Filter by status and end-date range, or with `filters` (e.g. { 'customer.email__like': '%@example.com' }). Relationships: customer, billing, term, product, address, orders, shipments, logs. GET /v1/subscriptions/.

ParameterTypeDescription
ends_afterstringOnly subscriptions whose end_date is on or after this date/date-time.
ends_beforestringOnly subscriptions whose end_date is on or before this date/date-time.
filtersobjectExtra Cratejoy filters as { '[relation.]property[__comparison]': value }. Comparisons: eq (default), ne, lt, le, gt, ge, like, ilike (% is the wildcard), in, nin (comma-separated), is_null. Status col…
limitintegerResults per page, 1-100 (default 10).
pageintegerPage number, counting from 0 (default 0). Pass the previous reply's next_page.
statusstringSubscription status (unpaid, suspended and others are deprecated by Cratejoy).
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_get_subscription Get subscription

One subscription by id, optionally with relationships (customer, billing, term, product, address, orders, shipments, logs). GET /v1/subscriptions/{sub_id}/.

ParameterTypeDescription
subscription_id *integerCratejoy subscription id.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_list_subscription_coupons List subscription coupons

Coupons applied to a subscription's next renewal (coupon_id, code_used, enabled, num_renewals). GET /v1/subscriptions/{sub_id}/coupons/.

ParameterTypeDescription
subscription_id *integerCratejoy subscription id.
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, counting from 0 (default 0). Pass the previous reply's next_page.

cratejoy_list_orders List orders

List orders (id, customer_id, placed_at, status, financial_status, fulfillment_status, is_renewal, is_gift, sub_total, total, total_shipping, total_tax). Amounts are in cents. Filter by payment status and placed-at range, or with `filters`. Relationships: customer, products, coupons, bill_address, ship_address, fulfillments, transactions, subscriptions. GET /v1/orders/.

ParameterTypeDescription
filtersobjectExtra Cratejoy filters as { '[relation.]property[__comparison]': value }. Comparisons: eq (default), ne, lt, le, gt, ge, like, ilike (% is the wildcard), in, nin (comma-separated), is_null. Status col…
financial_statusstringPayment status of the order.
limitintegerResults per page, 1-100 (default 10).
pageintegerPage number, counting from 0 (default 0). Pass the previous reply's next_page.
placed_afterstringOnly orders placed on or after this date/date-time.
placed_beforestringOnly orders placed on or before this date/date-time.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_get_order Get order

One order by id, optionally with relationships (customer, products, coupons, addresses, fulfillments, transactions). GET /v1/orders/{order_id}/.

ParameterTypeDescription
order_id *integerCratejoy order id.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_list_shipments List shipments

List shipments (id, customer_id, status, created_at, target_at, shipped_at, tracking_number, is_gift). Filter by status and creation range, or with `filters`. Relationships: customer, fulfillments, labels, ship_address, subscriptions. GET /v1/shipments/.

ParameterTypeDescription
created_afterstringOnly shipments created on or after this date/date-time.
created_beforestringOnly shipments created on or before this date/date-time.
filtersobjectExtra Cratejoy filters as { '[relation.]property[__comparison]': value }. Comparisons: eq (default), ne, lt, le, gt, ge, like, ilike (% is the wildcard), in, nin (comma-separated), is_null. Status col…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, counting from 0 (default 0). Pass the previous reply's next_page.
statusstringShipment status.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_get_shipment Get shipment

One shipment by id, optionally with relationships (customer, fulfillments, labels, ship_address, subscriptions). GET /v1/shipments/{ship_id}/.

ParameterTypeDescription
shipment_id *integerCratejoy shipment id.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_list_products List products

List products (id, name, sku, slug, description, visible, listed, giftable, ship_option, ship_weight, has_subscribers). Filter by type or with `filters` (e.g. { 'visible': true }). Relationships: billing, instances, variants, subscription_types. GET /v1/products/.

ParameterTypeDescription
filtersobjectExtra Cratejoy filters as { '[relation.]property[__comparison]': value }. Comparisons: eq (default), ne, lt, le, gt, ge, like, ilike (% is the wildcard), in, nin (comma-separated), is_null. Status col…
limitintegerResults per page, 1-100 (default 10).
pageintegerPage number, counting from 0 (default 0). Pass the previous reply's next_page.
product_typestringProduct type.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_get_product Get product

One product by id, optionally with relationships. GET /v1/products/{prod_id}/.

ParameterTypeDescription
product_id *integerCratejoy product id.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_list_transactions List transactions

List payment transactions (id, created_at, result: authorized/captured/failed/refunded, total in cents, is_test, order). Filter by result and creation range, or with `filters`. GET /v1/transactions/.

ParameterTypeDescription
created_afterstringOnly transactions created on or after this date/date-time.
created_beforestringOnly transactions created on or before this date/date-time.
filtersobjectExtra Cratejoy filters as { '[relation.]property[__comparison]': value }. Comparisons: eq (default), ne, lt, le, gt, ge, like, ilike (% is the wildcard), in, nin (comma-separated), is_null. Status col…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, counting from 0 (default 0). Pass the previous reply's next_page.
resultstringTransaction result.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_get_transaction Get transaction

One payment transaction by id. GET /v1/transactions/{trans_id}/.

ParameterTypeDescription
transaction_id *integerCratejoy transaction id.
withstringRelationships to embed: comma-separated names (e.g. 'customer,orders'), 'all', or an empty string for none. Omit it for the vendor default.

cratejoy_skip_subscription_renewal Skip or unskip next renewal

WRITE: skip a subscriber's next renewal (action 'skip') or undo the skip (action 'unskip'). Requires confirm=true. Repeating the same action changes nothing more. This changes a merchant customer's subscription in Cratejoy; it is not this server's own billing. PUT /v1/subscriptions/{sub_id}/skip/.

ParameterTypeDescription
action *string'skip' skips the next renewal; 'unskip' restores it.
confirm *booleanMust be true: confirms the customer's renewal schedule should change.
subscription_id *integerCratejoy subscription id.

cratejoy_cancel_customer_subscription Cancel a customer's subscription

WRITE: cancel a subscriber's subscription in Cratejoy (the customer stops receiving boxes and renewals). This cancels the merchant's customer subscription, NOT this server's Pro plan (use the *_cancel_subscription tool for that). Requires confirm=true. A cancelled subscription can be restored with cratejoy_reactivate_subscription. PUT /v1/subscriptions/{sub_id}/cancel/.

ParameterTypeDescription
confirm *booleanMust be true: confirms the customer's subscription should be cancelled.
subscription_id *integerCratejoy subscription id.
log_notestringOptional note recorded in the subscription's log.

cratejoy_reactivate_subscription Reactivate a customer's subscription

WRITE: reactivate a cancelled subscription so it renews and charges the customer again. Requires confirm=true. Reactivating an active subscription changes nothing more. PUT /v1/subscriptions/{sub_id}/reactivate/.

ParameterTypeDescription
confirm *booleanMust be true: confirms the subscription should renew (and be charged) again.
subscription_id *integerCratejoy subscription id.
log_notestringOptional note recorded in the subscription's log.

cratejoy_retry_subscription_renewal Retry a failed renewal

WRITE: retry the renewal of a PAST-DUE subscription whose renewal failed within the last 30 days. This charges the customer's saved payment method. Requires confirm=true. PUT /v1/subscriptions/{sub_id}/renew/.

ParameterTypeDescription
confirm *booleanMust be true: confirms the customer's payment method should be charged.
subscription_id *integerCratejoy subscription id (status past_due).
log_notestringOptional note recorded in the subscription's log.