Skip to main content

Create a business account

Create the account with the Create Account API. The request requires an access token; see Authentication. A token can be reused for 60 minutes.

curl -i -X POST \
'https://sandbox-api.hubpay.io/v1/account' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"accountType": "BUSINESS",
"accountName": "ACME Co.",
"email": "enquiries@acme.com",
"phoneNumber": "+9771234567890",
"countryCode": "AE",
"externalId": "AE00000001"
}'

An example response for a successful create account request:

{
"id": "f8d7f528-87b9-426a-918d-e3f0552e88e4",
"accountType": "BUSINESS",
"accountName": "ACME Co.",
"email": "enquiries@acme.co",
"phoneNumber": "+9771234567890",
"countryCode": "AE",
"externalId": "AE00000001",
"accountStatus": "CREATED"
}

In this response, 'id' is the account id that will need to be provided in subsequent onboarding requests.