Create Wallet
Connect your website/mobile application to 1app wallet system
post
https://api.1app.online/v1/business/createwallet
Create 1app Wallet
Take a look at how you might do this:
cURL
NodeJs
PHP - cURL
Python
curl --location --request POST 'https://api.1app.online/v1/business/createwallet' \
--header 'Authorization: Bearer SECRET_KEY' \
--form 'apptoken="APPID"' \
--form 'fname="testname"' \
--form 'sname="testsurname"' \
--form 'email="[email protected]"' \
--form 'phoneno="08000000000"' \
--form 'auth="[email protected]!"' \
--form 'referby=""'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.1app.online/v1/business/createwallet',
'headers': {
'Authorization': 'Bearer SECRET_KEY'
},
formData: {
'apptoken': 'APPID',
'fname': 'testname',
'sname': 'testsurname',
'email': '[email protected]',
'phoneno': '08000000000',
'auth': '[email protected]',
'referby': ''
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.1app.online/v1/business/createwallet',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('apptoken' => 'APPID','fname' => 'testname','sname' => 'testsurname','email' => '[email protected]','phoneno' => '08000000000','auth' => '[email protected]','referby' => ''),
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer SECRET_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
url = "https://api.1app.online/v1/business/createwallet"
payload={'apptoken': 'APPID',
'fname': 'testname',
'sname': 'testsurname',
'email': '[email protected]',
'phoneno': '08000000000',
'referby': ''}
files=[
]
headers = {
'Authorization': 'Bearer SECRET_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)

Sample Response

{
"status": true,
"email": "[email protected]",
"accountid": "3107908",
"businessid": "",
"msg": "Wallet successfully created!"
}
Copy link
On this page
post
Create 1app Wallet
Sample Response