GET Get a product
One product.
GET
/products/{id}
- Scope
products.read- Full address
https://naqllah.com/api/apps/v1/products/{id}- Rate limit
- 120 a minute per store, 1200 a minute across all stores
- The merchant reads
- Read products, their prices and quantities
Request
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired |
path | integer · ≥ 1 |
The numeric id. |
Samples
Each sample reads the access token from the environment variable NAQLLAH_ACCESS_TOKEN.
curl "https://naqllah.com/api/apps/v1/products/318" \
-H "Authorization: Bearer $NAQLLAH_ACCESS_TOKEN"
<?php
$ch = curl_init('https://naqllah.com/api/apps/v1/products/318');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 10,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('NAQLLAH_ACCESS_TOKEN'),
'Accept: application/json',
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
$json = json_decode($body, true);
if ($status >= 400) {
throw new RuntimeException($json['error'] ?? 'http_' . $status);
}
$data = $json['data'];
// Node.js 18+ (fetch is built in)
const res = await fetch('https://naqllah.com/api/apps/v1/products/318', {
headers: {
Authorization: `Bearer ${process.env.NAQLLAH_ACCESS_TOKEN}`,
Accept: 'application/json',
},
});
const json = await res.json();
if (!res.ok) throw new Error(json.error);
const { data } = json;
import os
import requests
res = requests.get(
"https://naqllah.com/api/apps/v1/products/318",
headers={
"Authorization": f"Bearer {os.environ['NAQLLAH_ACCESS_TOKEN']}",
"Accept": "application/json",
},
timeout=10,
)
body = res.json()
if res.status_code >= 400:
raise RuntimeError(body["error"])
data = body["data"]
Response
On success the answer is 200 with this body. The example uses sample data.
| Field | Type | Notes |
|---|---|---|
data |
object |
— |
data.id |
integer |
— |
data.sku |
string |
may be null |
data.name |
string |
— |
data.name_en |
string |
may be null |
data.quantity |
integer |
— |
data.price |
string |
SAR, two decimals, as text |
data.compare_at_price |
string |
SAR, two decimals, as text |
data.updated_at |
string |
may be null · ISO 8601 time |
data.current_price |
string |
SAR, two decimals, as text |
data.sale |
object |
may be null |
data.sale.price |
string |
SAR, two decimals, as text |
data.sale.starts_at |
string |
may be null |
data.sale.ends_at |
string |
— |
data.sale.active |
boolean |
— |
data.variants |
array<object> |
— |
data.variants[].id |
integer |
— |
data.variants[].sku |
string |
may be null |
data.variants[].options |
object |
— |
data.variants[].price |
string |
SAR, two decimals, as text |
data.variants[].quantity |
integer |
— |
data.category |
object |
may be null |
data.category.id |
integer |
— |
data.category.parent_id |
integer |
may be null |
data.category.name |
string |
— |
data.category.name_en |
string |
may be null |
data.category.slug |
string |
may be null |
data.images |
array<object> |
— |
data.images[].url |
string |
uri
|
data.images[].alt |
string |
may be null |
data.images[].primary |
boolean |
— |
data.images[].variant_id |
integer |
may be null |
{
"data": {
"id": 318,
"sku": "TS-BLK-M",
"name": "قميص قطني أسود",
"name_en": "Black cotton shirt",
"quantity": 24,
"price": "89.00",
"current_price": "89.00",
"compare_at_price": "119.00",
"sale": null,
"updated_at": "2026-11-04T09:12:44+03:00"
}
}
Errors
| HTTP | Code | Meaning |
|---|---|---|
| 401 | invalid_token | The access token is invalid or expired. |
| 401 | not_installed | The app is not installed on this store. |
| 402 | payment_required | The app's subscription on this store is unpaid. |
| 403 | app_suspended | The app or the developer account is suspended. |
| 403 | insufficient_scope | The merchant has not granted this permission to the app. |
| 404 | not_found | Not found. |
| 429 | rate_limited | The app is over its request limit. Try again shortly. |
Rate limits
120 requests a minute per store, and 1200 requests a minute for your app across all stores. Over the limit you get 429 with Retry-After. Every answer carries X-RateLimit-Limit and X-RateLimit-Remaining.
Try it
Fill in the request and see the answer this endpoint gives.
Version v1.0.0 Changelog Service status openapi-v1.json Support