Fetch Shop by slug
curl --request GET \
--url http://staging.qshop.ng/apiv2/shops/public/import requests
url = "http://staging.qshop.ng/apiv2/shops/public/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/shops/public/', 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/public/",
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/public/"
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/public/")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/shops/public/")
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": {
"metric": {
"weight": "<string>",
"dimension": "<string>",
"system": "<string>"
},
"bankDetailsSecurity": {
"allowUpdate": true,
"enabled": true
},
"stripe": {
"connect": {
"id": "<string>",
"isActive": true
},
"id": null
},
"config": {
"storefront": {
"showSKU": true,
"showNameWithLogo": true,
"buyOverWhatsapp": true,
"theme": "<string>",
"colors": {
"primary": "<string>",
"secondary": "<string>"
},
"font": "<string>",
"banners": [
{
"banner": {
"uuid": "<string>",
"name": "<string>",
"size": 123,
"isStored": true,
"isImage": true,
"originalImageInfo": {
"dpi": [
123
],
"width": 123,
"format": "<string>",
"height": 123,
"sequence": true,
"color_mode": "<string>",
"orientation": null,
"geo_location": null,
"datetime_original": null
},
"originalVideoInfo": null,
"originalContentInfo": {
"mime": {
"mime": "<string>",
"type": "<string>",
"subtype": "<string>"
},
"image": {
"dpi": [
123
],
"width": 123,
"format": "<string>",
"height": 123,
"sequence": true,
"color_mode": "<string>",
"orientation": null,
"geo_location": null,
"datetime_original": null
}
},
"mimeType": "<string>",
"originalUrl": "<string>",
"cdnUrl": "<string>",
"cdnUrlModifiers": "<string>",
"sourceInfo": {
"source": "<string>"
},
"crop": {
"left": 123,
"top": 123,
"width": 123,
"height": 123,
"sw": 123,
"sh": 123
}
},
"title": "<string>",
"subtitle": "<string>",
"link": {
"type": "<string>",
"path": "<string>",
"extraPathInfo": {
"label": "<string>",
"slug": "<string>"
}
},
"is_active": true,
"period": {
"start": "<string>",
"end": null
},
"cta": {
"colour": "<string>",
"show_gradient": true
}
}
],
"showStoreDetails": true,
"showEmailSignup": true,
"showSocialLinks": true,
"showFooterMenu": true,
"hideLogo": true
},
"product": {
"inventory": {
"isLowStockEnabled": true,
"isOutOfStockEnabled": true,
"enableProductPageStockCount": true,
"lowStockThreshold": 123,
"outOfStockThreshold": 123,
"displayOptionKey": "<string>",
"storefrontDisplaySoldOut": true
}
},
"customerNotification": {
"whatsApp": true,
"email": true
},
"shipping": {
"integrations": {
"markup": {
"amount": 123,
"type": "<string>"
},
"useAlternativeCarriers": true,
"supportedRegions": "<string>",
"enabled": true,
"supportedProviders": [
"<string>"
],
"serviceType": "<string>",
"feeChargeOn": "<string>"
},
"defaultProvider": "<string>",
"hasDeliveryRates": true,
"hasPickupRates": true,
"returnAllRates": true
},
"order": {
"acceptWithoutShippingRate": true
},
"calculateProfit": true,
"enableReviews": true
},
"meta": {
"subscription": {
"numberOfNotificationsSent": 123,
"name": "<string>",
"key": "<string>",
"_key": "<string>",
"plan": "<string>",
"planKey": "<string>",
"renewed": "<string>",
"expires": "<string>"
}
},
"productType": "<string>",
"tags": "<array>",
"_id": "<string>",
"name": "<string>",
"owner": {
"kyc": {
"attempts": 123,
"status": "<string>",
"requested": "<string>",
"errors": "<array>",
"lastUpdated": "<string>"
},
"_id": "<string>",
"email": "<string>",
"full_name": "<string>"
},
"created": "<string>",
"modified": "<string>",
"telephone": "<string>",
"email": "<string>",
"whatsApp": true,
"call": true,
"bio": "<string>",
"shopCategory": {
"_id": "<string>",
"name": "<string>",
"weight": 123
},
"status": "<string>",
"products": 123,
"logo": null,
"slug": "<string>",
"__v": 123,
"instaAuth": "<string>",
"instaAuthDateExpires": "<string>",
"instagram": "<string>",
"shopPreview": "<string>",
"trialEnd": "<string>",
"trialPeriod": 123,
"trialStart": "<string>",
"billingNotice": "<string>",
"trialExtended": 123,
"subscription": {
"paymentSnapshot": {
"amount": 123
},
"_id": "<string>",
"shop": "<string>",
"billingCycle": "<string>",
"paymentDate": "<string>",
"expires": "<string>",
"paymentReference": "<string>",
"email": "<string>",
"paymentPlatform": "<string>",
"paymentStatus": "<string>",
"paymentErrors": "<array>",
"amount": 123,
"currency": "<string>",
"plan": "<string>",
"planCurrency": "<string>",
"recurringPayment": true,
"description": "<string>",
"credits": [
{
"type": "<string>",
"redeemed": 123,
"limit": 123,
"balance": 123,
"valueType": "<string>",
"_id": "<string>"
}
],
"_plan": "<string>",
"__v": 123
},
"testShop": true,
"fbPixelId": "<string>",
"expandPolicy": true,
"paused": true,
"shop_url": "<string>",
"instaId": null,
"pickupLocation": "<string>",
"inventoryConfig": {
"isLowStockEnabled": true,
"isOutOfStockEnabled": true,
"enableProductPageStockCount": true,
"lowStockThreshold": 123,
"outOfStockThreshold": 123,
"displayOptionKeyId": "<string>",
"displayOptionKey": "<string>",
"storefrontDisplaySoldOut": true,
"_id": "<string>"
},
"domainName": "<string>",
"firstLaunch": "<string>",
"referralCode": "<string>",
"hideLogo": true,
"logo_uuid": "<string>",
"customerNotificationConfig": {
"whatsApp": true,
"email": true,
"_id": "<string>"
},
"currencies": [
{
"_id": "<string>",
"isRateAutomated": true,
"shop": "<string>",
"currency": {
"_id": "<string>",
"code": "<string>",
"symbol": "<string>",
"nationality": "<string>",
"exchangeRate": 123,
"__v": 123,
"country": "<string>",
"name": "<string>",
"minimumProcessingAmount": 123
},
"baseRate": 123,
"currencyRate": 123,
"isBaseCurrency": true,
"isStoreFrontDefault": true,
"isDisabled": true,
"__v": 123
}
],
"domainCreated": "<string>",
"domainValidated": true,
"domainActive": true,
"domainLastChecked": null,
"socials": [
{
"name": "<string>",
"slug": "<string>",
"id": "<string>",
"authExpires": "<string>",
"username": "<string>",
"url": "<string>",
"category": "<string>",
"paidAccess": true,
"_id": "<string>",
"auth": null
}
],
"country": {
"_id": "<string>",
"name": "<string>",
"dialCode": "<string>",
"code": "<string>",
"__v": 123,
"geoId": "<string>",
"hasPostCode": true,
"postalCodeFormat": "<string>",
"currencyCode": "<string>",
"east": 123,
"north": 123,
"south": 123,
"west": 123
},
"launched": true,
"description": "<string>",
"credits": "<array>",
"kyc": {
"attempts": 123,
"status": "<string>",
"requested": "<string>",
"errors": "<array>",
"lastUpdated": "<string>"
},
"baseCurrency": {
"_id": "<string>",
"code": "<string>",
"symbol": "<string>",
"nationality": "<string>",
"exchangeRate": 123,
"__v": 123,
"minimumProcessingAmount": 123,
"country": "<string>",
"name": "<string>"
},
"plan": "<string>",
"url": "<string>",
"whatsapp_number": "<string>"
},
"success": true
}Shops
Fetch Shop by slug
Host: http://qshop.ng
GET
/
shops
/
public
/
Fetch Shop by slug
curl --request GET \
--url http://staging.qshop.ng/apiv2/shops/public/import requests
url = "http://staging.qshop.ng/apiv2/shops/public/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/shops/public/', 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/public/",
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/public/"
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/public/")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/shops/public/")
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": {
"metric": {
"weight": "<string>",
"dimension": "<string>",
"system": "<string>"
},
"bankDetailsSecurity": {
"allowUpdate": true,
"enabled": true
},
"stripe": {
"connect": {
"id": "<string>",
"isActive": true
},
"id": null
},
"config": {
"storefront": {
"showSKU": true,
"showNameWithLogo": true,
"buyOverWhatsapp": true,
"theme": "<string>",
"colors": {
"primary": "<string>",
"secondary": "<string>"
},
"font": "<string>",
"banners": [
{
"banner": {
"uuid": "<string>",
"name": "<string>",
"size": 123,
"isStored": true,
"isImage": true,
"originalImageInfo": {
"dpi": [
123
],
"width": 123,
"format": "<string>",
"height": 123,
"sequence": true,
"color_mode": "<string>",
"orientation": null,
"geo_location": null,
"datetime_original": null
},
"originalVideoInfo": null,
"originalContentInfo": {
"mime": {
"mime": "<string>",
"type": "<string>",
"subtype": "<string>"
},
"image": {
"dpi": [
123
],
"width": 123,
"format": "<string>",
"height": 123,
"sequence": true,
"color_mode": "<string>",
"orientation": null,
"geo_location": null,
"datetime_original": null
}
},
"mimeType": "<string>",
"originalUrl": "<string>",
"cdnUrl": "<string>",
"cdnUrlModifiers": "<string>",
"sourceInfo": {
"source": "<string>"
},
"crop": {
"left": 123,
"top": 123,
"width": 123,
"height": 123,
"sw": 123,
"sh": 123
}
},
"title": "<string>",
"subtitle": "<string>",
"link": {
"type": "<string>",
"path": "<string>",
"extraPathInfo": {
"label": "<string>",
"slug": "<string>"
}
},
"is_active": true,
"period": {
"start": "<string>",
"end": null
},
"cta": {
"colour": "<string>",
"show_gradient": true
}
}
],
"showStoreDetails": true,
"showEmailSignup": true,
"showSocialLinks": true,
"showFooterMenu": true,
"hideLogo": true
},
"product": {
"inventory": {
"isLowStockEnabled": true,
"isOutOfStockEnabled": true,
"enableProductPageStockCount": true,
"lowStockThreshold": 123,
"outOfStockThreshold": 123,
"displayOptionKey": "<string>",
"storefrontDisplaySoldOut": true
}
},
"customerNotification": {
"whatsApp": true,
"email": true
},
"shipping": {
"integrations": {
"markup": {
"amount": 123,
"type": "<string>"
},
"useAlternativeCarriers": true,
"supportedRegions": "<string>",
"enabled": true,
"supportedProviders": [
"<string>"
],
"serviceType": "<string>",
"feeChargeOn": "<string>"
},
"defaultProvider": "<string>",
"hasDeliveryRates": true,
"hasPickupRates": true,
"returnAllRates": true
},
"order": {
"acceptWithoutShippingRate": true
},
"calculateProfit": true,
"enableReviews": true
},
"meta": {
"subscription": {
"numberOfNotificationsSent": 123,
"name": "<string>",
"key": "<string>",
"_key": "<string>",
"plan": "<string>",
"planKey": "<string>",
"renewed": "<string>",
"expires": "<string>"
}
},
"productType": "<string>",
"tags": "<array>",
"_id": "<string>",
"name": "<string>",
"owner": {
"kyc": {
"attempts": 123,
"status": "<string>",
"requested": "<string>",
"errors": "<array>",
"lastUpdated": "<string>"
},
"_id": "<string>",
"email": "<string>",
"full_name": "<string>"
},
"created": "<string>",
"modified": "<string>",
"telephone": "<string>",
"email": "<string>",
"whatsApp": true,
"call": true,
"bio": "<string>",
"shopCategory": {
"_id": "<string>",
"name": "<string>",
"weight": 123
},
"status": "<string>",
"products": 123,
"logo": null,
"slug": "<string>",
"__v": 123,
"instaAuth": "<string>",
"instaAuthDateExpires": "<string>",
"instagram": "<string>",
"shopPreview": "<string>",
"trialEnd": "<string>",
"trialPeriod": 123,
"trialStart": "<string>",
"billingNotice": "<string>",
"trialExtended": 123,
"subscription": {
"paymentSnapshot": {
"amount": 123
},
"_id": "<string>",
"shop": "<string>",
"billingCycle": "<string>",
"paymentDate": "<string>",
"expires": "<string>",
"paymentReference": "<string>",
"email": "<string>",
"paymentPlatform": "<string>",
"paymentStatus": "<string>",
"paymentErrors": "<array>",
"amount": 123,
"currency": "<string>",
"plan": "<string>",
"planCurrency": "<string>",
"recurringPayment": true,
"description": "<string>",
"credits": [
{
"type": "<string>",
"redeemed": 123,
"limit": 123,
"balance": 123,
"valueType": "<string>",
"_id": "<string>"
}
],
"_plan": "<string>",
"__v": 123
},
"testShop": true,
"fbPixelId": "<string>",
"expandPolicy": true,
"paused": true,
"shop_url": "<string>",
"instaId": null,
"pickupLocation": "<string>",
"inventoryConfig": {
"isLowStockEnabled": true,
"isOutOfStockEnabled": true,
"enableProductPageStockCount": true,
"lowStockThreshold": 123,
"outOfStockThreshold": 123,
"displayOptionKeyId": "<string>",
"displayOptionKey": "<string>",
"storefrontDisplaySoldOut": true,
"_id": "<string>"
},
"domainName": "<string>",
"firstLaunch": "<string>",
"referralCode": "<string>",
"hideLogo": true,
"logo_uuid": "<string>",
"customerNotificationConfig": {
"whatsApp": true,
"email": true,
"_id": "<string>"
},
"currencies": [
{
"_id": "<string>",
"isRateAutomated": true,
"shop": "<string>",
"currency": {
"_id": "<string>",
"code": "<string>",
"symbol": "<string>",
"nationality": "<string>",
"exchangeRate": 123,
"__v": 123,
"country": "<string>",
"name": "<string>",
"minimumProcessingAmount": 123
},
"baseRate": 123,
"currencyRate": 123,
"isBaseCurrency": true,
"isStoreFrontDefault": true,
"isDisabled": true,
"__v": 123
}
],
"domainCreated": "<string>",
"domainValidated": true,
"domainActive": true,
"domainLastChecked": null,
"socials": [
{
"name": "<string>",
"slug": "<string>",
"id": "<string>",
"authExpires": "<string>",
"username": "<string>",
"url": "<string>",
"category": "<string>",
"paidAccess": true,
"_id": "<string>",
"auth": null
}
],
"country": {
"_id": "<string>",
"name": "<string>",
"dialCode": "<string>",
"code": "<string>",
"__v": 123,
"geoId": "<string>",
"hasPostCode": true,
"postalCodeFormat": "<string>",
"currencyCode": "<string>",
"east": 123,
"north": 123,
"south": 123,
"west": 123
},
"launched": true,
"description": "<string>",
"credits": "<array>",
"kyc": {
"attempts": 123,
"status": "<string>",
"requested": "<string>",
"errors": "<array>",
"lastUpdated": "<string>"
},
"baseCurrency": {
"_id": "<string>",
"code": "<string>",
"symbol": "<string>",
"nationality": "<string>",
"exchangeRate": 123,
"__v": 123,
"minimumProcessingAmount": 123,
"country": "<string>",
"name": "<string>"
},
"plan": "<string>",
"url": "<string>",
"whatsapp_number": "<string>"
},
"success": true
}Was this page helpful?
⌘I