Skip to content
Deprecated

Get a product by slug​

GET
/products/{slug}

Returns the full product detail (variants, option axes, images, and same-EAN seller offers) for a published product with an active marketplace listing for the resolved tenant. Sets a public Cache-Control header.

« Masquer les produits en rupture »: an out-of-stock offer of a vendor with the setting on is removed from offers[]; when the page's own product is that offer and no other seller is left, the response is 404 (the storefront renders its not-found page, noindex).

Merged fiche (301): when no live product owns the slug but it is the URL of a duplicate fiche merged into another one (or the previous URL of a fiche that inherited an older one), the response is 301 with Location = the same path ending in the kept fiche's CURRENT slug, and the body names it (code: PRODUCT_MOVED, redirect.slug). A client that follows redirects receives the kept product directly; the storefront compares data.slug with the requested slug and issues its own permanent redirect. A target that is not published or not actively listed gives the usual 404.

Auth: Public (no authentication).

Use /public/products/{slug}; this path stays until the storefront and the mobile app have moved.

Parameters​

Path Parameters

slug*

Product slug (min 1 char)

Type
string
Required

Responses​

Product detail

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"id": "string",
  
  
"slug": "string",
  
  
"name": "string",
  
  
"price": 0,
  
  
"compareAtPrice": 0,
  
  
"imageUrl": "https://example.com",
  
  
"vendorId": "string",
  
  
"vendorName": "string",
  
  
"inStock": true,
  
  
"createdAt": "2024-01-01T00:00:00Z",
  
  
"updatedAt": "2024-01-01T00:00:00Z",
  
  
"brandSlug": "string",
  
  
"sale": {
  
  
  
"endsAt": "2024-01-01T00:00:00Z",
  
  
  
"startedAt": "2024-01-01T00:00:00Z",
  
  
  
"soldCount": 0,
  
  
  
"stockAtStart": 0
  
  
},
  
  
"madeInTunisia": true,
  
  
"description": "string",
  
  
"ean": "string",
  
  
"commissionType": "string",
  
  
"commissionRate": 0,
  
  
"variants": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"sku": "string",
  
  
  
  
"name": "string",
  
  
  
  
"price": 0,
  
  
  
  
"stock": 0,
  
  
  
  
"inStock": true,
  
  
  
  
"attributes": [
  
  
  
  
  
{
  
  
  
  
  
  
"code": "string",
  
  
  
  
  
  
"name": "string",
  
  
  
  
  
  
"value": "string"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"imageUrl": "https://example.com",
  
  
  
  
"compareAtPrice": 0,
  
  
  
  
"regularPrice": 0,
  
  
  
  
"salePrice": 0,
  
  
  
  
"onSale": true
  
  
  
}
  
  
],
  
  
"options": [
  
  
  
{
  
  
  
  
"code": "string",
  
  
  
  
"name": "string",
  
  
  
  
"values": [
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
}
  
  
],
  
  
"images": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"url": "https://example.com",
  
  
  
  
"alt": "string",
  
  
  
  
"position": 0
  
  
  
}
  
  
],
  
  
"offers": [
  
  
  
{
  
  
  
  
"productId": "string",
  
  
  
  
"vendorId": "string",
  
  
  
  
"vendorName": "string",
  
  
  
  
"vendorWhatsapp": "string",
  
  
  
  
"price": 0,
  
  
  
  
"inStock": true,
  
  
  
  
"isCanonical": true,
  
  
  
  
"isFeatured": true,
  
  
  
  
"perDepotAvailable": true,
  
  
  
  
"compareAtPrice": 0,
  
  
  
  
"onSale": true,
  
  
  
  
"terms": {
  
  
  
  
  
"shipping": {
  
  
  
  
  
  
"fee": 0,
  
  
  
  
  
  
"freeAbove": 0,
  
  
  
  
  
  
"currency": "TND",
  
  
  
  
  
  
"minDays": 0,
  
  
  
  
  
  
"maxDays": 0,
  
  
  
  
  
  
"regions": [
  
  
  
  
  
  
  
"string"
  
  
  
  
  
  
]
  
  
  
  
  
},
  
  
  
  
  
"returns": {
  
  
  
  
  
  
"accepted": true,
  
  
  
  
  
  
"days": 0,
  
  
  
  
  
  
"fees": "free",
  
  
  
  
  
  
"method": "pickup"
  
  
  
  
  
},
  
  
  
  
  
"cashOnDelivery": true,
  
  
  
  
  
"deliveredBy": "marketplace",
  
  
  
  
  
"deliveredByName": "string"
  
  
  
  
}
  
  
  
}
  
  
],
  
  
"brand": {
  
  
  
"name": "string",
  
  
  
"slug": "string",
  
  
  
"logoUrl": "string"
  
  
},
  
  
"seo": {
  
  
  
"title": "string",
  
  
  
"description": "string",
  
  
  
"focusKeyphrase": "string",
  
  
  
"ogImage": "string",
  
  
  
"canonicalUrl": "string",
  
  
  
"noindex": true,
  
  
  
"effective": {
  
  
  
  
"title": "string",
  
  
  
  
"description": "string",
  
  
  
  
"ogImage": "string",
  
  
  
  
"canonicalUrl": "/boutique/nike-air-max-90",
  
  
  
  
"noindex": true,
  
  
  
  
"robots": "index,follow",
  
  
  
  
"source": {
  
  
  
  
  
"title": "stored",
  
  
  
  
  
"description": "stored",
  
  
  
  
  
"ogImage": "stored",
  
  
  
  
  
"canonicalUrl": "stored",
  
  
  
  
  
"robots": "stored"
  
  
  
  
}
  
  
  
}
  
  
},
  
  
"rating": {
  
  
  
"value": 0,
  
  
  
"count": 0
  
  
},
  
  
"faqs": [
  
  
  
{
  
  
  
  
"question": "string",
  
  
  
  
"answer": "string"
  
  
  
}
  
  
],
  
  
"categories": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"name": "string",
  
  
  
  
"slug": "string",
  
  
  
  
"parentId": "string"
  
  
  
}
  
  
],
  
  
"regularPrice": 0,
  
  
"salePrice": 0,
  
  
"onSale": true
  
}
}

Playground​

Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai