Get User Details
curl --request GET \
--url http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}import requests
url = "http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}', 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/shops/{shopId}/customers/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"data": {
"campaigns": "<array>",
"_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": [
"<string>"
],
"email": "<string>",
"username": "<string>",
"__v": 123,
"full_name": "<string>",
"last_access": "<string>",
"reg_date": "<string>",
"shopCount": 123,
"test_user": true,
"telephone": "<string>",
"status": "<string>",
"addresses": [
{
"address": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"stateData": "<string>",
"countryData": "<string>",
"cityData": "<string>",
"area": "<string>",
"geoLocation": {
"coordinates": {
"lng": 123,
"lat": 123
},
"fullAddress": "<string>",
"zipCode": "<string>",
"points": {
"type": "<string>",
"coordinates": [
123
],
"_id": "<string>"
},
"addressProximity": "<string>",
"geoNames": [
{
"lng": "<string>",
"geonameId": 123,
"name": "<string>",
"fclName": "<string>",
"toponymName": "<string>",
"fcodeName": "<string>",
"adminName1": "<string>",
"lat": "<string>",
"fcl": "<string>",
"fcode": "<string>",
"population": 123,
"adminCode1": "<string>",
"countryId": "<string>",
"countryCode": "<string>",
"countryName": "<string>",
"adminCodes1": {
"ISO3166_2": "<string>"
}
}
],
"google": {
"address_components": [
{
"long_name": "<string>",
"short_name": "<string>",
"types": [
"<string>"
]
}
],
"adr_address": "<string>",
"formatted_address": "<string>",
"geometry": {
"location": {
"lat": 123,
"lng": 123
},
"viewport": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
},
"name": "<string>",
"types": [
"<string>"
],
"utc_offset": 123,
"html_attributions": "<array>",
"utc_offset_minutes": 123
},
"_id": "<string>"
},
"isDefault": true,
"_id": "<string>"
}
]
},
"__v": 123,
"acceptanceToken": null,
"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>"
},
"success": true
}Users
Get User Details
Host: http://qshop.ng
GET
/
shops
/
{shopId}
/
customers
/
{userId}
Get User Details
curl --request GET \
--url http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}import requests
url = "http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}', 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/shops/{shopId}/customers/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"data": {
"campaigns": "<array>",
"_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": [
"<string>"
],
"email": "<string>",
"username": "<string>",
"__v": 123,
"full_name": "<string>",
"last_access": "<string>",
"reg_date": "<string>",
"shopCount": 123,
"test_user": true,
"telephone": "<string>",
"status": "<string>",
"addresses": [
{
"address": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"stateData": "<string>",
"countryData": "<string>",
"cityData": "<string>",
"area": "<string>",
"geoLocation": {
"coordinates": {
"lng": 123,
"lat": 123
},
"fullAddress": "<string>",
"zipCode": "<string>",
"points": {
"type": "<string>",
"coordinates": [
123
],
"_id": "<string>"
},
"addressProximity": "<string>",
"geoNames": [
{
"lng": "<string>",
"geonameId": 123,
"name": "<string>",
"fclName": "<string>",
"toponymName": "<string>",
"fcodeName": "<string>",
"adminName1": "<string>",
"lat": "<string>",
"fcl": "<string>",
"fcode": "<string>",
"population": 123,
"adminCode1": "<string>",
"countryId": "<string>",
"countryCode": "<string>",
"countryName": "<string>",
"adminCodes1": {
"ISO3166_2": "<string>"
}
}
],
"google": {
"address_components": [
{
"long_name": "<string>",
"short_name": "<string>",
"types": [
"<string>"
]
}
],
"adr_address": "<string>",
"formatted_address": "<string>",
"geometry": {
"location": {
"lat": 123,
"lng": 123
},
"viewport": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
},
"name": "<string>",
"types": [
"<string>"
],
"utc_offset": 123,
"html_attributions": "<array>",
"utc_offset_minutes": 123
},
"_id": "<string>"
},
"isDefault": true,
"_id": "<string>"
}
]
},
"__v": 123,
"acceptanceToken": null,
"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>"
},
"success": true
}Was this page helpful?
⌘I