POST
/
payments?sub-account=true

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.

The sub-account query parameter is not required and will not change the response.

Authorizations

Authorization
string
header
required

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

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.

platform_on_behalf_of
string
required

The ID of the sub account on behalf of which the payment is being made

white_label
boolean
required

This must always be true

currency
enum<string>

Required if product_id and cart are null, defines the currency of value.

Available options:
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
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.

return_url
string

The URL to redirect the customer to after confirming the payment

tax_data
object
title
string

The title of the purchase

value
number

The amount the customer should pay for this invoice

webhook
string

Webhook URL to which updates regarding this payment (invoice) will be sent.

Response

200 - application/json
uniqid
string
url
string

This can be iframed using embed.sellix.io/invoice/<uniqid>