Create sub-account payment
Create a payment
The API payload for creating a payment on behalf of a sub-account works exactly like the standard merchant one.
The only difference is that you need to specify the platform_on_behalf_of
field with the sub-account 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
Email of the customer. Should you want to handle emails on your own, pass to this field a company email to which PDF receipts of orders will be sent for accounting and log purposes.
Whether or not you want to handle the payments UI. If false, return_url must be specified as it is the website where we will redirect the customer once he has paid through our platform. If true, we will return a full invoice object in the response for you to handle. You can receive updates over invoices and handle subsequent logics through our webhooks.
Required if product_id and cart are null. Defines the title of the purchase, can be the digital good's name or a brief summary of what the customer is paying for.
If specified value, currency and custom_fields will be taken from the product details.
Required for subscriptions 2.0. Specified which plan to use for the invoice.
Other than product_id, a cart object can be specified if multiple products need to be purchased through the API.
If null, the customer will be asked automatically to choose a gateway on the Sellix hosted /payment page. If product_id is specified, the gateway must be on in the product's gateways array.
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
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
If gateway is PAYPAL, a paypal_apm (PayPal Alternative Payment Method) can be specified. To retrieve the available PayPal APM for a specific customer session, please refer to the PayPal SDK using window.paypal.FUNDING and fundingSource to filter out available methods. You can also use our documentation on how to process white_label payments.
bancontact
, eps
, trustly
, mercado
, paylater
, sepa
, venmo
, blik
, giropay
, ideal
, mybank
, sofort
, przelewy24
, credit
If gatewa is PAYPAL and no paypal_apm is passed, specify credit_card true to land the customer on the PayPal managed credit card page instead of the onboarding login.
DEPRECATED: If gateway is LEX_HOLDINGS_GROUP, method to be used for the customer to pay.
Required if product_id and cart are null. The customer will be asked to pay for this amount.
Required if product_id and cart are null, defines the currency of value.
CAD
, HKD
, ISK
, PHP
, DKK
, HUF
, CZK
, GBP
, RON
, SEK
, IDR
, INR
, BRL
, RUB
, HRK
, JPY
, THB
, CHF
, EUR
, MYR
, BGN
, TRY
, CNY
, NOK
, NZD
, ZAR
, USD
, MXN
, SGD
, AUD
, ILS
, KRW
, PLN
Can be passed with either product_id null or not. The value or product's price will be multiplied by this amount.
x > 1
Pass a Sellix coupon code to apply a discount over the invoice.
Cryptocurrency confirmations required to count a transaction over the total crypto amount needed.
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.
Customer details to be used by our fraud shield in order to score potential fraud attempts.
DEPRECATED: Webhook URL to which updates regarding this payment (invoice) will be sent.
Response
Was this page helpful?