Brick API
string · binaryinteger
string · requiredstring · requiredstring · requiredstring · requiredstring · binary
[B2C Client] Setup Public Key
POST
https://sandbox.onebrick.io/v2/payments/general
/client/public-key
The Public Key you upload via this API will be used to encrypt the Client credentials that generated via Create Subaccount API.
[B2C Client] Setup Public Key › Request Body
publicKeyFile containing your public Key in .pem format. Max size 100KB.
[B2C Client] Setup Public Key › Responses
200
statusDefault: 0
dataerrorobject
[B2C Client] Create Subaccount
POST
https://sandbox.onebrick.io/v2/payments/general
/b2c/sub-accounts
Create a B2C client subaccount with the required authentication header and customer details.
[B2C Client] Create Subaccount › Request Body
nameThe name of the business or individual consumer
subAccountCodeA unique alphanumeric code (max. 5 characters) used to identify the subaccount
emailContact email address for the subaccount
addressBusiness or residential address associated with the subaccount
picture(Optional) Logo image file (max. 2 MB) to visually represent the subaccount
[B2C Client] Create Subaccount › Responses
200
No data returned
