Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Create User (Wallet)

POST {api-url}/createWallet?ns={community}

Create a new basic wallet in the specified community. Only Username & MSISDN is required. If this wallet already exists elsewhere on the platform, it will implicitly be added to your community. You can identify which action took place via the returned 'Action' field. It will either be 'Created user' or 'Added user to community'. If the user already exists in your community, you will receive an error, '-1,User already exists in community […]'.

Once complete, you have authorization to perform your whitelisted actions on this wallet, such as /createVoucher.

FieldTypeRequirementDescription
UsernameStringRequiredA unique username that acts as your user’s identifier.
MSISDNStringRequiredThe cell number where your user can receive SMS communication.
IDNumberStringOptionalThe ID number of the user. If supplied, it must be unique in your community.
PasswordStringOptionalThe user’s login password. If not provided, user will receive a random 5-digit password.
TimezoneStringOptionalThe user’s local timezone for accurate date and time display.
CurrencyStringOptionalThe default currency of the user. Default is ZAR.
ProfileImageUrlStringOptionalA URL pointing to the user’s profile picture.
BannerImageUrlStringOptionalA URL for the user’s profile banner or cover image.
DisplayNameStringOptionalThe display name of the user. If left empty, will be populated with the Username.
FirstNameStringOptionalThe first name of the user.
LastNameStringOptionalThe last name of the user.
EmailStringOptionalThe email address associated with the user.
HouseNumberStringOptionalThe house number of the user’s residential address.
StreetNameStringOptionalThe street name of the user’s residential address.
SuburbStringOptionalThe suburb of the user’s residential address.
TownStringOptionalThe town of the user’s residential address.
ProvinceStringOptionalThe province of the user’s residential address.
AccountNameStringOptionalThe account name of the user’s bank account.
AccountNumberStringOptionalThe account number of the user’s bank account.
AccountTypeStringOptionalThe account type of the user’s bank account.
BankNameStringOptionalThe name of the user’s bank.
BranchCodeStringOptionalThe branch code of the user’s bank.
LowBalanceAlertAmountStringOptionalThreshold in cents to trigger a low balance notification.
TaxNumberStringOptionalThe tax number of the merchant’s enterprise.
UMetadataStringOptionalAny other detail that you would like to store on this user.
MetadataStringOptionalAny other detail that the merchant wishes to store on this transaction.
{
"Username": "27648302057",
"MSISDN": "27648302057",
"IDNumber": "0108256028085",
"Password": "P@ssw0rd123",
"Timezone": "Africa/Johannesburg",
"Currency": "ZAR",
"ProfileImageUrl": "https://example.com/profile/27648302057.jpg",
"BannerImageUrl": "https://example.com/banner/27648302057.jpg",
"DisplayName": "John A",
"FirstName": "John",
"LastName": "Dory",
"Email": "john@celbux.com",
"HouseNumber": "2009",
"StreetName": "Maritime Street",
"Suburb": "Centurion",
"Town": "Pretoria",
"Province": "Gauteng",
"AccountName": "MR J DORY",
"AccountNumber": "6287805043",
"AccountType": "Savings",
"BankName": "FNB",
"BranchCode": "250655",
"LowBalanceAlertAmount": "10000",
"TaxNumber": "0777885252",
"UMetadata": "{\"Sender\":\"John D\"}",
"Metadata": "{\"ActorUserIDs\": \"547828938941114\"}"
}
Terminal window
curl -X POST '{api-url}/createWallet?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"Username":"27648302057","MSISDN":"27648302057","IDNumber":"0108256028085","Password":"P@ssw0rd123","Timezone":"Africa/Johannesburg","Currency":"ZAR","ProfileImageUrl":"https://example.com/profile/27648302057.jpg","BannerImageUrl":"https://example.com/banner/27648302057.jpg","DisplayName":"John A","FirstName":"John","LastName":"Dory","Email":"john@celbux.com","HouseNumber":"2009","StreetName":"Maritime Street","Suburb":"Centurion","Town":"Pretoria","Province":"Gauteng","AccountName":"MR J DORY","AccountNumber":"6287805043","AccountType":"Savings","BankName":"FNB","BranchCode":"250655","LowBalanceAlertAmount":"10000","TaxNumber":"0777885252","UMetadata":"{\"Sender\":\"John D\"}","Metadata":"{\"ActorUserIDs\": \"547828938941114\"}"}'