POST
/
subscriptions_v2

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

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Sellix-Merchant
string

The name of the store to perform actions on via the API

Body

application/json
email
string
required

The customer's email address. Invoices and subscription updates will be sent to this email

product_id
string
required

The unique ID of the product to create a subscription for

quantity
integer
required

The quantity of the product to subscribe to. If not specified, the default quantity of the product will be used

product_plan_id
string
required

The id of the product plan to subscribe to

gateway
enum<string>

If null, the customer will be asked automatically to choose a gateway on the Sellix hosted /payment page

Available options:
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
currency
string

The currency to display prices in. If not specified, the shop's default currency will be used

tax_data
object
product_addons
object

Key should be productId. Value should be a string of comma separated addon ids

coupon_code
string

The coupon code to apply to the subscription

custom_fields
object

Response

200 - application/json
status
integer
data
object
error
string
message
string
env
string
log
object