Register a new user
curl --request POST \
--url http://staging.qshop.ng/apiv2/auth/storefront/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"whatsAppNumber": "<string>",
"password": "<string>",
"notifyViaWhatsApp": true,
"shop": "<string>"
}
'import requests
url = "http://staging.qshop.ng/apiv2/auth/storefront/register"
payload = {
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"whatsAppNumber": "<string>",
"password": "<string>",
"notifyViaWhatsApp": True,
"shop": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
fullName: '<string>',
phoneNumber: '<string>',
whatsAppNumber: '<string>',
password: '<string>',
notifyViaWhatsApp: true,
shop: '<string>'
})
};
fetch('http://staging.qshop.ng/apiv2/auth/storefront/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://staging.qshop.ng/apiv2/auth/storefront/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'fullName' => '<string>',
'phoneNumber' => '<string>',
'whatsAppNumber' => '<string>',
'password' => '<string>',
'notifyViaWhatsApp' => true,
'shop' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://staging.qshop.ng/apiv2/auth/storefront/register"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"fullName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"whatsAppNumber\": \"<string>\",\n \"password\": \"<string>\",\n \"notifyViaWhatsApp\": true,\n \"shop\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://staging.qshop.ng/apiv2/auth/storefront/register")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"fullName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"whatsAppNumber\": \"<string>\",\n \"password\": \"<string>\",\n \"notifyViaWhatsApp\": true,\n \"shop\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/auth/storefront/register")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"fullName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"whatsAppNumber\": \"<string>\",\n \"password\": \"<string>\",\n \"notifyViaWhatsApp\": true,\n \"shop\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"data": {
"_id": "<string>",
"shop": {
"_id": "<string>",
"name": "<string>",
"email": "<string>",
"slug": "<string>",
"domainName": "<string>",
"logo_uuid": "<string>",
"domainActive": true,
"url": "<string>"
},
"user": {
"kyc": {
"status": null,
"attempts": 123,
"errors": "<array>"
},
"suspended": true,
"isActivated": true,
"isPseudoAccount": true,
"_id": "<string>",
"roles": [
{
"_id": "<string>",
"name": "<string>",
"isAdmin": true,
"__v": 123,
"isSuperAdmin": true,
"key": "<string>",
"type": "<string>"
}
],
"reset_pass": true,
"profiles": "<array>",
"social": [
null
],
"email": "<string>",
"username": "<string>",
"pass": "<string>",
"access_code": "<string>",
"__v": 123,
"last_access": "<string>",
"full_name": "<string>",
"reg_date": "<string>",
"shopCount": 123,
"test_user": true,
"telephone": "<string>",
"status": "<string>",
"addresses": "<array>"
},
"__v": 123,
"acceptanceToken": null,
"campaigns": "<array>",
"created_at": "<string>",
"email": "<string>",
"fullName": "<string>",
"isClaimed": true,
"notes": "<array>",
"notifyViaWhatsApp": true,
"numberOfOrders": 123,
"orderTotal": 123,
"password": "<string>",
"resetPassword": true,
"roles": [
{
"_id": "<string>",
"__v": 123,
"isAdmin": true,
"name": "<string>",
"isSuperAdmin": true,
"key": "<string>",
"type": "<string>"
}
],
"suspended": true,
"suspendedRoles": "<array>",
"telephone": "<string>",
"updated_at": "<string>",
"whatsAppNumber": "<string>",
"assignedBy": null
},
"success": true
}Authentication
Register a new user
Host: http://qshop.ng
POST
/
auth
/
storefront
/
register
Register a new user
curl --request POST \
--url http://staging.qshop.ng/apiv2/auth/storefront/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"whatsAppNumber": "<string>",
"password": "<string>",
"notifyViaWhatsApp": true,
"shop": "<string>"
}
'import requests
url = "http://staging.qshop.ng/apiv2/auth/storefront/register"
payload = {
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"whatsAppNumber": "<string>",
"password": "<string>",
"notifyViaWhatsApp": True,
"shop": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
fullName: '<string>',
phoneNumber: '<string>',
whatsAppNumber: '<string>',
password: '<string>',
notifyViaWhatsApp: true,
shop: '<string>'
})
};
fetch('http://staging.qshop.ng/apiv2/auth/storefront/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://staging.qshop.ng/apiv2/auth/storefront/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'fullName' => '<string>',
'phoneNumber' => '<string>',
'whatsAppNumber' => '<string>',
'password' => '<string>',
'notifyViaWhatsApp' => true,
'shop' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://staging.qshop.ng/apiv2/auth/storefront/register"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"fullName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"whatsAppNumber\": \"<string>\",\n \"password\": \"<string>\",\n \"notifyViaWhatsApp\": true,\n \"shop\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://staging.qshop.ng/apiv2/auth/storefront/register")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"fullName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"whatsAppNumber\": \"<string>\",\n \"password\": \"<string>\",\n \"notifyViaWhatsApp\": true,\n \"shop\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/auth/storefront/register")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"fullName\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"whatsAppNumber\": \"<string>\",\n \"password\": \"<string>\",\n \"notifyViaWhatsApp\": true,\n \"shop\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"data": {
"_id": "<string>",
"shop": {
"_id": "<string>",
"name": "<string>",
"email": "<string>",
"slug": "<string>",
"domainName": "<string>",
"logo_uuid": "<string>",
"domainActive": true,
"url": "<string>"
},
"user": {
"kyc": {
"status": null,
"attempts": 123,
"errors": "<array>"
},
"suspended": true,
"isActivated": true,
"isPseudoAccount": true,
"_id": "<string>",
"roles": [
{
"_id": "<string>",
"name": "<string>",
"isAdmin": true,
"__v": 123,
"isSuperAdmin": true,
"key": "<string>",
"type": "<string>"
}
],
"reset_pass": true,
"profiles": "<array>",
"social": [
null
],
"email": "<string>",
"username": "<string>",
"pass": "<string>",
"access_code": "<string>",
"__v": 123,
"last_access": "<string>",
"full_name": "<string>",
"reg_date": "<string>",
"shopCount": 123,
"test_user": true,
"telephone": "<string>",
"status": "<string>",
"addresses": "<array>"
},
"__v": 123,
"acceptanceToken": null,
"campaigns": "<array>",
"created_at": "<string>",
"email": "<string>",
"fullName": "<string>",
"isClaimed": true,
"notes": "<array>",
"notifyViaWhatsApp": true,
"numberOfOrders": 123,
"orderTotal": 123,
"password": "<string>",
"resetPassword": true,
"roles": [
{
"_id": "<string>",
"__v": 123,
"isAdmin": true,
"name": "<string>",
"isSuperAdmin": true,
"key": "<string>",
"type": "<string>"
}
],
"suspended": true,
"suspendedRoles": "<array>",
"telephone": "<string>",
"updated_at": "<string>",
"whatsAppNumber": "<string>",
"assignedBy": null
},
"success": true
}Body
application/json
Was this page helpful?
⌘I