POST
/
subscriptions

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
product_id
string
required

ID of the subscription product

customer_id
string
required

ID of the store customer

coupon_code
string

Coupon code for this subscription

custom_fields
object

The custom fields passed by the user at checkout. The type is map<string, string>

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

Response

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