https://api-stage.entesharat.com
همهٔ آدرسهای زیر با /v1 شروع میشوند. 🔒 یعنی هدر Authorization: Bearer <accessToken> لازم است.
/v1/homeGET /v1/home
200
{
"hero": {
"title": "جهانی تازه برای هر مرحله از رشد",
"text": "جهانی از قصهها، دانستنیها، تجربهها و مهارتهایی که میتوانند مسیر بزرگ شدن را روشنتر و دلنشینتر کنند. راه…",
"backgroundImageUrl": "https://api-stage.entesharat.com/storefront/hero-decor.jpg",
"slides": [
{
"id": 51,
"desktopImageUrl": "https://entesharat.com/content/uploads/images/banner-3-4-pofak.png",
"mobileImageUrl": null,
"href": "https://entesharat.com/product/basteye-koodakane-3-ta-4-sal/",
"alt": "بسته پیش دبستانی 3 تا 4 سال - 1405"
},
{
"id": 53,
"desktopImageUrl": "https://entesharat.com/content/uploads/images/banner-4-5-pofak-v2%20%283%29_1.png",
"mobileImageUrl": null,
"href": "https://entesharat.com/product/basteye-koodakane-4-ta-5-sal-baste-1/",
"alt": "بسته پیش دبستانی 4 تا 5 سال 1 - 1405"
}
],
"tiles": [
{
"label": "۱ سال+",
"iconKey": "pin",
"color": "#0088ff",
"href": "/age/1"
},
{
"label": "۳ سال+",
"iconKey": "flower",
"color": "#e23b63",
"href": "/age/3"
}
]
},
"benefits": [
{
"id": "delivery",
"title": "تحویل سریع و مطمئن",
"iconUrl": "https://api-stage.entesharat.com/storefront/delivery.png"
},
{
"id": "support",
"title": "پشتیبانی و مشاوره خرید",
"iconUrl": "https://api-stage.entesharat.com/storefront/support.png"
}
],
"sections": [
{
"type": "productRail",
"id": "age-1",
"title": "اولین کتابخانهی بچهها",
"text": "پیش از آنکه کودک خواندن را یاد بگیرد، میتواند کتابها را لمس کند، ورق بزند، باز کند و در آنها دنبال کشف چیزه…",
"theme": {
"accent": "#1e88c7",
"background": "#dff1fb"
},
"illustrationUrl": "https://api-stage.entesharat.com/storefront/age-1.png",
"badge": "۱+ سال",
"railLabel": "پیشنهادهای ویژه شما",
"moreLabel": "تماشای همه کتابها",
"moreHref": "/age/1",
"products": [
{
"id": 1001,
"slug": "این-سر-و-دست-و-پاشه،-ناف-نی-نی-کجاشه؟",
"url": "/product/این-سر-و-دست-و-پاشه،-ناف-نی-نی-کجاشه؟/",
"title": "این سر و دست و پاشه، ناف نی نی کجاشه؟",
"subtitle": "مناسب ۰ تا ۳ سال",
"author": "کارن کتس",
"coverUrl": "https://entesharat.com/content/uploads/images/1662.png",
"price": 320000,
"oldPrice": null,
"discountPercent": null,
"rating": 4,
"ratingCount": 4,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 995,
"amazingEndsAt": null
}
],
"source": "bestselling"
},
{
"type": "productRail",
"id": "age-3",
"title": "قصههایی برای شروع کنجکاوی",
"text": "در این سن، هر قصه یک بازیست. کتابهای این مجموعه با تصویرهای رنگی و متنهای ساده، کودک را به دنیای شخصیتها و…",
"theme": {
"accent": "#e8547f",
"background": "#fbf3e2"
},
"illustrationUrl": "https://api-stage.entesharat.com/storefront/age-3.png",
"badge": "۳+ سال",
"railLabel": "پیشنهادهای ویژه شما",
"moreLabel": "تماشای همه کتابها",
"moreHref": "/age/3",
"products": [
{
"id": 945,
"slug": "علوم-3-علوم-فيزيكی",
"url": "/product/علوم-3-علوم-فيزيكی/",
"title": "علوم 3 (علوم فيزيكی)",
"subtitle": "مناسب ۴ تا ۵ سال",
"author": "شهره يوسفی- دكتر فاطمه قاسمزاده- بتول فتحاله- فريبا كيهانی- رقيه يزداندوست",
"coverUrl": "https://entesharat.com/content/uploads/images/673.png",
"price": 180000,
"oldPrice": null,
"discountPercent": null,
"rating": 1.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 940,
"amazingEndsAt": null
}
],
"source": "bestselling"
}
],
"newsletter": {
"title": "عضویت در خبرنامه",
"ageGroups": [
{
"key": "1",
"label": "۱ سال+",
"footerLabel": "ردهسنی ۱+",
"minAge": 1,
"maxAge": 2,
"theme": {
"accent": "#1e88c7",
"background": "#dff1fb"
},
"iconKey": "pin",
"href": "/age/1"
},
{
"key": "3",
"label": "۳ سال+",
"footerLabel": "ردهسنی ۳+",
"minAge": 3,
"maxAge": 5,
"theme": {
"accent": "#e8547f",
"background": "#fbf3e2"
},
"iconKey": "flower",
"href": "/age/3"
}
]
},
"seo": {
"title": "انتشارات نردبان | ناشر کتاب های کودک و نوجوان (انتشارات فنی ایران)",
"description": "انتشارات نردبان ناشر کتاب های پیش دبستانی، مهارت های زندگی، کتاب های علمی، کتاب های محیط زیست کودکان و نوجوانا…",
"canonicalUrl": "https://entesharat.com/",
"robots": "index,follow",
"imageUrl": null,
"jsonLd": null
}
}کل صفحهی اصلی در یک درخواست؛ بخشها به ترتیبی که باید رندر شوند. پاسخ برای همه یکی است و کش میشود.
/v1/layoutGET /v1/layout
200
{
"mainNav": [
{
"label": "محصولات",
"href": "/products"
},
{
"label": "شنیدنیها",
"href": "/audio"
}
],
"footer": {
"contactTitle": "همه روزه، ۲۴ ساعته همراه شما هستیم",
"phones": [
"۰۲۱-۵۴۹۵۹",
"۰۲۱-۸۸۵۰۵۰۵۵"
],
"email": "info@entesharat.com",
"address": "تهران، خیابان مطهری، خیابان میرعماد، پلاک ۲۴",
"ageLinks": [
{
"label": "ردهسنی ۱+",
"href": "/age/1"
},
{
"label": "ردهسنی ۳+",
"href": "/age/3"
}
],
"quickLinks": [
{
"label": "شنیدنیهای نردبان",
"href": "/audio"
},
{
"label": "دربارهی نردبان",
"href": "/about-us"
}
],
"legalLinks": [
{
"label": "قوانین و مقررات",
"href": "/policy"
}
],
"socials": [
{
"title": "اینستاگرام",
"url": "https://www.instagram.com/nardebanbooks/",
"iconUrl": "https://entesharat.com/content/uploads/images/social-networks/insta.png"
},
{
"title": "آپارات",
"url": "https://www.aparat.com/entesharat",
"iconUrl": "https://entesharat.com/content/uploads/images/social-networks/aparat.png"
}
]
}
}منوی هدر و فوتر که در همهی صفحهها مشترک است.
/v1/age-groupsGET /v1/age-groups
200
[
{
"key": "1",
"label": "۱ سال+",
"footerLabel": "ردهسنی ۱+",
"minAge": 1,
"maxAge": 2,
"theme": {
"accent": "#1e88c7",
"background": "#dff1fb"
},
"iconKey": "pin",
"href": "/age/1"
},
{
"key": "3",
"label": "۳ سال+",
"footerLabel": "ردهسنی ۳+",
"minAge": 3,
"maxAge": 5,
"theme": {
"accent": "#e8547f",
"background": "#fbf3e2"
},
"iconKey": "flower",
"href": "/age/3"
}
]شش ردهی سنی برای کاشیها، فیلترها، لینکهای فوتر و فرم خبرنامه.
/v1/settings/publicGET /v1/settings/public
200
{
"supportPhone": "02188505055",
"freeShippingFrom": 2000000000,
"vatPercent": 0
}مقدارهای عمومی سایت: شمارهی پشتیبانی، آستانهی ارسال رایگان (به تومان) و درصد مالیات.
/v1/categoriesGET /v1/categories
200
[
{
"id": 80,
"title": "سرگرمی و آموزشی",
"slug": "سرگرمی-آموزشی",
"url": "/product-category/سرگرمی-آموزشی/",
"imageUrl": null,
"children": [
{
"id": 78,
"title": "عروسک",
"slug": "عروسک",
"url": "/product-category/عروسک/",
"imageUrl": null,
"children": []
},
{
"id": 82,
"title": "اکسسوری",
"slug": "accessory",
"url": "/product-category/accessory/",
"imageUrl": null,
"children": []
}
]
},
{
"id": 43,
"title": "کتاب کودک",
"slug": "کتاب-کودک",
"url": "/product-category/کتاب-کودک/",
"imageUrl": null,
"children": [
{
"id": 46,
"title": "کتاب آموزشی کودکان",
"slug": "کتاب-آموزشی-کودکان",
"url": "/product-category/کتاب-آموزشی-کودکان/",
"imageUrl": "https://entesharat.com/content/uploads/images/baner-newai-07.webp",
"children": [
{
"id": 77,
"title": "کتاب کار دبستان",
"slug": "کتاب-کار-دبستان",
"url": "/product-category/کتاب-کار-دبستان/",
"imageUrl": null,
"children": []
}
]
},
{
"id": 76,
"title": "کتاب خردسال",
"slug": "کتاب-خردسال",
"url": "/product-category/کتاب-خردسال/",
"imageUrl": null,
"children": []
}
]
}
]درخت گروههای محصول (همان منوی سایت فعلی).
/v1/categories/{slug}GET /v1/categories/accessory
200
{
"id": 82,
"title": "اکسسوری",
"slug": "accessory",
"url": "/product-category/accessory/",
"imageUrl": null,
"descriptionHtml": null,
"breadcrumbs": [
{
"label": "سرگرمی و آموزشی",
"href": "/product-category/سرگرمی-آموزشی/"
}
],
"children": [],
"seo": {
"title": "اکسسوری | انتشارات نردبان",
"description": null,
"canonicalUrl": "https://entesharat.com/product-category/accessory/",
"robots": "index,follow",
"imageUrl": null,
"jsonLd": null
}
}صفحهی یک گروه: عنوان، توضیح، زیرگروهها و سئو. محصولاتش را از GET /v1/products?category={slug} بگیرید.
/v1/collections/{id}GET /v1/collections/1
200
{
"id": 1,
"title": "گروه تستی ربانی",
"products": [
{
"id": 404,
"slug": "ارتش-توی-یخچال-دربارهی-مصرف-بهینهی",
"url": "/product/ارتش-توی-یخچال-دربارهی-مصرف-بهینهی/",
"title": "ارتش توی یخچال (درباره مصرف بهینه برق)",
"subtitle": "مناسب ۴ سال به بالا",
"author": "اعظم مهدوی",
"coverUrl": "https://entesharat.com/content/uploads/images/artesh-tuye-yakhchal.png",
"price": 220000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.8,
"ratingCount": 7,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 400,
"amazingEndsAt": null
},
{
"id": 555,
"slug": "بازکاهی-و-بازمصرف",
"url": "/product/بازکاهی-و-بازمصرف/",
"title": "بازکاهی و بازمصرف",
"subtitle": "مناسب ۶ سال به بالا",
"author": "سالی هیوئیت",
"coverUrl": "https://entesharat.com/content/uploads/images/baz-kahy-va-masraf.png",
"price": 220000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.5,
"ratingCount": 38,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 553,
"amazingEndsAt": null
}
]
}فهرست دستی محصولات (CustomProductGroup) که ادمین ساخته، به همان ترتیب.
/v1/search/suggestGET /v1/search/suggest # پارامترهای اختیاری (کوئری): q
200
{
"products": [],
"categories": []
}پیشنهاد هنگام تایپ در جستوجو: حداکثر ۸ محصول و ۳ گروه، از ۲ حرف به بعد. از debounce حدود ۲۵۰ میلیثانیه استفاده کنید.
/v1/productsGET /v1/products # پارامترهای اختیاری (کوئری): age, category, collection, q, inStock, hasDiscount, minPrice, maxPrice, sort, page, pageSize
200
{
"items": [
{
"id": 3875,
"slug": "kart-gardan-shomaresh",
"url": "/product/kart-gardan-shomaresh/",
"title": "کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان)",
"subtitle": "مناسب ۷ سال به بالا",
"author": null,
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.3,
"ratingCount": 38,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 4749,
"amazingEndsAt": null
},
{
"id": 3604,
"slug": "riazi-bazi-zarb",
"url": "/product/riazi-bazi-zarb/",
"title": "فلش کارت بازی ریاضی ضرب",
"subtitle": "مناسب ۸ سال به بالا",
"author": null,
"coverUrl": "https://entesharat.com/content/uploads/images/2614_1.jpg",
"price": 280000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.7,
"ratingCount": 7,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 4748,
"amazingEndsAt": null
}
],
"page": 1,
"pageSize": 24,
"totalCount": 2352,
"totalPages": 98,
"facets": {
"ageGroups": [
{
"key": "1",
"count": 174
},
{
"key": "3",
"count": 947
}
],
"categories": [
{
"slug": "سرگرمی-آموزشی",
"title": "سرگرمی و آموزشی",
"count": 15
},
{
"slug": "کتاب-کودک",
"title": "کتاب کودک",
"count": 2088
}
],
"priceRange": {
"min": 0,
"max": 3460000
}
},
"seo": {
"title": "لیست محصولات",
"description": null,
"canonicalUrl": "https://entesharat.com/products/",
"robots": "index,follow",
"imageUrl": null,
"jsonLd": null
}
}فهرست محصولات با فیلتر، جستوجو، مرتبسازی و facets — برای صفحهی ردهی سنی، صفحهی گروه و نتیجهی جستوجو. موجودها همیشه اول میآیند.
/v1/products/{id}GET /v1/products/3875
200
{
"id": 3875,
"slug": "kart-gardan-shomaresh",
"url": "/product/kart-gardan-shomaresh/",
"title": "کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان)",
"subtitle": "مناسب ۷ سال به بالا",
"author": null,
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.3,
"ratingCount": 38,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 4749,
"amazingEndsAt": null,
"code": "2676",
"isbn": null,
"translator": null,
"illustrator": null,
"ages": "7 سال به بالا",
"ageGroupKeys": [
"6",
"9"
],
"pages": null,
"subject": "کودکان -- دبستان -- کارت گردان -- سوم دبستان --- ریاضی",
"descriptionHtml": null,
"summaryHtml": "چه چیزی بهتر از اینکه با بازی کردن و ورق زدن یاد بگیریم؟<br />در این مجموعه، بچه&zwnj;ها با ورق زدن …",
"images": [
{
"url": "https://entesharat.com/content/uploads/images/2676.jpg",
"alt": "کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان)"
}
],
"videos": [],
"files": [],
"audioHref": null,
"variants": [
{
"id": 4749,
"title": null,
"code": "42706251",
"price": 340000,
"oldPrice": null,
"discountPercent": null,
"inStock": true,
"stockLeft": null
}
],
"attributes": [],
"category": {
"id": 77,
"title": "کتاب کار دبستان",
"url": "/product-category/کتاب-کار-دبستان/"
},
"breadcrumbs": [
{
"label": "کتاب کودک",
"href": "/product-category/کتاب-کودک/"
},
{
"label": "کتاب آموزشی کودکان",
"href": "/product-category/کتاب-آموزشی-کودکان/"
}
],
"tags": [],
"printOnDemand": null,
"seo": {
"title": "کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان)",
"description": "خرید اینترنتی کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان) همراه با هدایای ویژه در انتشارات نردبان",
"canonicalUrl": "https://entesharat.com/product/kart-gardan-shomaresh/",
"robots": "index,follow",
"imageUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"jsonLd": "{\"@context\":\"https://schema.org/\",\"@type\":\"Product\",\"name\":\"\\u06A9\\u0627\\u0631\\u062A \\u06AF\\u0631\\u062F\\u0627\\…"
}
}صفحهی محصول. محصول مخفی یا حذفشده ۴۰۴ میدهد.
/v1/products/by-slug/{slug}GET /v1/products/by-slug/kart-gardan-shomaresh
200
{
"id": 3875,
"slug": "kart-gardan-shomaresh",
"url": "/product/kart-gardan-shomaresh/",
"title": "کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان)",
"subtitle": "مناسب ۷ سال به بالا",
"author": null,
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.3,
"ratingCount": 38,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 4749,
"amazingEndsAt": null,
"code": "2676",
"isbn": null,
"translator": null,
"illustrator": null,
"ages": "7 سال به بالا",
"ageGroupKeys": [
"6",
"9"
],
"pages": null,
"subject": "کودکان -- دبستان -- کارت گردان -- سوم دبستان --- ریاضی",
"descriptionHtml": null,
"summaryHtml": "چه چیزی بهتر از اینکه با بازی کردن و ورق زدن یاد بگیریم؟<br />در این مجموعه، بچه&zwnj;ها با ورق زدن …",
"images": [
{
"url": "https://entesharat.com/content/uploads/images/2676.jpg",
"alt": "کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان)"
}
],
"videos": [],
"files": [],
"audioHref": null,
"variants": [
{
"id": 4749,
"title": null,
"code": "42706251",
"price": 340000,
"oldPrice": null,
"discountPercent": null,
"inStock": true,
"stockLeft": null
}
],
"attributes": [],
"category": {
"id": 77,
"title": "کتاب کار دبستان",
"url": "/product-category/کتاب-کار-دبستان/"
},
"breadcrumbs": [
{
"label": "کتاب کودک",
"href": "/product-category/کتاب-کودک/"
},
{
"label": "کتاب آموزشی کودکان",
"href": "/product-category/کتاب-آموزشی-کودکان/"
}
],
"tags": [],
"printOnDemand": null,
"seo": {
"title": "کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان)",
"description": "خرید اینترنتی کارت گردان شمارش (منطبق بر کتاب درسی تا سوم دبستان) همراه با هدایای ویژه در انتشارات نردبان",
"canonicalUrl": "https://entesharat.com/product/kart-gardan-shomaresh/",
"robots": "index,follow",
"imageUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"jsonLd": "{\"@context\":\"https://schema.org/\",\"@type\":\"Product\",\"name\":\"\\u06A9\\u0627\\u0631\\u062A \\u06AF\\u0631\\u062F\\u0627\\…"
}
}صفحهی محصول با slug آدرس فعلی (/product/{slug}/). صفحهی محصول در فرانت همین را صدا بزند؛ آدرسهای فعلی سایت فقط slug دارند و نباید عوض شوند.
/v1/products/{id}/other-booksGET /v1/products/3875/other-books
200
[
{
"id": 984,
"slug": "جورکردن-و-طبقهبندی-مفاهیم-ریاضی",
"url": "/product/جورکردن-و-طبقهبندی-مفاهیم-ریاضی/",
"title": "جورکردن و طبقه بندی (مفاهیم ریاضی)",
"subtitle": "پیش از دبستان",
"author": "لیان اُنیش",
"coverUrl": "https://entesharat.com/content/uploads/images/1262.png",
"price": 280000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.5,
"ratingCount": 27,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 978,
"amazingEndsAt": null
},
{
"id": 1106,
"slug": "تضاد،-آموزش-مفاهیم-ریاضی-در-مزرعه-جورچ",
"url": "/product/تضاد،-آموزش-مفاهیم-ریاضی-در-مزرعه-جورچ/",
"title": "جورچین تضاد، آموزش مفاهیم ریاضی در مزرعه",
"subtitle": "مناسب ۳ سال به بالا",
"author": null,
"coverUrl": "https://entesharat.com/content/uploads/images/1895.png",
"price": 190000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.6,
"ratingCount": 29,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 1093,
"amazingEndsAt": null
}
]«کتابهای دیگر» همان مجموعه یا نویسنده که ادمین انتخاب کرده (حداکثر ۱۲).
/v1/audioGET /v1/audio # پارامترهای اختیاری (کوئری): group, page, pageSize
200
{
"items": [
{
"id": 356,
"slug": "شعر-گاز-بی-گاز",
"url": "/radio/شعر-گاز-بی-گاز/",
"title": "شعر گاز بی گاز",
"narrator": null,
"durationSeconds": 307,
"audioUrl": "https://entesharat.com/content/uploads/files/2165%20Gaz%20bi%20Gaz.mp3",
"videoUrl": null,
"coverUrl": "https://entesharat.com/content/uploads/images/2165.jpg",
"rating": null,
"book": {
"id": 1684,
"slug": "گاز-بی-گاز",
"url": "/product/گاز-بی-گاز/",
"title": "گاز بی گاز",
"subtitle": "مناسب ۰ تا ۳ سال",
"author": "کارن کتس",
"coverUrl": "https://entesharat.com/content/uploads/images/2165.png",
"price": 320000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.1,
"ratingCount": 7,
"inStock": false,
"hasVariants": false,
"defaultVariantId": 1690,
"amazingEndsAt": null
},
"group": {
"id": 2,
"title": "شعر کودکانه",
"slug": "شعر-کودکانه-صوتی",
"url": "/radio-category/شعر-کودکانه-صوتی/"
},
"publishedAt": "2025-09-21T08:23:00.973+03:30"
},
{
"id": 357,
"slug": "شعر-زدن-بی-زدن",
"url": "/radio/شعر-زدن-بی-زدن/",
"title": "شعر زدن بی زدن",
"narrator": null,
"durationSeconds": 341,
"audioUrl": "https://entesharat.com/content/uploads/files/2169%20Zadan%20Bi%20Zadan.mp3",
"videoUrl": null,
"coverUrl": "https://entesharat.com/content/uploads/images/2169.jpg",
"rating": null,
"book": {
"id": 1686,
"slug": "زدن-بی-زدن",
"url": "/product/زدن-بی-زدن/",
"title": "زدن بی زدن",
"subtitle": "مناسب ۰ تا ۳ سال",
"author": "کارن کتس",
"coverUrl": "https://entesharat.com/content/uploads/images/2169.png",
"price": 320000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.3,
"ratingCount": 9,
"inStock": true,
"hasVariants": false,
"defaultVariantId": 1692,
"amazingEndsAt": null
},
"group": {
"id": 2,
"title": "شعر کودکانه",
"slug": "شعر-کودکانه-صوتی",
"url": "/radio-category/شعر-کودکانه-صوتی/"
},
"publishedAt": "2025-09-21T08:22:33.877+03:30"
}
],
"page": 1,
"pageSize": 24,
"totalCount": 360,
"totalPages": 15,
"seo": {
"title": "رادیو نردبان",
"description": "رادیو نردبان",
"canonicalUrl": "https://entesharat.com/radio/",
"robots": "index,follow",
"imageUrl": null,
"jsonLd": null
}
}فهرست شنیدنیها (صوتی و تصویری)، تازهترین اول. با group میشود به یک گروه محدود کرد.
/v1/audio/groupsGET /v1/audio/groups
200
[
{
"id": 1,
"title": "قصه صوتی کودکانه",
"slug": "قصه-صوتی-کودکانه",
"url": "/radio-category/قصه-صوتی-کودکانه/",
"imageUrl": "https://entesharat.com/content/uploads/images/%D9%82%D8%B5%D9%87%20%D8%B5%D9%88%D8%AA%DB%8C%20%DA%A9%D9%88%D8%…"
},
{
"id": 2,
"title": "شعر کودکانه",
"slug": "شعر-کودکانه-صوتی",
"url": "/radio-category/شعر-کودکانه-صوتی/",
"imageUrl": "https://entesharat.com/content/uploads/images/%D8%B4%D8%B9%D8%B1%20%DA%A9%D9%88%D8%AF%DA%A9%D8%A7%D9%86%D9%87.…"
}
]گروههای شنیدنی.
/v1/audio/{slug}GET /v1/audio/شعر-گاز-بی-گاز
200
{
"id": 356,
"slug": "شعر-گاز-بی-گاز",
"url": "/radio/شعر-گاز-بی-گاز/",
"title": "شعر گاز بی گاز",
"narrator": null,
"durationSeconds": 307,
"audioUrl": "https://entesharat.com/content/uploads/files/2165%20Gaz%20bi%20Gaz.mp3",
"videoUrl": null,
"coverUrl": "https://entesharat.com/content/uploads/images/2165.jpg",
"rating": null,
"book": {
"id": 1684,
"slug": "گاز-بی-گاز",
"url": "/product/گاز-بی-گاز/",
"title": "گاز بی گاز",
"subtitle": "مناسب ۰ تا ۳ سال",
"author": "کارن کتس",
"coverUrl": "https://entesharat.com/content/uploads/images/2165.png",
"price": 320000,
"oldPrice": null,
"discountPercent": null,
"rating": 4.1,
"ratingCount": 7,
"inStock": false,
"hasVariants": false,
"defaultVariantId": 1690,
"amazingEndsAt": null
},
"group": {
"id": 2,
"title": "شعر کودکانه",
"slug": "شعر-کودکانه-صوتی",
"url": "/radio-category/شعر-کودکانه-صوتی/"
},
"publishedAt": "2025-09-21T08:23:00.973+03:30",
"bodyHtml": "ای وای داری چی رو میکوبی؟<br>دوست داری به چی بکوبی؟<br>این کتاب با شعرهای شاد و تصویرهای زیبا به تو یاد م…",
"files": [],
"seo": {
"title": "شعر گاز بی گاز",
"description": "شعر رایگان گاز بی گاز در سایت انتشارات",
"canonicalUrl": "https://entesharat.com/radio/شعر-گاز-بی-گاز/",
"robots": "index,follow",
"imageUrl": "https://entesharat.com/content/uploads/images/2165.jpg",
"jsonLd": null
}
}یک شنیدنی با متن، قسمتها و سئو (صفحهی /radio/{slug}/).
/v1/blogGET /v1/blog # پارامترهای اختیاری (کوئری): category, page, pageSize
200
{
"items": [
{
"id": 271,
"slug": "your-child-follows-you-everywhere",
"url": "/blog/your-child-follows-you-everywhere/",
"title": "کودکان وابسته به والدین را چگونه مدیریت کنیم؟",
"summary": null,
"imageUrl": "https://entesharat.com/content/uploads/images/Your%20Child%20Follows%20You%20Everywhere%20entesharat%20nardeba…",
"publishedAt": "2026-10-03T22:54:54.253+03:30",
"readingMinutes": 24,
"author": "seoteam",
"category": {
"id": 2,
"title": "مقالات",
"slug": "مقالات",
"url": "/blog-category/مقالات/"
}
},
{
"id": 270,
"slug": "parents-say-music-helps-their-babies-sleep-better",
"url": "/blog/parents-say-music-helps-their-babies-sleep-better/",
"title": "والدین میگویند موسیقی به خواب بهتر نوزادانشان کمک میکند ",
"summary": null,
"imageUrl": "https://entesharat.com/content/uploads/images/Parents%20Say%20Music%20Helps%20Their%20Babies%20Sleep%20Better%…",
"publishedAt": "2026-10-03T22:28:10+03:30",
"readingMinutes": 8,
"author": "seoteam",
"category": {
"id": 2,
"title": "مقالات",
"slug": "مقالات",
"url": "/blog-category/مقالات/"
}
}
],
"page": 1,
"pageSize": 24,
"totalCount": 255,
"totalPages": 11,
"seo": {
"title": "مجله نردبان",
"description": "مجله نردبان",
"canonicalUrl": "https://entesharat.com/blog/",
"robots": "index,follow",
"imageUrl": null,
"jsonLd": null
}
}مطلبهای وبلاگ، تازهترین اول. با category میشود به یک دسته محدود کرد.
/v1/blog/categoriesGET /v1/blog/categories
200
[
{
"id": 2,
"title": "مقالات",
"slug": "مقالات",
"url": "/blog-category/مقالات/"
},
{
"id": 1,
"title": "اخبار نشر",
"slug": "اخبار",
"url": "/blog-category/اخبار/"
}
]دستههای وبلاگ.
/v1/blog/{slug}GET /v1/blog/your-child-follows-you-everywhere
200
{
"id": 271,
"slug": "your-child-follows-you-everywhere",
"url": "/blog/your-child-follows-you-everywhere/",
"title": "کودکان وابسته به والدین را چگونه مدیریت کنیم؟",
"summary": null,
"imageUrl": "https://entesharat.com/content/uploads/images/Your%20Child%20Follows%20You%20Everywhere%20entesharat%20nardeba…",
"publishedAt": "2026-10-03T22:54:54.253+03:30",
"readingMinutes": 24,
"author": "seoteam",
"category": {
"id": 2,
"title": "مقالات",
"slug": "مقالات",
"url": "/blog-category/مقالات/"
},
"bodyHtml": "<p>اگر فرزندتان حتی برای چند دقیقه هم حاضر نیست شما را تنها بگذارد، از دستشویی رفتن گرفته تا لباسپوشیدن، احتم…",
"seo": {
"title": "کودکان وابسته به والدین را چگونه مدیریت کنیم؟",
"description": "بررسی علمی پدیده کودک ولکرو یا کودک چسبنده، دلایل این رفتار، تأثیر آن بر والدین، و راهکارهای عملی برای تشویق ا…",
"canonicalUrl": "https://entesharat.com/blog/your-child-follows-you-everywhere/",
"robots": "index,follow",
"imageUrl": "https://entesharat.com/content/uploads/images/Your%20Child%20Follows%20You%20Everywhere%20entesharat%20nardeba…",
"jsonLd": null
}
}یک مطلب وبلاگ (صفحهی /blog/{slug}/).
/v1/pages/{slug}GET /v1/pages/about-us
200
{
"slug": "about-us",
"title": "درباره ما",
"bodyHtml": "<p>- تأسیس ۱۳۶۰<br>- ناشر برگزیده پنج دوره جشنواره رشد<br>- برنده جایزه ملی محیط زیست ایران<br>- ناشر برگزیده&…",
"imageUrl": "https://entesharat.com/content/uploads/images/torob.png",
"seo": {
"title": "درباره ما",
"description": "درباره ما",
"canonicalUrl": "https://entesharat.com/about-us/",
"robots": "index,follow",
"imageUrl": "https://entesharat.com/content/uploads/images/torob.png",
"jsonLd": null
}
}صفحهی ثابت با همان آدرس فعلی سایت، مثل about-us، contact-us، policy، cooperation، faqs، order-tracking. صفحهی story هنوز در پنل ساخته نشده.
/v1/faqGET /v1/faq
200
[
{
"question": "چطور در انتشارات نردبان سفارش خود را ثبت کنم؟",
"answerHtml": "<p style=\"text-align: justify\">عنوان کتاب مورد نظر را در سایت <a href=\"https://entesharat.com/\">انتشارات نردبا…"
},
{
"question": "آیا برای ثبت سفارش، ثبت نام ضروری است؟",
"answerHtml": "<p style=\"text-align: justify\">برای ثبت سفارش، ثبت نام در سایت ضروری نیست، اما اگر قصد استفاده از کد تخفیف را…"
}
]پرسشهای پرتکرار، به ترتیب پنل مدیریت.
/v1/auth/otp/sendPOST /v1/auth/otp/send
Content-Type: application/json
{
"phone": "09121234567"
}200
{
"expiresInSeconds": 1,
"resendInSeconds": 1
}ارسال کد ورود ۵ رقمی با پیامک. هر شماره یک بار در دقیقه و حداکثر سه بار در ۱۰ دقیقه. کد ۵ دقیقه اعتبار دارد.
/v1/auth/otp/verifyPOST /v1/auth/otp/verify
Content-Type: application/json
{
"phone": "09121234567",
"code": "12345"
}200
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.…",
"expiresIn": 900,
"user": {
"id": "a1b2c3d4",
"phone": "09121234567",
"firstName": "علی",
"lastName": "رضایی",
"email": "ali@example.com",
"roles": [
[
"user"
]
]
},
"isNewUser": true
}بررسی کد و ورود. شمارهی تازه همینجا ثبتنام میشود (isNewUser: true). کوکی nb_refresh هم گذاشته میشود. حداکثر ۵ تلاش.
/v1/auth/loginPOST /v1/auth/login
Content-Type: application/json
{
"userName": "متن نمونه",
"password": "Passw0rd!"
}200
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.…",
"expiresIn": 900,
"user": {
"id": "a1b2c3d4",
"phone": "09121234567",
"firstName": "علی",
"lastName": "رضایی",
"email": "ali@example.com",
"roles": [
[
"user"
]
]
},
"isNewUser": true
}ورود با رمز برای حسابهایی که رمز دارند. ده رمز اشتباه حساب را ۵ دقیقه قفل میکند.
/v1/auth/refreshPOST /v1/auth/refresh (کوکی رفرش؛ با credentials: "include")
200
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.…",
"expiresIn": 900,
"user": {
"id": "a1b2c3d4",
"phone": "09121234567",
"firstName": "علی",
"lastName": "رضایی",
"email": "ali@example.com",
"roles": [
[
"user"
]
]
},
"isNewUser": true
}accessToken تازه از روی کوکی nb_refresh (کوکی هم عوض میشود). بدنه ندارد؛ با credentials: "include" بزنید.
/v1/auth/logoutPOST /v1/auth/logout (کوکی رفرش؛ با credentials: "include")
204 بدون بدنه
پایان نشست همین مرورگر؛ کوکی پاک میشود.
/v1/me/addresses 🔒GET /v1/me/addresses Authorization: Bearer <accessToken>
200
[
{
"id": 1,
"firstName": "علی",
"lastName": "رضایی",
"mobile": "09121234567",
"address": "خیابان ولیعصر، پلاک ۱۰",
"postalCode": "1234567890",
"province": {
"id": 1,
"title": "عنوان نمونه"
},
"city": {
"id": 1,
"title": "عنوان نمونه"
},
"region": {
"id": 1,
"title": "عنوان نمونه"
},
"location": {
"latitude": 1,
"longitude": 1
},
"isDefault": true
}
]نشانیهای کاربر؛ نشانی پیشفرض اول.
/v1/me/addresses 🔒POST /v1/me/addresses
Authorization: Bearer <accessToken>
Content-Type: application/json
{
"firstName": "علی",
"lastName": "رضایی",
"mobile": "09121234567",
"address": "خیابان ولیعصر، پلاک ۱۰",
"postalCode": "1234567890",
"cityId": 1,
"location": {
"latitude": 1,
"longitude": 1
},
"isDefault": true
}201
{
"id": 1,
"firstName": "علی",
"lastName": "رضایی",
"mobile": "09121234567",
"address": "خیابان ولیعصر، پلاک ۱۰",
"postalCode": "1234567890",
"province": {
"id": 1,
"title": "عنوان نمونه"
},
"city": {
"id": 1,
"title": "عنوان نمونه"
},
"region": {
"id": 1,
"title": "عنوان نمونه"
},
"location": {
"latitude": 1,
"longitude": 1
},
"isDefault": true
}نشانی تازه. برای تهران (cityId = 1305) انتخاب regionId الزامی است.
/v1/me/addresses/{id} 🔒PUT /v1/me/addresses/1
Authorization: Bearer <accessToken>
Content-Type: application/json
{
"firstName": "علی",
"lastName": "رضایی",
"mobile": "09121234567",
"address": "خیابان ولیعصر، پلاک ۱۰",
"postalCode": "1234567890",
"cityId": 1,
"location": {
"latitude": 1,
"longitude": 1
},
"isDefault": true
}200
{
"id": 1,
"firstName": "علی",
"lastName": "رضایی",
"mobile": "09121234567",
"address": "خیابان ولیعصر، پلاک ۱۰",
"postalCode": "1234567890",
"province": {
"id": 1,
"title": "عنوان نمونه"
},
"city": {
"id": 1,
"title": "عنوان نمونه"
},
"region": {
"id": 1,
"title": "عنوان نمونه"
},
"location": {
"latitude": 1,
"longitude": 1
},
"isDefault": true
}ویرایش نشانی. بدنه مثل ساخت.
/v1/me/addresses/{id} 🔒DELETE /v1/me/addresses/1 Authorization: Bearer <accessToken>
204 بدون بدنه
حذف نشانی، مگر اینکه سفارشی به آن ارسال شده باشد.
/v1/locations/provincesGET /v1/locations/provinces
200
[
{
"id": 1,
"title": "آذربایجان شرقی"
},
{
"id": 2,
"title": "آذربایجان غربی"
}
]استانها، برای فرم نشانی.
/v1/locations/provinces/{id}/citiesGET /v1/locations/provinces/8/cities
200
[
{
"id": 373,
"title": "آلونی"
},
{
"id": 374,
"title": "اردل"
}
]شهرهای یک استان.
/v1/locations/cities/{id}/regionsGET /v1/locations/cities/1/regions
200 []
منطقههای یک شهر. فقط تهران منطقه دارد؛ برای بقیه آرایهی خالی است.
/v1/me/favorites 🔒GET /v1/me/favorites Authorization: Bearer <accessToken>
200
[
{
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
}
]علاقهمندیهایی که هنوز نمایش داده میشوند، تازهترین اول.
/v1/me/favorites/ids 🔒GET /v1/me/favorites/ids Authorization: Bearer <accessToken>
200 [ 1 ]
فقط شناسهها، برای پر کردن آیکن نشان روی کارتهای محصول.
/v1/me/favorites/{productId} 🔒PUT /v1/me/favorites/1 Authorization: Bearer <accessToken>
204 بدون بدنه
افزودن به علاقهمندیها. تکرارش اثری ندارد.
/v1/me/favorites/{productId} 🔒DELETE /v1/me/favorites/1 Authorization: Bearer <accessToken>
204 بدون بدنه
برداشتن از علاقهمندیها. تکرارش اثری ندارد.
/v1/me 🔒GET /v1/me Authorization: Bearer <accessToken>
200
{
"id": "a1b2c3d4",
"phone": "09121234567",
"firstName": "علی",
"lastName": "رضایی",
"email": "ali@example.com",
"roles": [
[
"user"
]
]
}اطلاعات کاربر واردشده.
/v1/me 🔒PUT /v1/me
Authorization: Bearer <accessToken>
Content-Type: application/json
{
"firstName": "علی",
"lastName": "رضایی",
"email": "ali@example.com"
}200
{
"id": "a1b2c3d4",
"phone": "09121234567",
"firstName": "علی",
"lastName": "رضایی",
"email": "ali@example.com",
"roles": [
[
"user"
]
]
}ویرایش نام و ایمیل. نام بلافاصله بعد از ثبتنام با پیامک پرسیده میشود.
/v1/me/orders 🔒GET /v1/me/orders # پارامترهای اختیاری (کوئری): page, pageSize Authorization: Bearer <accessToken>
200
{
"items": [
{
"id": 1,
"code": "12345",
"createdAt": "2026-10-06T10:00:00Z",
"status": "paying",
"payPrice": 340000,
"itemCount": 1
}
],
"page": 1,
"pageSize": 24,
"totalCount": 53,
"totalPages": 340000
}سفارشهای کاربر، تازهترین اول.
/v1/me/orders/{id} 🔒GET /v1/me/orders/1 Authorization: Bearer <accessToken>
200
{
"id": 1,
"code": "12345",
"createdAt": "2026-10-06T10:00:00Z",
"status": "paying",
"lines": [
{
"variantId": 1,
"product": {
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
},
"quantity": 2,
"unitPrice": 340000,
"discountPercent": 15,
"lineDiscount": 340000,
"lineTotal": 340000,
"isGift": true
}
],
"totalPrice": 340000,
"discountPrice": 340000,
"vatPrice": 340000,
"sendPrice": 340000,
"payPrice": 340000,
"recipientName": "متن نمونه",
"recipientMobile": "متن نمونه",
"address": "خیابان ولیعصر، پلاک ۱۰",
"postalCode": "1234567890",
"deliveryDate": "2026-10-10",
"deliveryTime": "متن نمونه",
"trackingCode": "متن نمونه"
}جزئیات سفارش: اقلام، مبلغها، نشانی، تاریخ ارسال و کد رهگیری. وضعیت نهایی پرداخت را همیشه از اینجا بخوانید.
/v1/me/wallet 🔒GET /v1/me/wallet # پارامترهای اختیاری (کوئری): page, pageSize Authorization: Bearer <accessToken>
200
{
"items": [
{
"id": 1,
"amount": 340000,
"at": "2026-10-06T10:00:00Z",
"description": "متن نمونه"
}
],
"page": 1,
"pageSize": 24,
"totalCount": 53,
"totalPages": 340000,
"balance": 340000
}موجودی کیف پول (شارژها منهای خریدها) و گردش آن، تازهترین اول. amount منفی یعنی خرید.
/v1/basket 🔒GET /v1/basket # پارامترهای اختیاری (کوئری): discountCode Authorization: Bearer <accessToken>
200
{
"lines": [
{
"id": 1,
"product": {
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
},
"variant": {
"id": 1,
"title": "عنوان نمونه",
"code": "12345",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"inStock": true,
"stockLeft": 1
},
"quantity": 2,
"unitPrice": 340000,
"lineDiscount": 340000,
"lineTotal": 340000,
"available": 1,
"warning": "out_of_stock"
}
],
"itemCount": 1,
"subtotal": 340000,
"discountTotal": 340000,
"discountCode": {
"code": "12345",
"percent": 1,
"amount": 340000
},
"total": 53,
"vatPercent": 1,
"vat": 1,
"payable": 1,
"freeShippingFrom": 1,
"remainingForFreeShipping": 1
}سبد کاربر واردشده. discountCode اختیاری است و فقط محاسبه میشود، ذخیره نمیشود.
/v1/basket/summary 🔒GET /v1/basket/summary Authorization: Bearer <accessToken>
200
{
"itemCount": 1
}فقط تعداد کل اقلام، برای عدد روی آیکن سبد در هدر.
/v1/basket/items 🔒POST /v1/basket/items
Authorization: Bearer <accessToken>
Content-Type: application/json
{
"variantId": 1,
"quantity": 2
}200
{
"lines": [
{
"id": 1,
"product": {
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
},
"variant": {
"id": 1,
"title": "عنوان نمونه",
"code": "12345",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"inStock": true,
"stockLeft": 1
},
"quantity": 2,
"unitPrice": 340000,
"lineDiscount": 340000,
"lineTotal": 340000,
"available": 1,
"warning": "out_of_stock"
}
],
"itemCount": 1,
"subtotal": 340000,
"discountTotal": 340000,
"discountCode": {
"code": "12345",
"percent": 1,
"amount": 340000
},
"total": 53,
"vatPercent": 1,
"vat": 1,
"payable": 1,
"freeShippingFrom": 1,
"remainingForFreeShipping": 1
}افزودن یک نوع به سبد. اگر همین نوع در سبد باشد، تعدادش جایگزین میشود، نه جمع.
/v1/basket/items/{variantId} 🔒PATCH /v1/basket/items/1
Authorization: Bearer <accessToken>
Content-Type: application/json
{
"quantity": 2
}200
{
"lines": [
{
"id": 1,
"product": {
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
},
"variant": {
"id": 1,
"title": "عنوان نمونه",
"code": "12345",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"inStock": true,
"stockLeft": 1
},
"quantity": 2,
"unitPrice": 340000,
"lineDiscount": 340000,
"lineTotal": 340000,
"available": 1,
"warning": "out_of_stock"
}
],
"itemCount": 1,
"subtotal": 340000,
"discountTotal": 340000,
"discountCode": {
"code": "12345",
"percent": 1,
"amount": 340000
},
"total": 53,
"vatPercent": 1,
"vat": 1,
"payable": 1,
"freeShippingFrom": 1,
"remainingForFreeShipping": 1
}تغییر تعداد یک ردیف. شناسهی هر ردیف همان variantId است.
/v1/basket/items/{variantId} 🔒DELETE /v1/basket/items/1 Authorization: Bearer <accessToken>
200
{
"lines": [
{
"id": 1,
"product": {
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
},
"variant": {
"id": 1,
"title": "عنوان نمونه",
"code": "12345",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"inStock": true,
"stockLeft": 1
},
"quantity": 2,
"unitPrice": 340000,
"lineDiscount": 340000,
"lineTotal": 340000,
"available": 1,
"warning": "out_of_stock"
}
],
"itemCount": 1,
"subtotal": 340000,
"discountTotal": 340000,
"discountCode": {
"code": "12345",
"percent": 1,
"amount": 340000
},
"total": 53,
"vatPercent": 1,
"vat": 1,
"payable": 1,
"freeShippingFrom": 1,
"remainingForFreeShipping": 1
}حذف یک ردیف از سبد.
/v1/basket/merge 🔒POST /v1/basket/merge
Authorization: Bearer <accessToken>
Content-Type: application/json
{
"items": [
{
"variantId": 1,
"quantity": 2
}
]
}200
{
"lines": [
{
"id": 1,
"product": {
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
},
"variant": {
"id": 1,
"title": "عنوان نمونه",
"code": "12345",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"inStock": true,
"stockLeft": 1
},
"quantity": 2,
"unitPrice": 340000,
"lineDiscount": 340000,
"lineTotal": 340000,
"available": 1,
"warning": "out_of_stock"
}
],
"itemCount": 1,
"subtotal": 340000,
"discountTotal": 340000,
"discountCode": {
"code": "12345",
"percent": 1,
"amount": 340000
},
"total": 53,
"vatPercent": 1,
"vat": 1,
"payable": 1,
"freeShippingFrom": 1,
"remainingForFreeShipping": 1
}ادغام سبد مهمان در حساب، درست بعد از ورود. اگر نوعی از قبل در حساب باشد تعداد بیشتر میماند؛ تعداد تا حد موجودی کم میشود؛ ناموجود و مخفی رد میشوند.
/v1/basket/quotePOST /v1/basket/quote
Content-Type: application/json
{
"items": [
{
"variantId": 1,
"quantity": 2
}
],
"discountCode": "NARDEBAN10"
}200
{
"lines": [
{
"id": 1,
"product": {
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
},
"variant": {
"id": 1,
"title": "عنوان نمونه",
"code": "12345",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"inStock": true,
"stockLeft": 1
},
"quantity": 2,
"unitPrice": 340000,
"lineDiscount": 340000,
"lineTotal": 340000,
"available": 1,
"warning": "out_of_stock"
}
],
"itemCount": 1,
"subtotal": 340000,
"discountTotal": 340000,
"discountCode": {
"code": "12345",
"percent": 1,
"amount": 340000
},
"total": 53,
"vatPercent": 1,
"vat": 1,
"payable": 1,
"freeShippingFrom": 1,
"remainingForFreeShipping": 1
}قیمتگذاری سبد مهمان (یا هر فهرست) بدون ذخیره؛ کد تخفیف هم بررسی میشود.
/v1/checkout 🔒GET /v1/checkout # پارامترهای اختیاری (کوئری): addressId, discountCode Authorization: Bearer <accessToken>
200
{
"basket": {
"lines": [
{
"id": 1,
"product": {
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
},
"variant": {
"id": 1,
"title": "عنوان نمونه",
"code": "12345",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"inStock": true,
"stockLeft": 1
},
"quantity": 2,
"unitPrice": 340000,
"lineDiscount": 340000,
"lineTotal": 340000,
"available": 1,
"warning": "out_of_stock"
}
],
"itemCount": 1,
"subtotal": 340000,
"discountTotal": 340000,
"discountCode": {
"code": "12345",
"percent": 1,
"amount": 340000
},
"total": 53,
"vatPercent": 1,
"vat": 1,
"payable": 1,
"freeShippingFrom": 1,
"remainingForFreeShipping": 1
},
"addressId": 1,
"shipping": 1,
"payable": 1,
"delivery": {
"choosesSlot": true,
"dates": [
{
"date": "2026-10-10",
"jalaliDate": "2026-10-10",
"weekday": "متن نمونه",
"slots": [
{}
]
}
],
"jalaliDate": "2026-10-10"
},
"paymentMethods": [
{
"id": 1,
"kind": "gateway",
"title": "عنوان نمونه",
"description": "متن نمونه",
"picture": "متن نمونه"
}
],
"gift": {
"campaignId": 1,
"title": "عنوان نمونه",
"minOrderAmount": 340000,
"products": [
{
"id": 1,
"slug": "sample-slug",
"url": "/product/sample-slug/",
"title": "عنوان نمونه",
"subtitle": "متن نمونه",
"author": "متن نمونه",
"coverUrl": "https://entesharat.com/content/uploads/images/2676.jpg",
"price": 340000,
"oldPrice": 400000,
"discountPercent": 15,
"rating": 4.5,
"ratingCount": 1,
"inStock": true,
"hasVariants": true,
"defaultVariantId": 1,
"amazingEndsAt": "2026-10-06T10:00:00Z"
}
]
},
"walletBalance": 340000,
"blockers": [
"closed"
]
}صفحهی تسویه: سبد قیمتگذاریشده برای یک نشانی، روز و ساعت ارسال، روشهای پرداخت و هدیه (اگر باشد). با عوض شدن نشانی یا کد تخفیف دوباره بزنید.
/v1/orders 🔒POST /v1/orders
Authorization: Bearer <accessToken>
Content-Type: application/json
{
"addressId": 1,
"paymentMethodId": 1,
"deliveryDate": "2026-10-10",
"discountCode": "NARDEBAN10",
"note": "لطفاً قبل از ارسال تماس بگیرید"
}201
{
"id": 1,
"code": "12345",
"payPrice": 340000,
"payment": {
"kind": "gateway",
"redirectUrl": "https://entesharat.com/payment/Bpm?orderId=12345",
"paid": true,
"failure": null
}
}ثبت سفارش از روی سبد ذخیرهشده. سبد خالی میشود و سفارش در وضعیت paying میماند تا درگاه تأیید کند. پاسخ میگوید مرورگر را کجا ببرید یا (کیف پول) آیا پرداخت شد. دکمه را بعد از کلیک قفل کنید.
/v1/orders/{id}/pay 🔒POST /v1/orders/1/pay
Authorization: Bearer <accessToken>
Content-Type: application/json
{
"paymentMethodId": 1
}200
{
"kind": "gateway",
"redirectUrl": "https://entesharat.com/payment/Bpm?orderId=12345",
"paid": true,
"failure": null
}پرداخت دوبارهی سفارشی که هنوز پرداخت نشده (مثلاً درگاه بسته شد)، با هر روش فعال. تا دو روز بعد از ثبت ممکن است.