Retrieve store
curl --request GET \
--url https://sandbox.api.leyyow.com/api/public/v1/store \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.api.leyyow.com/api/public/v1/store"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.leyyow.com/api/public/v1/store', 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 => "https://sandbox.api.leyyow.com/api/public/v1/store",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "https://sandbox.api.leyyow.com/api/public/v1/store"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.api.leyyow.com/api/public/v1/store")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.leyyow.com/api/public/v1/store")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": null,
"message": "Request successful.",
"data": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "ada-fabrics",
"store_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_name": "Ada Fabrics",
"size_chart": "<string>",
"applied_theme": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"preview_image": "<string>",
"in_use": true
},
"color_scheme": {
"primary": "#1D9E75",
"secondary": "<string>",
"tertiary": "<string>"
},
"typography": "<string>",
"button": "<string>",
"button_text_color": "<string>",
"show_button_outline": true,
"footer_email": "jsmith@example.com",
"footer_phone": "<string>",
"terms_and_conditions_url": "<string>",
"instagram_url": "<string>",
"facebook_url": "<string>",
"x_url": "<string>",
"tiktok_url": "<string>",
"show_live_status_banner": true,
"logo": "<string>",
"favicon": "<string>",
"is_published": true,
"published_at": "2023-11-07T05:31:56Z",
"pickup_location": "<string>",
"pickup_schedules": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"day_of_week": 3,
"day_of_week_display": "Monday",
"is_enabled": true,
"start_time": "09:00:00",
"end_time": "17:00:00",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"delivery_enabled": true,
"manual_delivery_enabled": true,
"express_delivery_enabled": true,
"add_tax_to_product_price": true,
"tax_collection_enabled": true,
"tax_rate": "7.50",
"sections": [
{}
],
"categories": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"is_active": true,
"image": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"is_live": true,
"has_subscription": true,
"plan_name": "<string>",
"custom_domain": "<string>"
}
}{
"error": "Invalid or revoked API key.",
"message": "Authentication failed.",
"data": null
}{
"error": "Rate limit exceeded.",
"message": "Too many requests.",
"data": null
}Store
Retrieve store
Returns the store profile behind the API key: branding, contact details, categories, tax configuration, and which fulfilment methods are enabled.
Read delivery_enabled, manual_delivery_enabled, and
express_delivery_enabled to decide which checkout options to render.
Pickup availability is expressed through pickup_location and
pickup_schedules.
GET
/
api
/
public
/
v1
/
store
Retrieve store
curl --request GET \
--url https://sandbox.api.leyyow.com/api/public/v1/store \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.api.leyyow.com/api/public/v1/store"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.leyyow.com/api/public/v1/store', 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 => "https://sandbox.api.leyyow.com/api/public/v1/store",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "https://sandbox.api.leyyow.com/api/public/v1/store"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.api.leyyow.com/api/public/v1/store")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.leyyow.com/api/public/v1/store")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": null,
"message": "Request successful.",
"data": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "ada-fabrics",
"store_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_name": "Ada Fabrics",
"size_chart": "<string>",
"applied_theme": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"preview_image": "<string>",
"in_use": true
},
"color_scheme": {
"primary": "#1D9E75",
"secondary": "<string>",
"tertiary": "<string>"
},
"typography": "<string>",
"button": "<string>",
"button_text_color": "<string>",
"show_button_outline": true,
"footer_email": "jsmith@example.com",
"footer_phone": "<string>",
"terms_and_conditions_url": "<string>",
"instagram_url": "<string>",
"facebook_url": "<string>",
"x_url": "<string>",
"tiktok_url": "<string>",
"show_live_status_banner": true,
"logo": "<string>",
"favicon": "<string>",
"is_published": true,
"published_at": "2023-11-07T05:31:56Z",
"pickup_location": "<string>",
"pickup_schedules": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"day_of_week": 3,
"day_of_week_display": "Monday",
"is_enabled": true,
"start_time": "09:00:00",
"end_time": "17:00:00",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"delivery_enabled": true,
"manual_delivery_enabled": true,
"express_delivery_enabled": true,
"add_tax_to_product_price": true,
"tax_collection_enabled": true,
"tax_rate": "7.50",
"sections": [
{}
],
"categories": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"is_active": true,
"image": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"is_live": true,
"has_subscription": true,
"plan_name": "<string>",
"custom_domain": "<string>"
}
}{
"error": "Invalid or revoked API key.",
"message": "Authentication failed.",
"data": null
}{
"error": "Rate limit exceeded.",
"message": "Too many requests.",
"data": null
}Authorizations
Store API key created in the Leyyow suite under Settings → Public API.
Sent as Authorization: Bearer <key>.