Create sub-account payment
Create a payment from a sub account
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
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.
The ID of the sub account on behalf of which the payment is being made
This must always be true
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
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.
The URL to redirect the customer to after confirming the payment
The title of the purchase
The amount the customer should pay for this invoice
Webhook URL to which updates regarding this payment (invoice) will be sent.
Was this page helpful?