Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
This API is not authenticated.
01. Authentication / المصادقة
APIs for user registration, login, logout, and retrieving the current authenticated user. واجهات تسجيل المستخدم، تسجيل الدخول، تسجيل الخروج، وجلب بيانات المستخدم الحالي.
Register new user.
Create a new user account and return a Sanctum bearer token. إنشاء حساب مستخدم جديد وإرجاع توكن Sanctum.
Example request:
curl --request POST \
"http://localhost/api/v1/auth/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Ayman Ahmed\",
\"email\": \"user@example.com\",
\"phone\": \"0500000000\",
\"password\": \"password\"
}"
const url = new URL(
"http://localhost/api/v1/auth/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Ayman Ahmed",
"email": "user@example.com",
"phone": "0500000000",
"password": "password"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"success": true,
"message": "تم إنشاء الحساب بنجاح",
"data": {
"token": "1|example-token",
"user": {
"id": 1,
"name": "Ayman Ahmed",
"email": "user@example.com",
"phone": "0500000000"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Login user.
Authenticate a user using email/phone and password, then return a Sanctum bearer token. تسجيل دخول المستخدم بالبريد/الجوال وكلمة المرور وإرجاع توكن Sanctum.
Example request:
curl --request POST \
"http://localhost/api/v1/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"identifier\": \"b\",
\"password\": \"password\"
}"
const url = new URL(
"http://localhost/api/v1/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"identifier": "b",
"password": "password"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تم تسجيل الدخول بنجاح",
"data": {
"token": "1|example-token",
"user": {
"id": 1,
"name": "Ayman Ahmed",
"email": "user@example.com"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout user.
requires authentication
Revoke the current access token for the authenticated user. تسجيل خروج المستخدم وإلغاء التوكن الحالي.
Example request:
curl --request POST \
"http://localhost/api/v1/auth/logout" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/auth/logout"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تم تسجيل الخروج بنجاح",
"data": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get current user.
requires authentication
Return the currently authenticated user profile. إرجاع بيانات المستخدم الحالي.
Example request:
curl --request GET \
--get "http://localhost/api/v1/auth/me" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/auth/me"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تم جلب بيانات المستخدم بنجاح",
"data": {
"id": 1,
"name": "Ayman Ahmed",
"email": "user@example.com",
"phone": "0500000000"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
06. Shipping / شركات التوصيل والشحن
APIs for managing delivery companies and their coverage zones. واجهات إدارة شركات التوصيل ومناطق التغطية.
List delivery companies. عرض شركات التوصيل.
requires authentication
Example request:
curl --request GET \
--get "http://localhost/api/v1/shipping/delivery-companies" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/delivery-companies"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create delivery company. إنشاء شركة توصيل.
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/shipping/delivery-companies" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"fast_delivery\",
\"name\": \"Fast Delivery\",
\"logo_url\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\",
\"website_url\": \"https:\\/\\/www.runte.com\\/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci\",
\"support_phone\": \"p\",
\"integration_type\": \"manual\",
\"api_provider\": \"smsa\",
\"is_active\": true,
\"supports_cod\": false,
\"supports_pickup\": true,
\"supports_tracking\": true,
\"base_price\": 20,
\"price_per_kg\": 2,
\"price_per_km\": 1,
\"min_delivery_days\": 1,
\"max_delivery_days\": 3
}"
const url = new URL(
"http://localhost/api/v1/shipping/delivery-companies"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "fast_delivery",
"name": "Fast Delivery",
"logo_url": "http:\/\/www.bailey.biz\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html",
"website_url": "https:\/\/www.runte.com\/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci",
"support_phone": "p",
"integration_type": "manual",
"api_provider": "smsa",
"is_active": true,
"supports_cod": false,
"supports_pickup": true,
"supports_tracking": true,
"base_price": 20,
"price_per_kg": 2,
"price_per_km": 1,
"min_delivery_days": 1,
"max_delivery_days": 3
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show delivery company details. عرض تفاصيل شركة التوصيل.
requires authentication
Example request:
curl --request GET \
--get "http://localhost/api/v1/shipping/delivery-companies/16" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/delivery-companies/16"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update delivery company. تحديث شركة التوصيل.
requires authentication
Example request:
curl --request PATCH \
"http://localhost/api/v1/shipping/delivery-companies/16" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"fast_delivery\",
\"name\": \"Fast Delivery Updated\",
\"logo_url\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\",
\"website_url\": \"https:\\/\\/www.runte.com\\/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci\",
\"support_phone\": \"p\",
\"integration_type\": \"api\",
\"api_provider\": \"w\",
\"is_active\": true,
\"supports_cod\": true,
\"supports_pickup\": true,
\"supports_tracking\": true,
\"base_price\": 25,
\"price_per_kg\": 89,
\"price_per_km\": 34,
\"min_delivery_days\": 3,
\"max_delivery_days\": 22
}"
const url = new URL(
"http://localhost/api/v1/shipping/delivery-companies/16"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "fast_delivery",
"name": "Fast Delivery Updated",
"logo_url": "http:\/\/www.bailey.biz\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html",
"website_url": "https:\/\/www.runte.com\/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci",
"support_phone": "p",
"integration_type": "api",
"api_provider": "w",
"is_active": true,
"supports_cod": true,
"supports_pickup": true,
"supports_tracking": true,
"base_price": 25,
"price_per_kg": 89,
"price_per_km": 34,
"min_delivery_days": 3,
"max_delivery_days": 22
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete delivery company. حذف شركة التوصيل.
requires authentication
Example request:
curl --request DELETE \
"http://localhost/api/v1/shipping/delivery-companies/16" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/delivery-companies/16"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Add delivery coverage zone. إضافة منطقة تغطية لشركة التوصيل.
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/shipping/delivery-companies/16/zones" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"country_code\": \"SA\",
\"region\": \"Madinah\",
\"city\": \"Medina\",
\"district\": \"Quba\",
\"is_active\": true,
\"zone_price\": 25,
\"min_delivery_days\": 1,
\"max_delivery_days\": 2
}"
const url = new URL(
"http://localhost/api/v1/shipping/delivery-companies/16/zones"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"country_code": "SA",
"region": "Madinah",
"city": "Medina",
"district": "Quba",
"is_active": true,
"zone_price": 25,
"min_delivery_days": 1,
"max_delivery_days": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List store delivery companies. عرض شركات التوصيل المفعلة للمتاجر.
requires authentication
Example request:
curl --request GET \
--get "http://localhost/api/v1/shipping/store-delivery-companies" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/store-delivery-companies"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enable delivery company for store. تفعيل شركة توصيل للمتجر.
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/shipping/store-delivery-companies" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"store_id\": 1,
\"delivery_company_id\": 1,
\"is_active\": true,
\"custom_base_price\": 12,
\"custom_free_delivery_min_order\": 200
}"
const url = new URL(
"http://localhost/api/v1/shipping/store-delivery-companies"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"store_id": 1,
"delivery_company_id": 1,
"is_active": true,
"custom_base_price": 12,
"custom_free_delivery_min_order": 200
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Disable delivery company for store. إلغاء تفعيل شركة التوصيل للمتجر.
requires authentication
Example request:
curl --request DELETE \
"http://localhost/api/v1/shipping/store-delivery-companies/16" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/store-delivery-companies/16"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List delivery quotes. عرض عروض أسعار التوصيل.
requires authentication
Example request:
curl --request GET \
--get "http://localhost/api/v1/shipping/quotes" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/quotes"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Generate delivery quotes. توليد عروض أسعار التوصيل المتاحة.
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/shipping/quotes/generate" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"store_id\": 1,
\"cart_id\": 1,
\"order_id\": 1,
\"address_id\": 1,
\"city\": \"Medina\",
\"district\": \"Quba\",
\"order_total\": 100,
\"weight_kg\": 2,
\"distance_km\": 5,
\"currency\": \"SAR\"
}"
const url = new URL(
"http://localhost/api/v1/shipping/quotes/generate"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"store_id": 1,
"cart_id": 1,
"order_id": 1,
"address_id": 1,
"city": "Medina",
"district": "Quba",
"order_total": 100,
"weight_kg": 2,
"distance_km": 5,
"currency": "SAR"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Select delivery quote. اختيار عرض توصيل.
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/shipping/quotes/16/select" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 1
}"
const url = new URL(
"http://localhost/api/v1/shipping/quotes/16/select"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List shipments. عرض الشحنات.
requires authentication
Example request:
curl --request GET \
--get "http://localhost/api/v1/shipping/shipments" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/shipments"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create shipment. إنشاء شحنة.
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/shipping/shipments" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 1,
\"delivery_id\": 1,
\"store_id\": 1,
\"delivery_company_id\": 1,
\"delivery_quote_id\": 1,
\"recipient_name\": \"Ayman Ahmed\",
\"recipient_phone\": \"0500000000\",
\"shipping_address\": {
\"city\": \"Medina\",
\"district\": \"Quba\"
},
\"shipping_fee\": 29,
\"currency\": \"SAR\",
\"estimated_delivery_at\": \"2026-06-19T03:07:42\"
}"
const url = new URL(
"http://localhost/api/v1/shipping/shipments"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 1,
"delivery_id": 1,
"store_id": 1,
"delivery_company_id": 1,
"delivery_quote_id": 1,
"recipient_name": "Ayman Ahmed",
"recipient_phone": "0500000000",
"shipping_address": {
"city": "Medina",
"district": "Quba"
},
"shipping_fee": 29,
"currency": "SAR",
"estimated_delivery_at": "2026-06-19T03:07:42"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show shipment details. عرض تفاصيل الشحنة.
requires authentication
Example request:
curl --request GET \
--get "http://localhost/api/v1/shipping/shipments/16" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/shipments/16"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update shipment status. تحديث حالة الشحنة.
requires authentication
Example request:
curl --request PATCH \
"http://localhost/api/v1/shipping/shipments/16/status" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"in_transit\",
\"tracking_number\": \"TRK123456\",
\"external_reference\": \"EXT-123\",
\"label_url\": \"https:\\/\\/example.com\\/label.pdf\",
\"note\": \"Shipment is on the way\",
\"location\": \"Medina\"
}"
const url = new URL(
"http://localhost/api/v1/shipping/shipments/16/status"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "in_transit",
"tracking_number": "TRK123456",
"external_reference": "EXT-123",
"label_url": "https:\/\/example.com\/label.pdf",
"note": "Shipment is on the way",
"location": "Medina"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Add shipment tracking event. إضافة حدث تتبع للشحنة.
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/shipping/shipments/16/tracking-events" \
--header "Authorization: Bearer {token}" \
--header "X-Locale: ar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"in_transit\",
\"title\": \"Shipment moved\",
\"description\": \"Shipment left the sorting center.\",
\"location\": \"Medina\",
\"occurred_at\": \"2026-06-19 10:00:00\"
}"
const url = new URL(
"http://localhost/api/v1/shipping/shipments/16/tracking-events"
);
const headers = {
"Authorization": "Bearer {token}",
"X-Locale": "ar",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "in_transit",
"title": "Shipment moved",
"description": "Shipment left the sorting center.",
"location": "Medina",
"occurred_at": "2026-06-19 10:00:00"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"success": true,
"message": "تمت العملية بنجاح",
"data": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
07. Payments / الدفع
Process payment gateway webhook
يستقبل إشعارات نجاح أو فشل الدفع من بوابة الدفع، ويحدّث الطلب والشحنة والإشعارات تلقائيًا.
Example request:
curl --request POST \
"http://localhost/api/v1/payments/webhooks/moyasar" \
--header "X-Hoota-Webhook-Secret: string Optional shared webhook secret when configured." \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"event_id\": \"evt_paid_123\",
\"event_type\": \"payment.paid\",
\"gateway\": \"architecto\",
\"payment_transaction_id\": 1,
\"transaction_number\": \"PAY-20260619-ABC123\",
\"provider_transaction_id\": \"provider_tx_123\",
\"provider_reference\": \"provider_ref_123\",
\"provider_status\": \"paid\",
\"amount\": 125.5,
\"currency\": \"SAR\",
\"failure_code\": \"card_declined\",
\"failure_message\": \"Card was declined.\",
\"payload\": {
\"source\": \"gateway\"
},
\"metadata\": {
\"environment\": \"sandbox\"
}
}"
const url = new URL(
"http://localhost/api/v1/payments/webhooks/moyasar"
);
const headers = {
"X-Hoota-Webhook-Secret": "string Optional shared webhook secret when configured.",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"event_id": "evt_paid_123",
"event_type": "payment.paid",
"gateway": "architecto",
"payment_transaction_id": 1,
"transaction_number": "PAY-20260619-ABC123",
"provider_transaction_id": "provider_tx_123",
"provider_reference": "provider_ref_123",
"provider_status": "paid",
"amount": 125.5,
"currency": "SAR",
"failure_code": "card_declined",
"failure_message": "Card was declined.",
"payload": {
"source": "gateway"
},
"metadata": {
"environment": "sandbox"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "تمت معالجة إشعار الدفع بنجاح",
"data": {
"event_id": "evt_paid_123",
"status": "processed"
},
"meta": []
}
Example response (422):
{
"success": false,
"message": "تعذر مطابقة إشعار الدفع مع عملية دفع",
"errors": {
"payment": [
"Payment transaction could not be found for this webhook."
]
},
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Endpoints
GET api/v1/admin/dashboard
Example request:
curl --request GET \
--get "http://localhost/api/v1/admin/dashboard" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/admin/dashboard"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/admin/reports/sales
Example request:
curl --request GET \
--get "http://localhost/api/v1/admin/reports/sales" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/admin/reports/sales"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/admin/reports/orders
Example request:
curl --request GET \
--get "http://localhost/api/v1/admin/reports/orders" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/admin/reports/orders"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/admin/reports/vendors
Example request:
curl --request GET \
--get "http://localhost/api/v1/admin/reports/vendors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/admin/reports/vendors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/admin/reports/inventory
Example request:
curl --request GET \
--get "http://localhost/api/v1/admin/reports/inventory" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/admin/reports/inventory"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/cart
Example request:
curl --request GET \
--get "http://localhost/api/v1/cart" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/cart"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/cart/items
Example request:
curl --request POST \
"http://localhost/api/v1/cart/items" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": \"architecto\",
\"quantity\": 22,
\"options\": [
{
\"option_name\": \"g\",
\"option_value\": \"z\",
\"extra_price\": 77
}
]
}"
const url = new URL(
"http://localhost/api/v1/cart/items"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": "architecto",
"quantity": 22,
"options": [
{
"option_name": "g",
"option_value": "z",
"extra_price": 77
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/cart/items/{cartItem_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/cart/items/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"quantity\": 16
}"
const url = new URL(
"http://localhost/api/v1/cart/items/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"quantity": 16
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/cart/items/{cartItem_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/cart/items/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/cart/items/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/cart/apply-coupon
Example request:
curl --request POST \
"http://localhost/api/v1/cart/apply-coupon" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/cart/apply-coupon"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/cart/remove-coupon
Example request:
curl --request DELETE \
"http://localhost/api/v1/cart/remove-coupon" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/cart/remove-coupon"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/cart/recalculate
Example request:
curl --request POST \
"http://localhost/api/v1/cart/recalculate" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/cart/recalculate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/cart/clear
Example request:
curl --request DELETE \
"http://localhost/api/v1/cart/clear" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/cart/clear"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/categories
Example request:
curl --request GET \
--get "http://localhost/api/v1/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/categories
Example request:
curl --request POST \
"http://localhost/api/v1/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"slug\": \"b\",
\"image\": \"architecto\",
\"sort_order\": 39,
\"is_active\": true,
\"translations\": [
{
\"locale\": \"ar\",
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"slug": "b",
"image": "architecto",
"sort_order": 39,
"is_active": true,
"translations": [
{
"locale": "ar",
"name": "b",
"description": "Eius et animi quos velit et."
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/categories/{category_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/categories/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/categories/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/categories/{category_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/categories/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"slug\": \"b\",
\"image\": \"architecto\",
\"sort_order\": 39,
\"is_active\": false,
\"translations\": [
{
\"locale\": \"en\",
\"name\": \"g\",
\"description\": \"Eius et animi quos velit et.\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/categories/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"slug": "b",
"image": "architecto",
"sort_order": 39,
"is_active": false,
"translations": [
{
"locale": "en",
"name": "g",
"description": "Eius et animi quos velit et."
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/categories/{category_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/categories/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/categories/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/brands
Example request:
curl --request GET \
--get "http://localhost/api/v1/brands" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/brands"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/brands
Example request:
curl --request POST \
"http://localhost/api/v1/brands" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"slug\": \"b\",
\"logo\": \"architecto\",
\"is_active\": true,
\"translations\": [
{
\"locale\": \"en\",
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/brands"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"slug": "b",
"logo": "architecto",
"is_active": true,
"translations": [
{
"locale": "en",
"name": "b",
"description": "Eius et animi quos velit et."
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/brands/{brand_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/brands/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/brands/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/brands/{brand_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/brands/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"slug\": \"b\",
\"logo\": \"architecto\",
\"is_active\": false,
\"translations\": [
{
\"locale\": \"ar\",
\"name\": \"n\",
\"description\": \"Eius et animi quos velit et.\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/brands/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"slug": "b",
"logo": "architecto",
"is_active": false,
"translations": [
{
"locale": "ar",
"name": "n",
"description": "Eius et animi quos velit et."
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/brands/{brand_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/brands/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/brands/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/attributes
Example request:
curl --request GET \
--get "http://localhost/api/v1/attributes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/attributes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/attributes
Example request:
curl --request POST \
"http://localhost/api/v1/attributes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"type\": \"size\",
\"is_filterable\": false,
\"is_required\": false,
\"sort_order\": 39,
\"translations\": [
{
\"locale\": \"en\",
\"name\": \"b\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/attributes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"type": "size",
"is_filterable": false,
"is_required": false,
"sort_order": 39,
"translations": [
{
"locale": "en",
"name": "b"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/attributes/{attribute_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/attributes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/attributes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/attributes/{attribute_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/attributes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"type\": \"number\",
\"is_filterable\": true,
\"is_required\": true,
\"sort_order\": 39,
\"translations\": [
{
\"locale\": \"ar\",
\"name\": \"g\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/attributes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"type": "number",
"is_filterable": true,
"is_required": true,
"sort_order": 39,
"translations": [
{
"locale": "ar",
"name": "g"
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/attributes/{attribute_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/attributes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/attributes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/attribute-values
Example request:
curl --request GET \
--get "http://localhost/api/v1/attribute-values" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/attribute-values"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/attribute-values
Example request:
curl --request POST \
"http://localhost/api/v1/attribute-values" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"attribute_id\": \"architecto\",
\"code\": \"n\",
\"color_code\": \"gzmiyvdljnikhway\",
\"sort_order\": 62,
\"is_active\": true,
\"translations\": [
{
\"locale\": \"ar\",
\"value\": \"b\",
\"display_value\": \"n\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/attribute-values"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"attribute_id": "architecto",
"code": "n",
"color_code": "gzmiyvdljnikhway",
"sort_order": 62,
"is_active": true,
"translations": [
{
"locale": "ar",
"value": "b",
"display_value": "n"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/attribute-values/{attributeValue_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/attribute-values/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/attribute-values/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/attribute-values/{attributeValue_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/attribute-values/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"color_code\": \"ngzmiyvdljnikhwa\",
\"sort_order\": 50,
\"is_active\": true,
\"translations\": [
{
\"locale\": \"en\",
\"value\": \"k\",
\"display_value\": \"c\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/attribute-values/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"color_code": "ngzmiyvdljnikhwa",
"sort_order": 50,
"is_active": true,
"translations": [
{
"locale": "en",
"value": "k",
"display_value": "c"
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/attribute-values/{attributeValue_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/attribute-values/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/attribute-values/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/products
Example request:
curl --request GET \
--get "http://localhost/api/v1/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/products
Example request:
curl --request POST \
"http://localhost/api/v1/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"store_id\": \"architecto\",
\"slug\": \"n\",
\"sku\": \"g\",
\"barcode\": \"z\",
\"type\": \"variable\",
\"status\": \"active\",
\"base_price\": 77,
\"sale_price\": 8,
\"sale_starts_at\": \"2026-06-19T03:07:42\",
\"sale_ends_at\": \"2052-07-12\",
\"is_featured\": false,
\"is_digital\": true,
\"translations\": [
{
\"locale\": \"en\",
\"name\": \"n\",
\"short_description\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\",
\"meta_title\": \"v\",
\"meta_description\": \"architecto\"
}
],
\"tags\": [
\"b\"
]
}"
const url = new URL(
"http://localhost/api/v1/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"store_id": "architecto",
"slug": "n",
"sku": "g",
"barcode": "z",
"type": "variable",
"status": "active",
"base_price": 77,
"sale_price": 8,
"sale_starts_at": "2026-06-19T03:07:42",
"sale_ends_at": "2052-07-12",
"is_featured": false,
"is_digital": true,
"translations": [
{
"locale": "en",
"name": "n",
"short_description": "architecto",
"description": "Eius et animi quos velit et.",
"meta_title": "v",
"meta_description": "architecto"
}
],
"tags": [
"b"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/products/{product_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/products/{product_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"slug\": \"b\",
\"sku\": \"n\",
\"barcode\": \"g\",
\"type\": \"simple\",
\"status\": \"pending_review\",
\"base_price\": 12,
\"sale_price\": 77,
\"sale_starts_at\": \"2026-06-19T03:07:42\",
\"sale_ends_at\": \"2052-07-12\",
\"is_featured\": false,
\"is_digital\": false,
\"tags\": [
\"n\"
],
\"translations\": [
{
\"locale\": \"ar\",
\"name\": \"g\",
\"short_description\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\",
\"meta_title\": \"v\",
\"meta_description\": \"architecto\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"slug": "b",
"sku": "n",
"barcode": "g",
"type": "simple",
"status": "pending_review",
"base_price": 12,
"sale_price": 77,
"sale_starts_at": "2026-06-19T03:07:42",
"sale_ends_at": "2052-07-12",
"is_featured": false,
"is_digital": false,
"tags": [
"n"
],
"translations": [
{
"locale": "ar",
"name": "g",
"short_description": "architecto",
"description": "Eius et animi quos velit et.",
"meta_title": "v",
"meta_description": "architecto"
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/products/{product_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/product-variants
Example request:
curl --request POST \
"http://localhost/api/v1/product-variants" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": \"architecto\",
\"sku\": \"n\",
\"barcode\": \"g\",
\"price\": 12,
\"sale_price\": 77,
\"weight\": 8,
\"status\": \"active\",
\"values\": [
{
\"attribute_id\": \"architecto\",
\"attribute_value_id\": \"architecto\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/product-variants"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": "architecto",
"sku": "n",
"barcode": "g",
"price": 12,
"sale_price": 77,
"weight": 8,
"status": "active",
"values": [
{
"attribute_id": "architecto",
"attribute_value_id": "architecto"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/product-variants/{variant_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/product-variants/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sku\": \"b\",
\"barcode\": \"n\",
\"price\": 84,
\"sale_price\": 12,
\"weight\": 77,
\"status\": \"inactive\",
\"values\": [
{
\"attribute_id\": \"architecto\",
\"attribute_value_id\": \"architecto\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/product-variants/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sku": "b",
"barcode": "n",
"price": 84,
"sale_price": 12,
"weight": 77,
"status": "inactive",
"values": [
{
"attribute_id": "architecto",
"attribute_value_id": "architecto"
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/product-variants/{variant_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/product-variants/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/product-variants/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/product-images
Example request:
curl --request POST \
"http://localhost/api/v1/product-images" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": \"architecto\",
\"image_path\": \"architecto\",
\"alt_text\": \"n\",
\"sort_order\": 84,
\"is_primary\": true
}"
const url = new URL(
"http://localhost/api/v1/product-images"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": "architecto",
"image_path": "architecto",
"alt_text": "n",
"sort_order": 84,
"is_primary": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/product-images/{image_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/product-images/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/product-images/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/checkout/session
Example request:
curl --request POST \
"http://localhost/api/v1/checkout/session" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/checkout/session"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/checkout/place-order
Example request:
curl --request POST \
"http://localhost/api/v1/checkout/place-order" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_name\": \"b\",
\"customer_email\": \"zbailey@example.net\",
\"customer_phone\": \"i\",
\"notes\": \"architecto\",
\"delivery_quote_id\": 16,
\"shipping_address\": {
\"name\": \"b\",
\"phone\": \"n\",
\"country\": \"gz\",
\"city\": \"m\",
\"district\": \"i\",
\"address_line\": \"architecto\",
\"postal_code\": \"n\",
\"latitude\": 4326.41688,
\"longitude\": 4326.41688
}
}"
const url = new URL(
"http://localhost/api/v1/checkout/place-order"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_name": "b",
"customer_email": "zbailey@example.net",
"customer_phone": "i",
"notes": "architecto",
"delivery_quote_id": 16,
"shipping_address": {
"name": "b",
"phone": "n",
"country": "gz",
"city": "m",
"district": "i",
"address_line": "architecto",
"postal_code": "n",
"latitude": 4326.41688,
"longitude": 4326.41688
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/coupons
Example request:
curl --request GET \
--get "http://localhost/api/v1/coupons" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/coupons"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/coupons
Example request:
curl --request POST \
"http://localhost/api/v1/coupons" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"type\": \"percentage\",
\"value\": 39,
\"max_discount_amount\": 84,
\"minimum_order_amount\": 12,
\"usage_limit\": 27,
\"usage_limit_per_user\": 35,
\"starts_at\": \"2026-06-19T03:07:42\",
\"expires_at\": \"2052-07-12\",
\"status\": \"archived\",
\"rules\": [
{
\"rule_type\": \"minimum_order\",
\"operator\": \"n\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/coupons"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"type": "percentage",
"value": 39,
"max_discount_amount": 84,
"minimum_order_amount": 12,
"usage_limit": 27,
"usage_limit_per_user": 35,
"starts_at": "2026-06-19T03:07:42",
"expires_at": "2052-07-12",
"status": "archived",
"rules": [
{
"rule_type": "minimum_order",
"operator": "n"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/coupons/{coupon_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/coupons/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/coupons/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/coupons/{coupon_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/coupons/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"type\": \"fixed_amount\",
\"value\": 39,
\"max_discount_amount\": 84,
\"minimum_order_amount\": 12,
\"usage_limit\": 27,
\"usage_limit_per_user\": 35,
\"starts_at\": \"2026-06-19T03:07:42\",
\"expires_at\": \"2052-07-12\",
\"status\": \"inactive\",
\"rules\": [
{
\"rule_type\": \"first_order\",
\"operator\": \"n\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/coupons/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"type": "fixed_amount",
"value": 39,
"max_discount_amount": 84,
"minimum_order_amount": 12,
"usage_limit": 27,
"usage_limit_per_user": 35,
"starts_at": "2026-06-19T03:07:42",
"expires_at": "2052-07-12",
"status": "inactive",
"rules": [
{
"rule_type": "first_order",
"operator": "n"
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/coupons/{coupon_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/coupons/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/coupons/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/deliveries
Example request:
curl --request GET \
--get "http://localhost/api/v1/deliveries" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/deliveries"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/deliveries
Example request:
curl --request POST \
"http://localhost/api/v1/deliveries" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": \"architecto\",
\"delivery_method\": \"pickup\",
\"delivery_fee\": 39,
\"distance_km\": 84,
\"notes\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/deliveries"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": "architecto",
"delivery_method": "pickup",
"delivery_fee": 39,
"distance_km": 84,
"notes": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/deliveries/{delivery_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/deliveries/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/deliveries/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/deliveries/{delivery_id}/assign-driver
Example request:
curl --request POST \
"http://localhost/api/v1/deliveries/16/assign-driver" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"driver_id\": \"architecto\",
\"reason\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/deliveries/16/assign-driver"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"driver_id": "architecto",
"reason": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/deliveries/{delivery_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/deliveries/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"out_for_delivery\",
\"note\": \"architecto\",
\"failure_reason\": \"architecto\",
\"latitude\": 4326.41688,
\"longitude\": 4326.41688
}"
const url = new URL(
"http://localhost/api/v1/deliveries/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "out_for_delivery",
"note": "architecto",
"failure_reason": "architecto",
"latitude": 4326.41688,
"longitude": 4326.41688
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/drivers
Example request:
curl --request GET \
--get "http://localhost/api/v1/drivers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/drivers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/drivers
Example request:
curl --request POST \
"http://localhost/api/v1/drivers" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": \"architecto\",
\"vehicle_type\": \"n\",
\"vehicle_plate_number\": \"g\",
\"license_number\": \"z\",
\"status\": \"rejected\",
\"availability_status\": \"offline\",
\"is_active\": false
}"
const url = new URL(
"http://localhost/api/v1/drivers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": "architecto",
"vehicle_type": "n",
"vehicle_plate_number": "g",
"license_number": "z",
"status": "rejected",
"availability_status": "offline",
"is_active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/drivers/{driver_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/drivers/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/drivers/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/drivers/{driver_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/drivers/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"rejected\",
\"reason\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/drivers/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "rejected",
"reason": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/drivers/{driver_id}/availability
Example request:
curl --request PATCH \
"http://localhost/api/v1/drivers/16/availability" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"availability_status\": \"busy\"
}"
const url = new URL(
"http://localhost/api/v1/drivers/16/availability"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"availability_status": "busy"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/drivers/{driver_id}/location
Example request:
curl --request PATCH \
"http://localhost/api/v1/drivers/16/location" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"latitude\": 4326.41688,
\"longitude\": 4326.41688
}"
const url = new URL(
"http://localhost/api/v1/drivers/16/location"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"latitude": 4326.41688,
"longitude": 4326.41688
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/drivers/{driver_id}/documents
Example request:
curl --request POST \
"http://localhost/api/v1/drivers/16/documents" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"vehicle_registration\",
\"file_path\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/drivers/16/documents"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "vehicle_registration",
"file_path": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/driver-documents/{driverDocument_id}/review
Example request:
curl --request PATCH \
"http://localhost/api/v1/driver-documents/16/review" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"approved\",
\"rejection_reason\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/driver-documents/16/review"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "approved",
"rejection_reason": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/engagement/wishlist
Example request:
curl --request GET \
--get "http://localhost/api/v1/engagement/wishlist" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/engagement/wishlist"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/engagement/wishlist
Example request:
curl --request POST \
"http://localhost/api/v1/engagement/wishlist" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": 16,
\"notes\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/engagement/wishlist"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": 16,
"notes": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/engagement/wishlist/{wishlistItem_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/engagement/wishlist/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/engagement/wishlist/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/engagement/favorites
Example request:
curl --request GET \
--get "http://localhost/api/v1/engagement/favorites" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/engagement/favorites"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/engagement/favorites
Example request:
curl --request POST \
"http://localhost/api/v1/engagement/favorites" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"favoritable_type\": \"driver\",
\"favoritable_id\": 16,
\"type\": \"favorite\"
}"
const url = new URL(
"http://localhost/api/v1/engagement/favorites"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"favoritable_type": "driver",
"favoritable_id": 16,
"type": "favorite"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/engagement/favorites/{favorite_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/engagement/favorites/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/engagement/favorites/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/engagement/recently-viewed
Example request:
curl --request GET \
--get "http://localhost/api/v1/engagement/recently-viewed" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/engagement/recently-viewed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/engagement/recently-viewed
Example request:
curl --request POST \
"http://localhost/api/v1/engagement/recently-viewed" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"viewable_type\": \"store\",
\"viewable_id\": 16
}"
const url = new URL(
"http://localhost/api/v1/engagement/recently-viewed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"viewable_type": "store",
"viewable_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/engagement/recently-viewed
Example request:
curl --request DELETE \
"http://localhost/api/v1/engagement/recently-viewed" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/engagement/recently-viewed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/finance/wallets
Example request:
curl --request GET \
--get "http://localhost/api/v1/finance/wallets" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/finance/wallets"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/finance/wallets/{wallet_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/finance/wallets/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/finance/wallets/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/finance/wallets/{wallet_id}/transactions
Example request:
curl --request GET \
--get "http://localhost/api/v1/finance/wallets/16/transactions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/finance/wallets/16/transactions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/finance/commission-rules
Example request:
curl --request GET \
--get "http://localhost/api/v1/finance/commission-rules" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/finance/commission-rules"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/finance/commission-rules
Example request:
curl --request POST \
"http://localhost/api/v1/finance/commission-rules" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"percentage\",
\"value\": 27,
\"is_active\": false
}"
const url = new URL(
"http://localhost/api/v1/finance/commission-rules"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "percentage",
"value": 27,
"is_active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/finance/payout-requests
Example request:
curl --request GET \
--get "http://localhost/api/v1/finance/payout-requests" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/finance/payout-requests"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/finance/payout-requests
Example request:
curl --request POST \
"http://localhost/api/v1/finance/payout-requests" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"wallet_id\": \"architecto\",
\"amount\": 4326.41688,
\"note\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/finance/payout-requests"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"wallet_id": "architecto",
"amount": 4326.41688,
"note": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/finance/payout-requests/{payoutRequest_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/finance/payout-requests/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"pending\",
\"note\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/finance/payout-requests/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "pending",
"note": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/warehouses
Example request:
curl --request GET \
--get "http://localhost/api/v1/warehouses" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/warehouses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/warehouses
Example request:
curl --request POST \
"http://localhost/api/v1/warehouses" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"store_id\": \"architecto\",
\"name\": \"n\",
\"city\": \"g\",
\"address\": \"architecto\",
\"latitude\": 4326.41688,
\"longitude\": 4326.41688,
\"is_active\": true
}"
const url = new URL(
"http://localhost/api/v1/warehouses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"store_id": "architecto",
"name": "n",
"city": "g",
"address": "architecto",
"latitude": 4326.41688,
"longitude": 4326.41688,
"is_active": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/warehouses/{warehouse_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/warehouses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/warehouses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/warehouses/{warehouse_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/warehouses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"city\": \"n\",
\"address\": \"architecto\",
\"latitude\": 4326.41688,
\"longitude\": 4326.41688,
\"is_active\": true
}"
const url = new URL(
"http://localhost/api/v1/warehouses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"city": "n",
"address": "architecto",
"latitude": 4326.41688,
"longitude": 4326.41688,
"is_active": true
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/warehouses/{warehouse_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/warehouses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/warehouses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/inventories
Example request:
curl --request GET \
--get "http://localhost/api/v1/inventories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/inventories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/inventories
Example request:
curl --request POST \
"http://localhost/api/v1/inventories" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warehouse_id\": \"architecto\",
\"product_id\": \"architecto\",
\"quantity\": 39,
\"reserved_quantity\": 84,
\"low_stock_threshold\": 12
}"
const url = new URL(
"http://localhost/api/v1/inventories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warehouse_id": "architecto",
"product_id": "architecto",
"quantity": 39,
"reserved_quantity": 84,
"low_stock_threshold": 12
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/inventories/{inventory_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/inventories/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/inventories/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "يجب تسجيل الدخول أولاً",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/inventories/{inventory_id}/adjust
Example request:
curl --request POST \
"http://localhost/api/v1/inventories/16/adjust" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"damage\",
\"quantity\": 16,
\"note\": \"architecto\",
\"reference_type\": \"n\",
\"reference_id\": 16
}"
const url = new URL(
"http://localhost/api/v1/inventories/16/adjust"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "damage",
"quantity": 16,
"note": "architecto",
"reference_type": "n",
"reference_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/stock-reservations
Example request:
curl --request POST \
"http://localhost/api/v1/stock-reservations" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"inventory_id\": \"architecto\",
\"quantity\": 22,
\"expires_at\": \"2026-06-19T03:07:42\"
}"
const url = new URL(
"http://localhost/api/v1/stock-reservations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"inventory_id": "architecto",
"quantity": 22,
"expires_at": "2026-06-19T03:07:42"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/stock-reservations/{reservation_id}/release
Example request:
curl --request POST \
"http://localhost/api/v1/stock-reservations/16/release" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/stock-reservations/16/release"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/stock-reservations/{reservation_id}/confirm
Example request:
curl --request POST \
"http://localhost/api/v1/stock-reservations/16/confirm" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/stock-reservations/16/confirm"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/marketing/banners
GET api/v1/marketing/campaigns/active
Example request:
curl --request GET \
--get "http://localhost/api/v1/marketing/campaigns/active" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/marketing/campaigns/active"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": true,
"message": "تمت العملية بنجاح",
"data": [],
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/marketing/featured-products
Example request:
curl --request GET \
--get "http://localhost/api/v1/marketing/featured-products" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/marketing/featured-products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": true,
"message": "تمت العملية بنجاح",
"data": [],
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/marketing/admin/banners
GET api/v1/marketing/admin/campaigns
Example request:
curl --request GET \
--get "http://localhost/api/v1/marketing/admin/campaigns" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/marketing/admin/campaigns"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/marketing/admin/featured-products
Example request:
curl --request GET \
--get "http://localhost/api/v1/marketing/admin/featured-products" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/marketing/admin/featured-products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/marketing/banners
PATCH api/v1/marketing/banners/{banner_id}
DELETE api/v1/marketing/banners/{banner_id}
POST api/v1/marketing/campaigns
Example request:
curl --request POST \
"http://localhost/api/v1/marketing/campaigns" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\",
\"starts_at\": \"2026-06-19T03:07:42\",
\"ends_at\": \"2052-07-12\",
\"status\": \"active\"
}"
const url = new URL(
"http://localhost/api/v1/marketing/campaigns"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"description": "Eius et animi quos velit et.",
"starts_at": "2026-06-19T03:07:42",
"ends_at": "2052-07-12",
"status": "active"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/marketing/campaigns/{campaign_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/marketing/campaigns/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\",
\"starts_at\": \"2026-06-19T03:07:42\",
\"ends_at\": \"2052-07-12\",
\"status\": \"active\"
}"
const url = new URL(
"http://localhost/api/v1/marketing/campaigns/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"description": "Eius et animi quos velit et.",
"starts_at": "2026-06-19T03:07:42",
"ends_at": "2052-07-12",
"status": "active"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/marketing/campaigns/{campaign_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/marketing/campaigns/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/marketing/campaigns/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/marketing/featured-products
Example request:
curl --request POST \
"http://localhost/api/v1/marketing/featured-products" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": \"architecto\",
\"placement\": \"n\",
\"priority\": 84,
\"is_active\": true,
\"starts_at\": \"2026-06-19T03:07:42\",
\"ends_at\": \"2052-07-12\"
}"
const url = new URL(
"http://localhost/api/v1/marketing/featured-products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": "architecto",
"placement": "n",
"priority": 84,
"is_active": true,
"starts_at": "2026-06-19T03:07:42",
"ends_at": "2052-07-12"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/marketing/featured-products/{featuredProduct_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/marketing/featured-products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": \"architecto\",
\"placement\": \"n\",
\"priority\": 84,
\"is_active\": true,
\"starts_at\": \"2026-06-19T03:07:42\",
\"ends_at\": \"2052-07-12\"
}"
const url = new URL(
"http://localhost/api/v1/marketing/featured-products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": "architecto",
"placement": "n",
"priority": 84,
"is_active": true,
"starts_at": "2026-06-19T03:07:42",
"ends_at": "2052-07-12"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/marketing/featured-products/{featuredProduct_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/marketing/featured-products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/marketing/featured-products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/media
Example request:
curl --request GET \
--get "http://localhost/api/v1/media" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/media"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/media
Example request:
curl --request POST \
"http://localhost/api/v1/media" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "disk=b"\
--form "collection=n"\
--form "attachable_type=store"\
--form "attachable_id=16"\
--form "file=@/private/var/folders/4b/zjh6g6b16_17hb3fwzzjgn9c0000gn/T/php3jme8pvl0cp40GGAIOn" const url = new URL(
"http://localhost/api/v1/media"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('disk', 'b');
body.append('collection', 'n');
body.append('attachable_type', 'store');
body.append('attachable_id', '16');
body.append('file', document.querySelector('input[name="file"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/media/{mediaFile_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/media/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/media/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/notifications/templates
Example request:
curl --request GET \
--get "http://localhost/api/v1/notifications/templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/notifications/templates
Example request:
curl --request POST \
"http://localhost/api/v1/notifications/templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"key\": \"b\",
\"channel\": \"whatsapp\",
\"locale\": \"ln_CD\",
\"name\": \"g\",
\"subject\": \"z\",
\"body\": \"architecto\",
\"is_active\": true
}"
const url = new URL(
"http://localhost/api/v1/notifications/templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"key": "b",
"channel": "whatsapp",
"locale": "ln_CD",
"name": "g",
"subject": "z",
"body": "architecto",
"is_active": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/notifications/templates/{notificationTemplate_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/notifications/templates/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/templates/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/notifications/templates/{notificationTemplate_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/notifications/templates/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"key\": \"b\",
\"channel\": \"whatsapp\",
\"locale\": \"ln_CD\",
\"name\": \"g\",
\"subject\": \"z\",
\"body\": \"architecto\",
\"is_active\": true
}"
const url = new URL(
"http://localhost/api/v1/notifications/templates/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"key": "b",
"channel": "whatsapp",
"locale": "ln_CD",
"name": "g",
"subject": "z",
"body": "architecto",
"is_active": true
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/notifications/templates/{notificationTemplate_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/notifications/templates/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/templates/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/notifications/send
Example request:
curl --request POST \
"http://localhost/api/v1/notifications/send" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"general\",
\"channel\": \"in_app\",
\"recipient\": \"b\",
\"template_key\": \"n\",
\"locale\": \"kfo_CI\",
\"title\": \"z\",
\"subject\": \"m\",
\"body\": \"architecto\",
\"provider\": \"n\"
}"
const url = new URL(
"http://localhost/api/v1/notifications/send"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "general",
"channel": "in_app",
"recipient": "b",
"template_key": "n",
"locale": "kfo_CI",
"title": "z",
"subject": "m",
"body": "architecto",
"provider": "n"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/notifications/logs
Example request:
curl --request GET \
--get "http://localhost/api/v1/notifications/logs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/logs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/notifications/logs/{notificationLog_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/notifications/logs/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/logs/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/notifications/me
Example request:
curl --request GET \
--get "http://localhost/api/v1/notifications/me" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/me"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/notifications/me/read-all
Example request:
curl --request PATCH \
"http://localhost/api/v1/notifications/me/read-all" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/me/read-all"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/notifications/me/{userNotification_id}/read
Example request:
curl --request PATCH \
"http://localhost/api/v1/notifications/me/16/read" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/me/16/read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/notifications/preferences
Example request:
curl --request GET \
--get "http://localhost/api/v1/notifications/preferences" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/notifications/preferences"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/notifications/preferences
Example request:
curl --request PATCH \
"http://localhost/api/v1/notifications/preferences" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"auth\",
\"channel\": \"in_app\",
\"is_enabled\": true
}"
const url = new URL(
"http://localhost/api/v1/notifications/preferences"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "auth",
"channel": "in_app",
"is_enabled": true
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/orders
Example request:
curl --request GET \
--get "http://localhost/api/v1/orders" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/orders"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/orders/{order_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/orders/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/orders/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/orders/{order_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/orders/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"ready_for_delivery\",
\"reason\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/orders/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "ready_for_delivery",
"reason": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/payments
Example request:
curl --request GET \
--get "http://localhost/api/v1/payments" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/payments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/payments
Example request:
curl --request POST \
"http://localhost/api/v1/payments" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": \"architecto\",
\"gateway\": \"hyperpay\",
\"method\": \"card\",
\"type\": \"capture\",
\"amount\": 39,
\"currency\": \"g\",
\"provider_transaction_id\": \"z\",
\"provider_reference\": \"m\",
\"provider_status\": \"i\"
}"
const url = new URL(
"http://localhost/api/v1/payments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": "architecto",
"gateway": "hyperpay",
"method": "card",
"type": "capture",
"amount": 39,
"currency": "g",
"provider_transaction_id": "z",
"provider_reference": "m",
"provider_status": "i"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/payments/{paymentTransaction_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/payments/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/payments/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/payments/{paymentTransaction_id}/mark-paid
Example request:
curl --request POST \
"http://localhost/api/v1/payments/16/mark-paid" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"provider_transaction_id\": \"b\",
\"provider_reference\": \"n\",
\"provider_status\": \"g\"
}"
const url = new URL(
"http://localhost/api/v1/payments/16/mark-paid"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"provider_transaction_id": "b",
"provider_reference": "n",
"provider_status": "g"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/payments/{paymentTransaction_id}/mark-failed
Example request:
curl --request POST \
"http://localhost/api/v1/payments/16/mark-failed" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"failure_code\": \"b\",
\"failure_message\": \"architecto\",
\"provider_transaction_id\": \"n\",
\"provider_reference\": \"g\",
\"provider_status\": \"z\"
}"
const url = new URL(
"http://localhost/api/v1/payments/16/mark-failed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"failure_code": "b",
"failure_message": "architecto",
"provider_transaction_id": "n",
"provider_reference": "g",
"provider_status": "z"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/payments/{paymentTransaction_id}/cancel
Example request:
curl --request POST \
"http://localhost/api/v1/payments/16/cancel" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/payments/16/cancel"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/payments/{paymentTransaction_id}/refunds
Example request:
curl --request POST \
"http://localhost/api/v1/payments/16/refunds" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount\": 27,
\"reason\": \"architecto\",
\"provider_refund_id\": \"n\",
\"provider_status\": \"g\"
}"
const url = new URL(
"http://localhost/api/v1/payments/16/refunds"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": 27,
"reason": "architecto",
"provider_refund_id": "n",
"provider_status": "g"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/returns
Example request:
curl --request GET \
--get "http://localhost/api/v1/returns" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/returns"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/returns
Example request:
curl --request POST \
"http://localhost/api/v1/returns" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 16,
\"type\": \"exchange\",
\"reason\": \"wrong_item\",
\"description\": \"Eius et animi quos velit et.\",
\"requested_total\": 60,
\"currency\": \"dlj\",
\"items\": [
{
\"order_item_id\": 16,
\"product_id\": 16,
\"product_variant_id\": 16,
\"quantity\": 22,
\"unit_price\": 84,
\"requested_total\": 12,
\"reason\": \"missing_parts\",
\"condition\": \"used\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/returns"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 16,
"type": "exchange",
"reason": "wrong_item",
"description": "Eius et animi quos velit et.",
"requested_total": 60,
"currency": "dlj",
"items": [
{
"order_item_id": 16,
"product_id": 16,
"product_variant_id": 16,
"quantity": 22,
"unit_price": 84,
"requested_total": 12,
"reason": "missing_parts",
"condition": "used"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/returns/{returnRequest_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/returns/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/returns/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/returns/{returnRequest_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/returns/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"completed\",
\"approved_total\": 27,
\"rejection_reason\": \"architecto\",
\"note\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/returns/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "completed",
"approved_total": 27,
"rejection_reason": "architecto",
"note": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/returns/{returnRequest_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/returns/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/returns/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/returns/{returnRequest_id}/messages
Example request:
curl --request POST \
"http://localhost/api/v1/returns/16/messages" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"message\": \"architecto\",
\"attachments\": [
\"architecto\"
]
}"
const url = new URL(
"http://localhost/api/v1/returns/16/messages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"message": "architecto",
"attachments": [
"architecto"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/reviews/reports
Example request:
curl --request GET \
--get "http://localhost/api/v1/reviews/reports" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/reviews/reports"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/reviews/reports/{reviewReport_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/reviews/reports/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"dismissed\"
}"
const url = new URL(
"http://localhost/api/v1/reviews/reports/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "dismissed"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/reviews
Example request:
curl --request GET \
--get "http://localhost/api/v1/reviews" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/reviews"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/reviews
Example request:
curl --request POST \
"http://localhost/api/v1/reviews" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reviewable_type\": \"product\",
\"reviewable_id\": 16,
\"rating\": 2,
\"title\": \"g\",
\"body\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/reviews"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reviewable_type": "product",
"reviewable_id": 16,
"rating": 2,
"title": "g",
"body": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/reviews/{review_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/reviews/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/reviews/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/reviews/{review_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/reviews/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"hidden\",
\"rejection_reason\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/reviews/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "hidden",
"rejection_reason": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/reviews/{review_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/reviews/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/reviews/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/reviews/{review_id}/replies
Example request:
curl --request POST \
"http://localhost/api/v1/reviews/16/replies" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/reviews/16/replies"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/reviews/{review_id}/votes
Example request:
curl --request POST \
"http://localhost/api/v1/reviews/16/votes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"helpful\"
}"
const url = new URL(
"http://localhost/api/v1/reviews/16/votes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "helpful"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/reviews/{review_id}/reports
Example request:
curl --request POST \
"http://localhost/api/v1/reviews/16/reports" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"fake\",
\"details\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/reviews/16/reports"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "fake",
"details": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/search/products
Example request:
curl --request GET \
--get "http://localhost/api/v1/search/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"q\": \"b\",
\"category_id\": 16,
\"brand_id\": 16,
\"store_id\": 16,
\"min_price\": 39,
\"max_price\": 84,
\"status\": \"z\",
\"sort\": \"price_asc\",
\"per_page\": 17
}"
const url = new URL(
"http://localhost/api/v1/search/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"q": "b",
"category_id": 16,
"brand_id": 16,
"store_id": 16,
"min_price": 39,
"max_price": 84,
"status": "z",
"sort": "price_asc",
"per_page": 17
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "Validation error",
"errors": {
"category_id": [
"The selected category id is invalid."
],
"brand_id": [
"The selected brand id is invalid."
],
"store_id": [
"The selected store id is invalid."
]
},
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/search/suggestions
Example request:
curl --request GET \
--get "http://localhost/api/v1/search/suggestions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/search/suggestions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": true,
"message": "تم جلب اقتراحات البحث بنجاح",
"data": [],
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/discovery/home
Example request:
curl --request GET \
--get "http://localhost/api/v1/discovery/home" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/discovery/home"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": true,
"message": "تم جلب بيانات الاكتشاف بنجاح",
"data": {
"latest_products": [],
"top_rated_products": [],
"featured_categories": [],
"featured_brands": [],
"featured_stores": []
},
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/shipping/health
Example request:
curl --request GET \
--get "http://localhost/api/v1/shipping/health" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/shipping/health"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": true,
"message": "Shipping module is healthy",
"data": {
"module": "shipping"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/stores
Example request:
curl --request GET \
--get "http://localhost/api/v1/stores" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/stores"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/stores
Example request:
curl --request POST \
"http://localhost/api/v1/stores" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 16,
\"name\": \"n\",
\"description\": \"Eius et animi quos velit et.\",
\"city\": \"v\",
\"district\": \"d\",
\"latitude\": -89,
\"longitude\": -179,
\"commission_rate\": 17,
\"is_featured\": true,
\"translations\": [
{
\"locale\": \"ar\",
\"name\": \"i\",
\"description\": \"Eius et animi quos velit et.\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/stores"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 16,
"name": "n",
"description": "Eius et animi quos velit et.",
"city": "v",
"district": "d",
"latitude": -89,
"longitude": -179,
"commission_rate": 17,
"is_featured": true,
"translations": [
{
"locale": "ar",
"name": "i",
"description": "Eius et animi quos velit et."
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/stores/{store_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/stores/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/stores/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/stores/{store_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/stores/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\",
\"city\": \"v\",
\"district\": \"d\",
\"latitude\": -89,
\"longitude\": -179,
\"commission_rate\": 17,
\"is_featured\": false,
\"translations\": [
{
\"locale\": \"ar\",
\"name\": \"i\",
\"description\": \"Eius et animi quos velit et.\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/stores/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"description": "Eius et animi quos velit et.",
"city": "v",
"district": "d",
"latitude": -89,
"longitude": -179,
"commission_rate": 17,
"is_featured": false,
"translations": [
{
"locale": "ar",
"name": "i",
"description": "Eius et animi quos velit et."
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/stores/{store_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/stores/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/stores/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/stores/{store_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/stores/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"rejected\",
\"reason\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/stores/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "rejected",
"reason": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/stores/{store_id}/working-hours
Example request:
curl --request GET \
--get "http://localhost/api/v1/stores/16/working-hours" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/stores/16/working-hours"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/stores/{store_id}/working-hours
Example request:
curl --request POST \
"http://localhost/api/v1/stores/16/working-hours" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"day_of_week\": \"Wednesday\",
\"opens_at\": \"03:07\",
\"closes_at\": \"2052-07-12\",
\"is_closed\": true
}"
const url = new URL(
"http://localhost/api/v1/stores/16/working-hours"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"day_of_week": "Wednesday",
"opens_at": "03:07",
"closes_at": "2052-07-12",
"is_closed": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/support/categories
Example request:
curl --request GET \
--get "http://localhost/api/v1/support/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/support/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/support/categories
Example request:
curl --request POST \
"http://localhost/api/v1/support/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"complaint_type\": \"n\",
\"is_active\": false
}"
const url = new URL(
"http://localhost/api/v1/support/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"complaint_type": "n",
"is_active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/support/tickets
Example request:
curl --request GET \
--get "http://localhost/api/v1/support/tickets" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/support/tickets"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/support/tickets
Example request:
curl --request POST \
"http://localhost/api/v1/support/tickets" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"subject\": \"b\",
\"description\": \"Eius et animi quos velit et.\",
\"priority\": \"low\"
}"
const url = new URL(
"http://localhost/api/v1/support/tickets"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"subject": "b",
"description": "Eius et animi quos velit et.",
"priority": "low"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/support/tickets/{ticket_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/support/tickets/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/support/tickets/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/support/tickets/{ticket_id}/messages
Example request:
curl --request POST \
"http://localhost/api/v1/support/tickets/16/messages" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"message\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/support/tickets/16/messages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"message": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/support/tickets/{ticket_id}/status
Example request:
curl --request PATCH \
"http://localhost/api/v1/support/tickets/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"pending\",
\"note\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/v1/support/tickets/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "pending",
"note": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/profile
Example request:
curl --request GET \
--get "http://localhost/api/v1/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/profile
Example request:
curl --request PATCH \
"http://localhost/api/v1/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"avatar\": \"n\",
\"gender\": \"male\",
\"birth_date\": \"2022-07-13\",
\"language\": \"en\",
\"timezone\": \"Asia\\/Ulaanbaatar\"
}"
const url = new URL(
"http://localhost/api/v1/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"avatar": "n",
"gender": "male",
"birth_date": "2022-07-13",
"language": "en",
"timezone": "Asia\/Ulaanbaatar"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/addresses
Example request:
curl --request GET \
--get "http://localhost/api/v1/addresses" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/addresses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/addresses
Example request:
curl --request POST \
"http://localhost/api/v1/addresses" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"recipient_name\": \"n\",
\"phone\": \"g\",
\"city\": \"z\",
\"district\": \"m\",
\"street\": \"i\",
\"building_number\": \"y\",
\"latitude\": -89,
\"longitude\": -179,
\"is_default\": true
}"
const url = new URL(
"http://localhost/api/v1/addresses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"recipient_name": "n",
"phone": "g",
"city": "z",
"district": "m",
"street": "i",
"building_number": "y",
"latitude": -89,
"longitude": -179,
"is_default": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/addresses/{address_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/addresses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"recipient_name\": \"n\",
\"phone\": \"g\",
\"city\": \"z\",
\"district\": \"m\",
\"street\": \"i\",
\"building_number\": \"y\",
\"latitude\": -89,
\"longitude\": -179,
\"is_default\": true
}"
const url = new URL(
"http://localhost/api/v1/addresses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"recipient_name": "n",
"phone": "g",
"city": "z",
"district": "m",
"street": "i",
"building_number": "y",
"latitude": -89,
"longitude": -179,
"is_default": true
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/addresses/{address_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/addresses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/addresses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/vendors
Example request:
curl --request GET \
--get "http://localhost/api/v1/vendors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/vendors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/vendors
Example request:
curl --request POST \
"http://localhost/api/v1/vendors" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"business_name\": \"b\",
\"commercial_registration\": \"n\",
\"tax_number\": \"g\",
\"default_commission_rate\": 16
}"
const url = new URL(
"http://localhost/api/v1/vendors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"business_name": "b",
"commercial_registration": "n",
"tax_number": "g",
"default_commission_rate": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/vendors/{vendor_id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/vendors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/vendors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": false,
"message": "You must login first",
"errors": [],
"data": null,
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/v1/vendors/{vendor_id}
Example request:
curl --request PATCH \
"http://localhost/api/v1/vendors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"business_name\": \"b\",
\"commercial_registration\": \"n\",
\"tax_number\": \"g\",
\"default_commission_rate\": 16,
\"status\": \"suspended\"
}"
const url = new URL(
"http://localhost/api/v1/vendors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"business_name": "b",
"commercial_registration": "n",
"tax_number": "g",
"default_commission_rate": 16,
"status": "suspended"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/vendors/{vendor_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/vendors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/vendors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/health
Example request:
curl --request GET \
--get "http://localhost/api/v1/health" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/health"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"success": true,
"message": "API is working successfully",
"data": {
"app": "Houta Market API",
"status": "ok",
"locale": "en"
},
"meta": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.