cURL
curl --request POST \ --url https://api-v2.missioninbox.com/billing/create_subscription/ \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "price_id": "<string>", "payment_method_id": "<string>", "coupon_code": "<string>" } '
{ "subscription_id": "<string>", "status": "<string>", "current_period_end": 123 }
Create a new subscription for the user with optional coupon code.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Stripe price ID for the subscription
Stripe payment method ID
Optional coupon code