Create Subscription
Create a subscription invoice to a customer
If a customer has an active subscription with the same plan, the uniqid
of the existing subscription will be returned.
If a customer has an active subscription with a different plan, the existing subscription will be upgraded/downgraded to match the new plan.
You can create a checkout session for any subscription throught the following URL: https://checkout.sellix.io/subscription-v2/{data.subscription_id}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The name of the store to perform actions on via the API
Body
The customer's email address. Invoices and subscription updates will be sent to this email
The unique ID of the product to create a subscription for
The quantity of the product to subscribe to. If not specified, the default quantity of the product will be used
The id of the product plan to subscribe to
If null, the customer will be asked automatically to choose a gateway on the Sellix hosted /payment page
PAYPAL
, STRIPE
, SKRILL
, PERFECT_MONEY
, CASH_APP
, BINANCE
, BITCOIN
, LITECOIN
, ETHEREUM
, BITCOIN_CASH
, NANO
, MONERO
, SOLANA
, RIPPLE
, BINANCE_COIN
, USDC
, USDT
, TRON
, BITCOIN_LN
, CONCORDIUM
, POLYGON
, PEPE
, DAI
, WETH
, APE
, SHIB
, USDC_NATIVE
, DOGECOIN
, PYTH
, BONK
, JUP
, JITO
, WEN
, RENDER
, MOBILE
, HNT
The currency to display prices in. If not specified, the shop's default currency will be used
Key should be productId. Value should be a string of comma separated addon ids
The coupon code to apply to the subscription
Was this page helpful?