Retrieve product
curl --request GET \
--url https://sandbox.api.leyyow.com/api/public/v1/products/{uid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.api.leyyow.com/api/public/v1/products/{uid}"
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/products/{uid}', 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/products/{uid}",
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/products/{uid}"
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/products/{uid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.leyyow.com/api/public/v1/products/{uid}")
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",
"name": "Ankara wrap dress",
"description": "<string>",
"story": "<string>",
"category": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_name": "Dresses",
"brand": "<string>",
"is_active": true,
"is_hidden_from_storefront": true,
"is_variable": true,
"variants": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Medium / Blue",
"sku": "<string>",
"price": "45000.00",
"promo_price": "45000.00",
"promo_expiry": "2023-11-07T05:31:56Z",
"weight": "0.50",
"length": "<string>",
"width": "<string>",
"height": "<string>",
"is_active": true,
"image": "<string>",
"is_default": true,
"attributes": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attribute": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attribute_name": "Size",
"attribute_value": "Medium"
}
],
"available_stock": 123,
"sellable_stock": 123
}
],
"images": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image": "<string>",
"alt_text": "<string>",
"is_primary": true,
"order": 123,
"sort_order": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"total_stock": 24,
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": "Invalid or revoked API key.",
"message": "Authentication failed.",
"data": null
}{
"error": "Product not found.",
"message": "The requested resource does not exist.",
"data": null
}{
"error": "Rate limit exceeded.",
"message": "Too many requests.",
"data": null
}Products
Retrieve product
Returns a single product with its variants, attributes, and images.
Returns 404 if the product is inactive, hidden from the storefront,
missing, or belongs to another store.
GET
/
api
/
public
/
v1
/
products
/
{uid}
Retrieve product
curl --request GET \
--url https://sandbox.api.leyyow.com/api/public/v1/products/{uid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.api.leyyow.com/api/public/v1/products/{uid}"
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/products/{uid}', 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/products/{uid}",
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/products/{uid}"
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/products/{uid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.leyyow.com/api/public/v1/products/{uid}")
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",
"name": "Ankara wrap dress",
"description": "<string>",
"story": "<string>",
"category": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_name": "Dresses",
"brand": "<string>",
"is_active": true,
"is_hidden_from_storefront": true,
"is_variable": true,
"variants": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Medium / Blue",
"sku": "<string>",
"price": "45000.00",
"promo_price": "45000.00",
"promo_expiry": "2023-11-07T05:31:56Z",
"weight": "0.50",
"length": "<string>",
"width": "<string>",
"height": "<string>",
"is_active": true,
"image": "<string>",
"is_default": true,
"attributes": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attribute": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attribute_name": "Size",
"attribute_value": "Medium"
}
],
"available_stock": 123,
"sellable_stock": 123
}
],
"images": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image": "<string>",
"alt_text": "<string>",
"is_primary": true,
"order": 123,
"sort_order": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"total_stock": 24,
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": "Invalid or revoked API key.",
"message": "Authentication failed.",
"data": null
}{
"error": "Product not found.",
"message": "The requested resource does not exist.",
"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>.
Path Parameters
Product uid.