Publication keyGenerated from lib/mcp.ts

dispatch_set_plans

Sets the monthly and yearly prices for a publication's paid subscriptions, in cents. Paid signups open at the subscribe page right after.

Set the Monthly and Yearly prices (in cents, e.g. 900 = $9.00) for a publication's paid subscriptions. Creates the Stripe product and recurring prices on the operator's connected account and enables paid signups at /<slug>/subscribe. Requires completed Stripe onboarding.

  • Use it when: Once Stripe onboarding is complete and the operator has chosen prices.
  • Don't use it when: Do not use it before onboarding is done. It will fail until Stripe is connected.

Link and endpoint

Page link

https://dispatch.nshipyard.com/support/mcp/dispatch_set_plans

Endpoint

POST https://dispatch.nshipyard.com/api/mcp

Call it with method tools/call and name dispatch_set_plans.

Parameters

NameTypeRequiredDescription
publicationIdstringRequiredPublication id
monthly_price_centsintegerRequiredMonthly price in cents, min 50
yearly_price_centsintegerRequiredYearly price in cents, min 50

Returns

payments_enabled boolean
True when paid signups are live.
monthly_price_cents number
Monthly price in cents (900 = $9.00).
yearly_price_cents number
Yearly price in cents.
platform_fee_percent number
Dispatch's share: 10.

Errors

ErrorWhen it happensFix
Not authorized for this publicationThe key belongs to a different publication.Use the publication key shown on that publication's Overview page, or the master key.
Stripe is not configured on this Dispatch instanceThe platform has no Stripe keys set up.The Dispatch operator needs to configure Stripe first.
Requires completed Stripe onboardingThe operator has not finished Stripe's checks.Finish onboarding with dispatch_setup_payments, then check with dispatch_payments_status.

Related

Reference generated from web/lib/mcp.ts. If this page and your agent disagree, the code wins.

All tools