Billing

Subscribe to a plan via API

Create a Stripe subscription programmatically. For agents with virtual cards or any API client that has a Stripe payment method. Pass a payment_method_id obtained from Stripe.js or the Stripe API.

post/billing/subscribe

Request

  • Base URL: https://api.tinysend.com/v1
  • URL: https://api.tinysend.com/v1/billing/subscribe
  • Auth: HTTP bearer

Request body

plan'light' | 'plus' | 'max' required

Plan to subscribe to

payment_method_idstring required

Stripe payment method ID (pm_...)

Response

Subscription created

subscription_idstring required
planstring required
statusstring required
current_period_endstring required

Changes

No recorded changes to this operation across all 1 revision of this API.