Product
Overview
The Product API section provides endpoints for managing product information in Let’sTrade. This includes creating, retrieving, updating, and deleting product records. The API allows for seamless integration of product data, ensuring accurate and up-to-date information across all sales channels.
API Base URL
The base URL for all API endpoints is:
https://lets-trade-product-prod.letstrade.globalAttributes of a Product
A product in Let’sTrade has various attributes that define its details and characteristics. Here are the key attributes:
ID (
_id): A unique identifier for the product.Client ID (
client_id): The identifier for the client who owns the product.Image URL (
image_url): A URL pointing to the product’s image.Title (
title): The name of the product.Subtitle (
sub_title): An additional title or subtitle for the product.Description (
description): A detailed description of the product.Brand (
brand): The brand name of the product.Manufacturer (
manufacturer): The manufacturer of the product.SKU (
sku): The stock keeping unit, a unique identifier for the product.PID (
pid): The product identification number.Cost Price (
cost_price): The cost price of the product.Price (
price): The selling price of the product.On Promotion (
on_promotion): A boolean indicating if the product is on promotion.Vatable (
vatable): A boolean indicating if the product is subject to VAT.Promotion Price (
promotion_price): The price of the product during promotion.Estimated Delivery Time (
estimated_delivery_time): The estimated time for delivery of the product.Variations (
variations): A list of variations of the product (e.g., different sizes, colours).Status (
status): The availability status of the product (e.g., AVAILABLE, OUT_OF_STOCK).Availability (
availability): The availability channel of the product (e.g., ONLINE, OFFLINE).Barcode (
barcode): The barcode of the product.Extra Fields (
extra_fields): Additional fields specific to the product.Add-ons (
add_ons): List of add-ons available for the product.Deleted (
deleted): A boolean indicating if the product is deleted.Rating (
rating): The rating information of the product, including count, value, and average.Tags (
tags): Tags associated with the product.Branch ID List (
branch_id_list): List of branch IDs where the product is available.Image List (
image_list): List of additional images for the product.Channels (
channels): Sales channels where the product is available.Deals Applicable (
deals_applicable): List of deals applicable to the product.Category (
category): The category information of the product.
Get Category List
GET /v2/product/category/list
Retrieves a list of product categories for the client.
Category:
A category is a traditional way of grouping products based on their types or uses. Categories help organize products in a structured manner, making it easier for customers to navigate and find what they are looking for. Each category can have sub-categories, which provide a more granular level of grouping within the main category.
• Category: A primary grouping of products. For example, “Electronics” is a category.
• Sub-Category: A more specific grouping within a category. For example, within “Electronics”, you might have sub-categories like “Mobile Phones”, “Laptops”, and “Cameras”.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query Parameters
page
The page number to retrieve.
size
The number of items per page.
Sample Request
curl --location '{{base_url}}/v2/product/category/list?page=1&size=10' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Response
{
"success": true,
"message": "Client product categories successfully retrieved!",
"content": {
"product_category_list": [
{
"_id": "1234567890abcdef12345678",
"client_id": "abcdef1234567890abcdef12",
"integration_id": "10001",
"integration_parent_id": "10000",
"parent_id": "abcdef1234567890abcdef11",
"name": "Sample Category 1",
"description": "This is a sample category description.",
"image_url": "http://example.com/image1.jpg",
"sub_categories": [
{
"_id": "1234567890abcdef12345679",
"client_id": "abcdef1234567890abcdef12",
"parent_id": "1234567890abcdef12345678",
"integration_parent_id": "10001",
"integration_id": "10002",
"name": "Sub Category 1",
"parent_category_reference": "SC_Sample Category 1",
"description": "This is a sample sub-category description.",
"image_url": "http://example.com/image2.jpg",
"sub_categories": [],
"tags": [
"Tag1",
"Tag2"
],
"is_sub_category": true
}
],
"is_sub_category": false,
"image_list": []
},
{
"_id": "abcdef1234567890abcdef13",
"client_id": "abcdef1234567890abcdef12",
"integration_id": "10003",
"integration_parent_id": "10000",
"parent_id": "abcdef1234567890abcdef11",
"name": "Sample Category 2",
"description": "This is another sample category description.",
"image_url": "http://example.com/image3.jpg",
"sub_categories": [],
"is_sub_category": false,
"image_list": []
}
],
"count": 2
}
}Get Themes
GET /v2/client/themes
Retrieves a list of themes for the client.
Theme:
Themes are a more flexible and dynamic way of grouping products, allowing for cross-category organisation. Themes consist of multiple tags, and products can be assigned to multiple tags, enabling them to be part of various themes. This allows for creating collections based on different criteria that span across traditional categories.
• Theme: A collection of tags that group products together based on specific criteria or trends, rather than their category. For example, a theme might be “Summer Essentials” or “Back to School”.
• Tags: Specific labels within a theme that further define the products. For example, within the “Summer Essentials” theme, you might have tags like “Beachwear”, “Sunscreen”, and “Swimwear”.
Tag:
Tags are labels assigned to products to categorise them within themes. Tags allow products to be grouped together in multiple ways, providing flexibility in how products are displayed and promoted. A single product can have multiple tags, making it part of various themes.
• Tag: A label that can be assigned to products, used to group them within themes. For example, a tag might be “Organic” or “New Arrival”.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Sample Request
curl --location '{{base_url}}/v2/product/category/v2/client/themes' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Response
{
"success": true,
"message": "28 recently viewed theme(s) successfully retrieved!",
"content": {
"theme_list": [
{
"_id": "1234567890abcdef12345678",
"client_id": "abcdef1234567890abcdef12",
"name": "Sample Theme 1",
"image": "http://example.com/sample_theme1.png",
"etag": "etag1234567890abcdef123456",
"deleted": false,
"__v": 0,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-07-01T00:00:00.000Z",
"tags": [
{
"theme_id": "1234567890abcdef12345678",
"_id": "tag1234567890abcdef123456",
"name": "Tag 1",
"client_id": "abcdef1234567890abcdef12",
"__v": 0,
"createdAt": "2024-07-01T00:00:00.000Z",
"updatedAt": "2024-07-01T00:00:00.000Z"
},
{
"theme_id": "1234567890abcdef12345678",
"_id": "tag1234567890abcdef123457",
"name": "Tag 2",
"client_id": "abcdef1234567890abcdef12",
"__v": 0,
"createdAt": "2024-07-01T00:00:00.000Z",
"updatedAt": "2024-07-01T00:00:00.000Z"
}
]
},
{
"_id": "1234567890abcdef12345679",
"client_id": "abcdef1234567890abcdef12",
"name": "Sample Theme 2",
"image": "http://example.com/sample_theme2.png",
"etag": "etag1234567890abcdef123457",
"deleted": false,
"__v": 0,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-07-01T00:00:00.000Z",
"tags": [
{
"theme_id": "1234567890abcdef12345679",
"_id": "tag1234567890abcdef123458",
"name": "Tag 3",
"client_id": "abcdef1234567890abcdef12",
"__v": 0,
"createdAt": "2024-07-01T00:00:00.000Z",
"updatedAt": "2024-07-01T00:00:00.000Z"
},
{
"theme_id": "1234567890abcdef12345679",
"_id": "tag1234567890abcdef123459",
"name": "Tag 4",
"client_id": "abcdef1234567890abcdef12",
"__v": 0,
"createdAt": "2024-07-01T00:00:00.000Z",
"updatedAt": "2024-07-01T00:00:00.000Z"
}
]
}
],
"count": 28
}
}Get Product List
GET /v2/product/list
Retrieves a list of products based on various parameters.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query Parameters
page
The page number to retrieve.
size
The number of items per page.
recommended
Boolean indicating if only recommended products should be retrieved.
on_promotion
Boolean indicating if only products on promotion should be retrieved.
tags
Comma-separated list of tags to filter the products.
search_string
A string to search for in the product titles and descriptions.
category_id
The ID of the category to filter the products
order_by
The field by which to order the products (e.g., price, title).
Sample Request
curl --location '{base_ur}/v2/product/list?recommended=true&on_promotion=true&page=1&size=10&search_string=cough&category_id=668f822dde3417703c2f00f3&order_by=price' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Response
{
"success": true,
"message": "10 product(s) successfully retrieved!",
"content": {
"product_list": [
{
"_id": "1234567890abcdef12345678",
"client_id": "abcdef1234567890abcdef12",
"image_url": "http://example.com/product1.jpg",
"title": "Sample Product 1",
"sub_title": "This is a sample product 1",
"description": "<p>Sample product description 1.</p>",
"brand": "Sample Brand",
"manufacturer": "Sample Manufacturer",
"sku": "1234567890123",
"pid": "10001",
"cost_price": "10.00",
"price": "15.00",
"on_promotion": true,
"vatable": true,
"promotion_price": "12.00",
"estimated_delivery_time": "3 to 5 days",
"variations": [],
"status": "AVAILABLE",
"availability": "ONLINE",
"barcode": "1234567890123",
"extra_fields": [],
"add_ons": [],
"deleted": false,
"rating": {
"count": "10",
"value": "45",
"average": "4.5"
},
"tags": ["tag1", "tag2"],
"branch_id_list": ["branch1", "branch2"],
"image_list": ["http://example.com/product1_image1.jpg", "http://example.com/product1_image2.jpg"],
"channels": ["online", "instore"],
"createdAt": "2024-07-11T07:00:38.236Z",
"updatedAt": "2024-07-24T06:02:39.759Z",
"deals_applicable": [
{
"_id": "1234567890abcdef12345679",
"deal_id": "1234567890abcdef12345679",
"configuration": "DISCOUNT",
"deal_name": "10% discount deal",
"deal_priority": 100,
"apply_to": "PRODUCT",
"deal_image_url": "http://example.com/deal_image.jpg"
}
],
"category": {
"_id": "abcdef1234567890abcdef13",
"client_id": "abcdef1234567890abcdef12",
"integration_id": "10003",
"integration_parent_id": "10002",
"parent_id": "abcdef1234567890abcdef11",
"name": "Sample Category",
"description": "Sample category description.",
"image_url": "http://example.com/category_image.jpg",
"sub_categories": [],
"is_sub_category": true,
"image_list": [],
"createdAt": "2024-07-11T06:56:48.896Z",
"updatedAt": "2024-07-11T06:56:48.896Z",
"__v": 0
}
},
{
"_id": "abcdef1234567890abcdef14",
"client_id": "abcdef1234567890abcdef12",
"image_url": "http://example.com/product2.jpg",
"title": "Sample Product 2",
"sub_title": "This is a sample product 2",
"description": "<p>Sample product description 2.</p>",
"brand": "Sample Brand",
"manufacturer": "Sample Manufacturer",
"sku": "1234567890124",
"pid": "10002",
"cost_price": "20.00",
"price": "25.00",
"on_promotion": false,
"vatable": true,
"promotion_price": "0.00",
"estimated_delivery_time": "5 to 7 days",
"variations": [],
"status": "AVAILABLE",
"availability": "ONLINE",
"barcode": "1234567890124",
"extra_fields": [],
"add_ons": [],
"deleted": false,
"rating": {
"count": "5",
"value": "20",
"average": "4.0"
},
"tags": ["tag3", "tag4"],
"branch_id_list": ["branch3", "branch4"],
"image_list": ["http://example.com/product2_image1.jpg", "http://example.com/product2_image2.jpg"],
"channels": ["online", "instore"],
"createdAt": "2024-07-11T07:10:38.236Z",
"updatedAt": "2024-07-24T06:12:39.759Z",
"deals_applicable": [
{
"_id": "abcdef1234567890abcdef15",
"deal_id": "abcdef1234567890abcdef15",
"configuration": "BOGO",
"deal_name": "Buy one get one free",
"deal_priority": 200,
"apply_to": "PRODUCT",
"deal_image_url": "http://example.com/deal_image2.jpg"
}
],
"category": {
"_id": "abcdef1234567890abcdef16",
"client_id": "abcdef1234567890abcdef12",
"integration_id": "10004",
"integration_parent_id": "10003",
"parent_id": "abcdef1234567890abcdef11",
"name": "Another Category",
"description": "Another category description.",
"image_url": "http://example.com/category_image2.jpg",
"sub_categories": [],
"is_sub_category": false,
"image_list": [],
"createdAt": "2024-07-11T07:16:48.896Z",
"updatedAt": "2024-07-11T07:16:48.896Z",
"__v": 0
}
}
],
"count": 10
}
}Get a Product
GET /v2/product
Retrieves details of a specific product based on its ID or barcode..
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query Parameters
_id
The unique identifier of the product.
barcode
The barcode of the product.
Sample Request
curl --location '{base_ur}/v2/product?_id=1234567890abcdef12345678' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'or
curl --location '{base_ur}/v2/product?barcode=1234567890abcdef12345678' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Response
{
"success": true,
"message": "Product successfully retrieved!",
"content": {
"_id": "1234567890abcdef12345678",
"client_id": "abcdef1234567890abcdef12",
"image_url": "http://example.com/product1.jpg",
"title": "Sample Product 1",
"sub_title": "This is a sample product 1",
"description": "<p>Sample product description 1.</p>",
"brand": "Sample Brand",
"manufacturer": "Sample Manufacturer",
"sku": "1234567890123",
"pid": "10001",
"cost_price": "10.00",
"price": "15.00",
"on_promotion": true,
"vatable": true,
"promotion_price": "12.00",
"estimated_delivery_time": "3 to 5 days",
"variations": [],
"status": "AVAILABLE",
"availability": "ONLINE",
"barcode": "1234567890123",
"extra_fields": [],
"add_ons": [],
"deleted": false,
"rating": {
"count": "10",
"value": "45",
"average": "4.5"
},
"tags": ["tag1", "tag2"],
"branch_id_list": ["branch1", "branch2"],
"image_list": ["http://example.com/product1_image1.jpg", "http://example.com/product1_image2.jpg"],
"channels": ["online", "instore"],
"createdAt": "2024-07-11T07:00:38.236Z",
"updatedAt": "2024-07-24T06:02:39.759Z",
"deals_applicable": [
{
"_id": "1234567890abcdef12345679",
"deal_id": "1234567890abcdef12345679",
"configuration": "DISCOUNT",
"deal_name": "10% discount deal",
"deal_priority": 100,
"apply_to": "PRODUCT",
"deal_image_url": "http://example.com/deal_image.jpg"
}
],
"category": {
"_id": "abcdef1234567890abcdef13",
"client_id": "abcdef1234567890abcdef12",
"integration_id": "10003",
"integration_parent_id": "10002",
"parent_id": "abcdef1234567890abcdef11",
"name": "Sample Category",
"description": "Sample category description.",
"image_url": "http://example.com/category_image.jpg",
"sub_categories": [],
"is_sub_category": true,
"image_list": [],
"createdAt": "2024-07-11T06:56:48.896Z",
"updatedAt": "2024-07-11T06:56:48.896Z",
"__v": 0
}
}
}Favourite a Product
PUT /v2/favourite/product
Adds a product to the user’s list of favourite products.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
user_id
string
The unique identifier of the user adding the product to their favourites.
product_id
string
The unique identifier of the product being added to favourites.
Sample Request
{
"user_id": "65265944b5027569d7c8c3a3",
"product_id": "6567fce74b33ad16940bb3e0"
}Response
{
"success": true,
"message": "Successfully marked Super Widget as favourite.",
"content": [
{
"_id": "1234567890abcdef12345678",
"client_id": "abcdef1234567890abcdef12",
"pid": "1234567890123",
"add_ons": [],
"availability": "ONLINE",
"barcode": "1234567890123",
"brand": "Super Widget",
"channels": [
{
"channel_id": "abcdef1234567890abcdef13",
"channel": "ONLINE_STORE",
"name": "ONLINE_STORE"
}
],
"cost_price": "100.00",
"createdAt": "2024-01-01T00:00:00.000Z",
"deleted": false,
"description": "A versatile widget for all your needs.",
"extra_fields": [],
"image_list": [
{
"url": "http://example.com/images/widget1.jpg",
"_id": "abcdef1234567890abcdef14"
},
{
"url": "http://example.com/images/widget2.jpg",
"_id": "abcdef1234567890abcdef15"
}
],
"image_url": "http://example.com/images/widget1.jpg",
"on_promotion": true,
"price": "120.00",
"promotion_price": "100.00",
"rating": {
"average": "4.5",
"count": "10",
"value": "45"
},
"sku": "1234567890123",
"status": "AVAILABLE",
"sub_title": "The best widget in town",
"tags": [
"Gadgets",
"Tools"
],
"title": "Super Widget",
"updatedAt": "2024-07-01T00:00:00.000Z",
"vatable": true,
"variations": [],
"stock": [
{
"branch_id": "abcdef1234567890abcdef16",
"stock_level": "50",
"minimum_stock_level": "5",
"type": "WAREHOUSE",
"notes": null,
"_id": "abcdef1234567890abcdef17"
}
],
"category": {
"_id": "abcdef1234567890abcdef18",
"client_id": "abcdef1234567890abcdef12",
"name": "Widgets",
"description": "All kinds of widgets.",
"image_url": "http://example.com/images/widget_category.jpg",
"image_list": [],
"sub_categories": [],
"is_sub_category": false,
"__v": 0,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
}
]
}Get Favourite Products
GET /v2/favourite/products
Retrieves the list of favourite products for a specific user.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query Parameters
user_id
The unique identifier of the user whose favourite products are being retrieved.
Sample Request
curl --location '{base_ur}/v2/favourite/products?user_id=65265944b5027569d7c8c3a3' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' Response
{
"success": true,
"message": "Successfully retrieved favourite products.",
"content": [
{
"_id": "1234567890abcdef12345678",
"client_id": "abcdef1234567890abcdef12",
"pid": "1234567890123",
"add_ons": [],
"availability": "ONLINE",
"barcode": "1234567890123",
"brand": "Super Widget",
"channels": [
{
"channel_id": "abcdef1234567890abcdef13",
"channel": "ONLINE_STORE",
"name": "ONLINE_STORE"
}
],
"cost_price": "100.00",
"createdAt": "2024-01-01T00:00:00.000Z",
"deleted": false,
"description": "A versatile widget for all your needs.",
"extra_fields": [],
"image_list": [
{
"url": "http://example.com/images/widget1.jpg",
"_id": "abcdef1234567890abcdef14"
},
{
"url": "http://example.com/images/widget2.jpg",
"_id": "abcdef1234567890abcdef15"
}
],
"image_url": "http://example.com/images/widget1.jpg",
"on_promotion": true,
"price": "120.00",
"promotion_price": "100.00",
"rating": {
"average": "4.5",
"count": "10",
"value": "45"
},
"sku": "1234567890123",
"status": "AVAILABLE",
"sub_title": "The best widget in town",
"tags": [
"Gadgets",
"Tools"
],
"title": "Super Widget",
"updatedAt": "2024-07-01T00:00:00.000Z",
"vatable": true,
"variations": [],
"stock": [
{
"branch_id": "abcdef1234567890abcdef16",
"stock_level": "50",
"minimum_stock_level": "5",
"type": "WAREHOUSE",
"notes": null,
"_id": "abcdef1234567890abcdef17"
}
],
"category": {
"_id": "abcdef1234567890abcdef18",
"client_id": "abcdef1234567890abcdef12",
"name": "Widgets",
"description": "All kinds of widgets.",
"image_url": "http://example.com/images/widget_category.jpg",
"image_list": [],
"sub_categories": [],
"is_sub_category": false,
"__v": 0,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
},
{
"_id": "abcdef1234567890abcdef19",
"client_id": "abcdef1234567890abcdef12",
"pid": "2345678901234",
"add_ons": [],
"availability": "ONLINE",
"barcode": "2345678901234",
"brand": "Mega Gadget",
"channels": [
{
"channel_id": "abcdef1234567890abcdef20",
"channel": "ONLINE_STORE",
"name": "ONLINE_STORE"
}
],
"cost_price": "50.00",
"createdAt": "2024-01-01T00:00:00.000Z",
"deleted": false,
"description": "An amazing gadget for everyday use.",
"extra_fields": [],
"image_list": [
{
"url": "http://example.com/images/gadget1.jpg",
"_id": "abcdef1234567890abcdef21"
},
{
"url": "http://example.com/images/gadget2.jpg",
"_id": "abcdef1234567890abcdef22"
}
],
"image_url": "http://example.com/images/gadget1.jpg",
"on_promotion": false,
"price": "60.00",
"promotion_price": "0.00",
"rating": {
"average": "4.0",
"count": "20",
"value": "80"
},
"sku": "2345678901234",
"status": "AVAILABLE",
"sub_title": "A must-have gadget",
"tags": [
"Gadgets",
"Electronics"
],
"title": "Mega Gadget",
"updatedAt": "2024-07-01T00:00:00.000Z",
"vatable": true,
"variations": [],
"stock": [
{
"branch_id": "abcdef1234567890abcdef23",
"stock_level": "30",
"minimum_stock_level": "3",
"type": "WAREHOUSE",
"notes": null,
"_id": "abcdef1234567890abcdef24"
}
],
"category": {
"_id": "abcdef1234567890abcdef25",
"client_id": "abcdef1234567890abcdef12",
"name": "Gadgets",
"description": "The latest and greatest gadgets.",
"image_url": "http://example.com/images/gadget_category.jpg",
"image_list": [],
"sub_categories": [],
"is_sub_category": false,
"__v": 0,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
}
]
}Rate a Product
PUT /v2/rate/product
Allows a user to rate a product.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
user_id
string
The unique identifier of the user adding the product to their favourites.
_id
string
The unique identifier of the product being added to favourites.
rating
string
The rating given to the product by the user.
Sample Request
{
"_id": "6567fc624b33ad16940986ba",
"user_id": "652aa53e6b99bc5806f26b0e",
"rating": "2"
}Response
{
"success": true,
"message": "Successfully rated product!",
"content": {
"count": "3",
"value": "9",
"average": "3.00"
}
}Get Popular Products
GET /v2/product/popular
Retrieves a list of popular products..
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query Parameters
page
The page number to retrieve.
size
The number of items per page.
category_id
The ID of the category to filter popular products
Sample Request
curl --location '{base_ur}/v2/product/popular?page=1&size=10' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Response
{
"success": true,
"message": "Successfully retrieved 20 popular products!",
"content": {
"product_list": [
{
"_id": "1234567890abcdef12345678",
"client_id": "abcdef1234567890abcdef12",
"image_url": "http://example.com/images/product1.jpg",
"title": "Super Widget",
"sub_title": "Best widget ever",
"description": "A versatile widget for all your needs.",
"brand": "WidgetCo",
"manufacturer": "WidgetCo",
"sku": "WIDGET123",
"pid": "1234567890123",
"cost_price": "100.00",
"price": "120.00",
"on_promotion": true,
"vatable": true,
"promotion_price": "100.00",
"estimated_delivery_time": "3 to 5 days",
"variations": [],
"status": "AVAILABLE",
"availability": "ONLINE",
"barcode": "1234567890123",
"extra_fields": [],
"add_ons": [],
"deleted": false,
"rating": {
"count": "100",
"value": "450",
"average": "4.5"
},
"tags": ["Gadget", "Popular"],
"branch_id_list": [],
"image_list": [
{
"url": "http://example.com/images/product1.jpg",
"_id": "abcdef1234567890abcdef14"
},
{
"url": "http://example.com/images/product1-2.jpg",
"_id": "abcdef1234567890abcdef15"
}
],
"channels": [
{
"channel_id": "abcdef1234567890abcdef13",
"channel": "ONLINE_STORE",
"name": "Online Store"
}
],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-07-01T00:00:00.000Z",
"deals_applicable": [
{
"_id": "abcdef1234567890abcdef19",
"deal_id": "abcdef1234567890abcdef19",
"configuration": "DISCOUNT",
"deal_name": "Summer Sale",
"deal_priority": 1,
"apply_to": "PRODUCT",
"deal_image_url": "http://example.com/images/deal1.jpg"
}
],
"category": {
"_id": "abcdef1234567890abcdef18",
"client_id": "abcdef1234567890abcdef12",
"name": "Widgets",
"description": "All kinds of widgets.",
"image_url": "http://example.com/images/widget_category.jpg",
"image_list": [],
"sub_categories": [],
"is_sub_category": false,
"__v": 0,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
},
{
"_id": "abcdef1234567890abcdef20",
"client_id": "abcdef1234567890abcdef12",
"image_url": "http://example.com/images/product2.jpg",
"title": "Mega Gadget",
"sub_title": "Must-have gadget",
"description": "An amazing gadget for everyday use.",
"brand": "GadgetCo",
"manufacturer": "GadgetCo",
"sku": "GADGET123",
"pid": "2345678901234",
"cost_price": "50.00",
"price": "60.00",
"on_promotion": false,
"vatable": true,
"promotion_price": "0.00",
"estimated_delivery_time": "2 to 4 days",
"variations": [],
"status": "AVAILABLE",
"availability": "ONLINE",
"barcode": "2345678901234",
"extra_fields": [],
"add_ons": [],
"deleted": false,
"rating": {
"count": "200",
"value": "800",
"average": "4.0"
},
"tags": ["Gadget", "Popular"],
"branch_id_list": [],
"image_list": [
{
"url": "http://example.com/images/product2.jpg",
"_id": "abcdef1234567890abcdef24"
},
{
"url": "http://example.com/images/product2-2.jpg",
"_id": "abcdef1234567890abcdef25"
}
],
"channels": [
{
"channel_id": "abcdef1234567890abcdef26",
"channel": "ONLINE_STORE",
"name": "Online Store"
}
],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-07-01T00:00:00.000Z",
"deals_applicable": [
{
"_id": "abcdef1234567890abcdef27",
"deal_id": "abcdef1234567890abcdef27",
"configuration": "DISCOUNT",
"deal_name": "Winter Sale",
"deal_priority": 2,
"apply_to": "PRODUCT",
"deal_image_url": "http://example.com/images/deal2.jpg"
}
],
"category": {
"_id": "abcdef1234567890abcdef28",
"client_id": "abcdef1234567890abcdef12",
"name": "Gadgets",
"description": "The latest and greatest gadgets.",
"image_url": "http://example.com/images/gadget_category.jpg",
"image_list": [],
"sub_categories": [],
"is_sub_category": false,
"__v": 0,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
}
],
"count": 2
}
}Last updated