Subscriptions
Create Subscription
Create a subscription invoice to a customer
POST
/
subscriptions
Authorizations
Authorization
string
headerrequiredBearer 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
requiredID of the subscription product.
customer_id
string
requiredID of the store customer.
coupon_code
string
Coupon code for this subscription.
custom_fields
object
key-value JSON having as key the custom field name and as value the custom field value inserted by the customer. Custom fields can both be used as inputs from the customers but also as metadata for invoices, letting you pass hidden fields for internal referencing.
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:ERC20
, USDC:BEP20
, USDC:MATIC
, USDC:SOL
, USDT:ERC20
, USDT:BEP20
, USDT:MATIC
, USDT:SOL
, USDT:TRC20
, TRON
, BITCOIN_LN
, CONCORDIUM
, POLYGON
, PEPE:ERC20
, DAI:ERC20
, DAI:BEP20
, DAI:MATIC
, WETH:BEP20
, WETH:MATIC
, APE:ERC20
, APE:MATIC
, SHIB:ERC20
, SHIB:BEP20
, SHIB:MATIC
, USDC_NATIVE:MATIC
, DOGECOIN
, PYTH:SOL
, BONK:SOL
, JUP:SOL
, JITO:SOL
, WEN:SOL
, RENDER:SOL
, MOBILE:SOL
, HNT:SOL
Response
200 - application/json
status
integer
data
object
error
string
message
string
env
string
log
object