Create product
You can add unlimited products by product create route, product route allow only POST Method
https://ecom.coderorbit.com/api/admin/{{app_token}}/product
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
body: {
"name": "", // Required //string
"description": {
"time": "",
"blocks": [
{
"id": "", //string
"type": "", //string
"data": {
"text": "" #longtext,
}
}
],
"version": "2.29.1"
},
"brand_id": "", //integer
"vendor_id": "", //integer
"country_id": "", //integer
"category": [
"", //integer
"" #integer
],
"district_id": "", //integer
"police_station_id": "", //integer
"regular_price": "", //double
"current_price": "", //double
"discount": "", //double
"discount_type": "", //integer
"icon": "", // image file or base64
"feature": "", // image file or base64
"gallery": {
"0":"", // image file or base64
"1":"" # image file or base64
},
"start_offer": "", // date time
"end_offer": "", // date time
"stock": "", //integer
"minimum_order": "", //integer
"status": "", //integer
"sizes": "", //string
"colors": "", //string
"seo_tag": "", //string
"seo_description": "", //longtext
"shipping": "", //string
"shipping_cost": "", //double
"payment_method": [],
"extend_props": [
{
"field_name": "Field_Name01",
"field_value": "Value 01 for demo product 02 extra props"
},
{
"field_name": "FieldName_01",
"field_value": "Value 02 for demo product 02 extra props"
}
]
}
Result
{
"status": "Success",
"store_data": {
"id": 76,
"unique_id": "QDABpcizQ702arZ",
"category": [
114,
91
],
"brand_id": 1,
"vendor_id": 3,
"country_id": 18,
"district_id": 1,
"police_station_id": 496,
"name": "Demo Product 02",
"slug": "demo_product_02_QDABpcizQ702arZ",
"icon": "",
"icon_small": "",
"feature": "",
"feature_small": "",
"gallery": [
"",
"",
""
]
"gallery_small": [
"",
"",
""
],
"sequence": null,
"description": {
"time": 1737351896300,
"blocks": [
{
"id": "xHODxXfvo9",
"type": "paragraph",
"data": {
"text": "This is a test description for demo product 02"
}
}
],
"version": "2.29.1"
},
"attributes": {
"colors": "White,Black",
"sizes": "S_40,M_42,L_44"
},
"minimum_order": 2,
"start_offer": "2024-12-31 18:00:37",
"end_offer": "2025-01-30 18:00:37",
"extend_props": [
{
"product_id": 76,
"field_name": "fieldname_01",
"value": "Value 01 for demo product 02 extra props"
},
{
"product_id": 76,
"field_name": "field_name01",
"value": "Value 02 for demo product 02 extra props"
}
],
"status": 1,
"shipping_cost": null,
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 17,
"seo_tag": "Demo,Premium,Super,Trending",
"seo_description": "This is a seo short description for demo product 02",
"additional": [
{
"id": 192,
"additional_key": "76_white_s_40",
"product_id": 76,
"unique_id": "76_white_s_40",
"slug": "76_white",
"color": "White",
"size": "S_40",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:49:00.000000Z",
"updated_at": "2025-01-20T05:49:00.000000Z"
},
{
"id": 193,
"additional_key": "76_white_m_42",
"product_id": 76,
"unique_id": "76_white_m_42",
"slug": "76_white",
"color": "White",
"size": "M_42",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:49:00.000000Z",
"updated_at": "2025-01-20T05:49:00.000000Z"
},
{
"id": 194,
"additional_key": "76_white_l_44",
"product_id": 76,
"unique_id": "76_white_l_44",
"slug": "76_white",
"color": "White",
"size": "L_44",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:49:00.000000Z",
"updated_at": "2025-01-20T05:49:00.000000Z"
},
{
"id": 195,
"additional_key": "76_black_s_40",
"product_id": 76,
"unique_id": "76_black_s_40",
"slug": "76_black",
"color": "Black",
"size": "S_40",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:49:00.000000Z",
"updated_at": "2025-01-20T05:49:00.000000Z"
},
{
"id": 196,
"additional_key": "76_black_m_42",
"product_id": 76,
"unique_id": "76_black_m_42",
"slug": "76_black",
"color": "Black",
"size": "M_42",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:49:00.000000Z",
"updated_at": "2025-01-20T05:49:00.000000Z"
},
{
"id": 197,
"additional_key": "76_black_l_44",
"product_id": 76,
"unique_id": "76_black_l_44",
"slug": "76_black",
"color": "Black",
"size": "L_44",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:49:00.000000Z",
"updated_at": "2025-01-20T05:49:00.000000Z"
}
],
"shipping": null,
"payment_method": [],
"created_by": {
"id": 1,
"role_id": 1,
"country_id": 18,
"name": "Admin",
"email": "admin@gmail.com",
"extend_props": {
"address": null,
"city_id": 1,
"thana_id": 494
},
"email_verified_at": null,
"created_at": "2023-09-16T20:19:46.000000Z",
"updated_at": "2025-01-07T14:41:12.000000Z",
"unique_id": "8660998812",
"otp": 874613,
"status": 1,
"description": null,
"created_by": 0,
"updated_by": 0,
"deleted_at": null
},
"updated_by": {
"id": 1,
"role_id": 1,
"country_id": 18,
"name": "Admin",
"email": "admin@gmail.com",
"extend_props": {
"address": null,
"city_id": 1,
"thana_id": 494
},
"email_verified_at": null,
"created_at": "2023-09-16T20:19:46.000000Z",
"updated_at": "2025-01-07T14:41:12.000000Z",
"unique_id": "8660998812",
"otp": 874613,
"status": 1,
"description": null,
"created_by": 0,
"updated_by": 0,
"deleted_at": null
},
"created_at": "2025-01-20T05:49:00.000000Z",
"updated_at": "2025-01-20T05:49:00.000000Z",
"deleted_at": null,
"categories": [
{
"id": 114,
"unique_id": "8ghtcbgg3yKFoM5",
"parent_id": 0,
"name": "Mobile",
"slug": "mobile_8ghtcbgg3yKFoM5",
"sequence": null,
"commission": 0,
"commission_type": "fixed",
"icon": null,
"thumbnails": null,
"banner": null,
"description": "mobile",
"status": 0,
"extend_props": {
"sidebar": "menu"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2024-11-10T10:32:26.000000Z",
"updated_at": "2024-11-10T10:32:26.000000Z",
"pivot": {
"product_id": 76,
"category_id": 114
}
},
{
"id": 91,
"unique_id": "KKL367124890",
"parent_id": 0,
"name": "Accessories",
"slug": "accessories",
"sequence": 0,
"commission": 150,
"commission_type": "fixed",
"icon": null,
"thumbnails": null,
"banner": null,
"description": "Accessories",
"status": 1,
"extend_props": null,
"created_by": 10,
"updated_by": 10,
"created_at": "2023-01-17T04:41:05.000000Z",
"updated_at": "2023-01-17T04:41:05.000000Z",
"pivot": {
"product_id": 76,
"category_id": 91
}
}
],
"additional_media": [
{
"id": 108,
"product_id": 76,
"slug": "76_white",
"color_icon": "",
"color_icon_small": "",
"color_thumbnails_small": "",
"color_thumbnails": "",
"color_galleries": [
"",
"",
""
],
"color_galleries_small": [
"",
"",
""
]
},
{
"id": 109,
"product_id": 76,
"slug": "76_black",
"color_icon": "",
"color_icon_small": "",
"color_thumbnails_small": "",
"color_thumbnails": "",
"color_galleries": [
"",
"",
""
],
"color_galleries_small": [
""
"",
""
]
}
],
"brand": {
"id": 1,
"unique_id": "sLJvIENyg100Pxk",
"parent_id": null,
"name": "Itel",
"slug": "itel",
"banner": "",
"icon": "",
"thumbnails": "",
"commission": 10,
"commission_type": "fixed",
"status": 1,
"description": "this is description",
"extend_props": {
"test": "theis extend props",
"test2": "theis extend props 02"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2023-03-16T16:25:43.000000Z",
"updated_at": "2024-11-03T00:46:27.000000Z"
},
"vendor": {
"id": 3,
"unique_id": "CVELejvhLEhWLi7",
"user_id": null,
"name": "Sami",
"slug": "sami",
"icon": null,
"thumbnails": null,
"banner": null,
"description": null,
"status": 1,
"extend_props": [],
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-06T14:03:23.000000Z",
"updated_at": "2025-01-06T14:03:36.000000Z"
},
"country": {
"id": 18,
"sortname": "BD",
"name": "Bangladesh",
"status": 1,
"phonecode": 880,
"added_by": 1,
"updated_by": 1,
"created_at": null,
"updated_at": null
},
"district": {
"id": 1,
"country_id": 18,
"name": "Dhaka",
"bn_name": "ঢাকা",
"lat": "23.7115253",
"lon": "90.4111451",
"website": "www.dhaka.gov.bd",
"created_at": "2015-09-12T16:33:27.000000Z",
"updated_at": "2015-09-12T16:36:20.000000Z"
},
"police_station": {
"id": 496,
"district_id": 1,
"name": "Banani",
"bn_name": "1",
"created_by": 1,
"updated_by": 1,
"created_at": "2020-10-10T02:03:48.000000Z",
"updated_at": "2016-04-05T18:48:39.000000Z"
},
"referrals": [],
"feedbacks": [],
"bundles": []
}
}
List
Get all product list by GET Method with filter function customized option for you. below list of route with parameter
https://ecom.coderorbit.com/api/admin/{{app_token}}/product
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
{
"current_page": 1,
"data": [
{
"id": 65,
"unique_id": "5kbMLIiMqafvJQb",
"category": [
114
],
"brand_id": 23,
"vendor_id": 3,
"country_id": 18,
"district_id": 1,
"police_station_id": 494,
"name": "Granular Gawa Ghee – দানাদার গাওয়া ঘি",
"slug": "granular_gawa_ghee_danadar_gawa_ghi_5kbMLIiMqafvJQb",
"icon": "",
"icon_small": "",
"feature": "",
"feature_small": "",
"gallery": [
"",
"",
""
],
"gallery_small": [
"",
"",
""
],
"sequence": null,
"description": null,
"attributes": {
"colors": "Regular",
"sizes": "1KG,500mg"
},
"minimum_order": 1,
"start_offer": null,
"end_offer": null,
"extend_props": null,
"status": 0,
"shipping_cost": null,
"regular_price": 1500,
"current_price": 1500,
"discount": "0",
"discount_type": 1,
"stock": 130,
"seo_tag": null,
"seo_description": null,
"additional": null,
"shipping": null,
"payment_method": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-06T09:51:09.000000Z",
"updated_at": "2025-01-19T16:32:16.000000Z",
"deleted_at": null,
"props": [],
"brand": {
"id": 23,
"unique_id": "z4RM1LlfNvU8YgW",
"parent_id": null,
"name": "Apple",
"slug": "apple_z4RM1LlfNvU8YgW",
"banner": null,
"icon": null,
"thumbnails": null,
"commission": 10,
"commission_type": "fixed",
"status": 1,
"description": null,
"extend_props": {
"": null
},
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-06T04:54:38.000000Z",
"updated_at": "2025-01-06T04:54:38.000000Z"
},
"vendor": {
"id": 3,
"unique_id": "CVELejvhLEhWLi7",
"user_id": null,
"name": "Sami",
"slug": "sami",
"icon": null,
"thumbnails": null,
"banner": null,
"description": null,
"status": 1,
"extend_props": [],
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-06T14:03:23.000000Z",
"updated_at": "2025-01-06T14:03:36.000000Z"
},
"country": {
"id": 18,
"sortname": "BD",
"name": "Bangladesh",
"status": 1,
"phonecode": 880,
"added_by": 1,
"updated_by": 1,
"created_at": null,
"updated_at": null
},
"categories": [
{
"id": 114,
"unique_id": "8ghtcbgg3yKFoM5",
"parent_id": 0,
"name": "Mobile",
"slug": "mobile_8ghtcbgg3yKFoM5",
"sequence": null,
"commission": 0,
"commission_type": "fixed",
"icon": null,
"thumbnails": null,
"banner": null,
"description": "mobile",
"status": 0,
"extend_props": {
"sidebar": "menu"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2024-11-10T10:32:26.000000Z",
"updated_at": "2024-11-10T10:32:26.000000Z",
"pivot": {
"product_id": 65,
"category_id": 114
}
}
],
"district": {
"id": 1,
"country_id": 18,
"name": "Dhaka",
"bn_name": "ঢাকা",
"lat": "23.7115253",
"lon": "90.4111451",
"website": "www.dhaka.gov.bd",
"created_at": "2015-09-12T16:33:27.000000Z",
"updated_at": "2015-09-12T16:36:20.000000Z"
},
"police_station": {
"id": 494,
"district_id": 1,
"name": "Airport",
"bn_name": "1",
"created_by": 1,
"updated_by": 1,
"created_at": "2020-10-10T02:03:48.000000Z",
"updated_at": "2016-04-05T18:48:39.000000Z"
}
}
],
"first_page_url": "",
"from": 1,
"last_page": 1,
"last_page_url": "",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "",
"per_page": 15,
"prev_page_url": null,
"to": 6,
"total": 6
}
If you want to get by pagination to the list by GET Method Here we have this featuer for you in ths route with parameter like: limit_per_page
https://ecom.coderorbit.com/api/admin/{{app_token}}/product?limit_per_page=1
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
{
"current_page": 1,
"data": [
{
"id": 1,
"unique_id": "QsdTr6mAaU4DghV",
"category": ["1","2","3"],
"brand_id": 1,
"vendor_id": 1,
"country_id": 1,
"district_id": 1,
"police_station_id": 1,
"name": "this first add product from api",
"slug": "this_first_add_product_from_api_QsdTr6mAaU4DghV",
"sequence": 0,
"icon": null,
"thumbnails": null,
"banner": null,
"description": "this first add product from vs code description",
"status": 1,
"regular_price": 50,
"current_price": 40,
"dicount": 10,
"dicount_type": "fixed",
"stock": 20,
"unit": "pcs",
"minimum_order": 1,
"start_offer": "2023-02-19 12:55:51",
"end_offer": "2023-11-19 12:55:51",
"extend_props": {
"test": "test one",
"test2": "test two"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2023-05-11T03:56:21.000000Z",
"updated_at": "2023-05-11T03:56:37.000000Z",
"categories": [
{
"id": 1,
"unique_id": "iYKOQM0waTaB5pT",
"parent_id": 0,
"name": "T-shirt",
"slug": "t_shirt_iYKOQM0waTaB5pT",
"sequence": null,
"commission": null,
"commission_type": null,
"icon": null,
"thumbnails": null,
"banner": null,
"description": null,
"status": null,
"extend_props": {
"check": "test status"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2023-05-10T02:50:40.000000Z",
"updated_at": "2023-05-10T02:50:40.000000Z",
"pivot": {
"product_id": 8,
"category_id": 1
}
},
{
.......
}
],
"brand":{
....
},
"vendor":{
....
},
"country":{
...
},
"district":{
....
},
"police_station":{
}
}],
"first_page_url": "",
"from": 1,
"last_page": 1,
"last_page_url": "",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "",
"per_page": 15,
"prev_page_url": null,
"to": 6,
"total": 6
}
Basic Query Parameters
limit_per_page = 1 // Default 15
name = ''
page = 1 // number of page for pagination
data = all
orderBy = desc // desc|asc
Here is example url:
=====================================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/product
=====================================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/product?limit_per_page=1
=====================================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/product?name=apple
=====================================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/product?page=1
=====================================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/product?data=all&limit_per_page=1&name=admin&page=1
=====================================================================================================================
Advance Query/Filter Parameters
body: {
"regular_price" : 50,
"current_price": 50,
"country_id": "",
"extendProps":{
"prop_name": "value",
},
"police_station_id": "",
"district_id": "",
"vendor_id": "",
"brand_id": "",
"name": "",
"status": "",
"dicount_type": "", // Fixed|Parcentage
"stock": "",
"unit": "",
"minimum_order": "",
"range_from_date": "", // Only Date
"range_to_date": "", // Only Date
"start_offer": "", // only Date
"end_offer": "", // Only Date
"range_start_from_offer": "", // Only Date
"range_start_to_offer": "", // Only Date
"range_end_from_offer": "", // Only Date
"range_end_to_offer": "", // Only Date
"category": [], // array
"regular_price_range": "", // 0,100
"current_price_range": "", // 0,100
// or query function
"or_regular_price": "",
"or_current_price": "",
"or_country_id": "",
"or_extendProps":{
"prop_name": "value",
},
"or_police_station_id": "",
"or_district_id": "",
"or_vendor_id": "",
"or_brand_id": "",
"or_name": "",
"or_status": "",
"or_dicount_type": "", // Fixed|Parcentage
"or_stock": "",
"or_unit": "",
"or_minimum_order": "",
"or_start_offer": "", // only Date
"or_end_offer": "", // Only Date
"or_range_start_from_offer": "", // Only Date
"or_range_start_to_offer": "", // Only Date
"or_range_end_from_offer": "", // Only Date
"or_range_end_to_offer": "", // Only Date
"or_category":[], // array
"or_regular_price_range": "", // 0,100
"or_current_price_range": "", // 0,100
}
Details Data
Get product details by GET Method with all relational data for you. below list of route with parameter
https://ecom.coderorbit.com/api/admin/{{app_token}}/product/{{id}}
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
{
"data": {
"id": 75,
"unique_id": "R1xjKVxCNQGa68M",
"category": [
114,
91
],
"brand_id": 1,
"vendor_id": 3,
"country_id": 18,
"district_id": 1,
"police_station_id": 494,
"name": "Demo Product 01",
"slug": "demo_product_01_R1xjKVxCNQGa68M",
"icon": "",
"icon_small": "",
"feature": "",
"feature_small": "",
"gallery": [
"",
"",
""
],
"gallery_small": [
"",
"",
""
],
"sequence": null,
"description": {
"time": 1737350811698,
"blocks": [],
"version": "2.29.1"
},
"attributes": {
"colors": "Blue,Red,Green",
"sizes": "S_40,M_42,L_44"
},
"minimum_order": 2,
"start_offer": "2024-12-31 18:00:00",
"end_offer": "2025-01-30 18:00:09",
"extend_props": [
{
"product_id": 75,
"field_name": "test_fieldname_01",
"value": "This is for extra props 01"
},
{
"product_id": 75,
"field_name": "test_fieldname_02",
"value": "This is for extra props 02"
}
],
"status": 1,
"shipping_cost": null,
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 17,
"seo_tag": "High Quality,Premium,Value for Money",
"seo_description": "This is a SEO short Description for Demo Product 01",
"additional": [
{
"id": 183,
"additional_key": "75_blue_s_40",
"product_id": 75,
"unique_id": "75_blue_s_40",
"slug": "75_blue",
"color": "Blue",
"size": "S_40",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
},
{
"id": 184,
"additional_key": "75_blue_m_42",
"product_id": 75,
"unique_id": "75_blue_m_42",
"slug": "75_blue",
"color": "Blue",
"size": "M_42",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
},
{
"id": 185,
"additional_key": "75_blue_l_44",
"product_id": 75,
"unique_id": "75_blue_l_44",
"slug": "75_blue",
"color": "Blue",
"size": "L_44",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
},
{
"id": 186,
"additional_key": "75_red_s_40",
"product_id": 75,
"unique_id": "75_red_s_40",
"slug": "75_red",
"color": "Red",
"size": "S_40",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
},
{
"id": 187,
"additional_key": "75_red_m_42",
"product_id": 75,
"unique_id": "75_red_m_42",
"slug": "75_red",
"color": "Red",
"size": "M_42",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
},
{
"id": 188,
"additional_key": "75_red_l_44",
"product_id": 75,
"unique_id": "75_red_l_44",
"slug": "75_red",
"color": "Red",
"size": "L_44",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
},
{
"id": 189,
"additional_key": "75_green_s_40",
"product_id": 75,
"unique_id": "75_green_s_40",
"slug": "75_green",
"color": "Green",
"size": "S_40",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
},
{
"id": 190,
"additional_key": "75_green_m_42",
"product_id": 75,
"unique_id": "75_green_m_42",
"slug": "75_green",
"color": "Green",
"size": "M_42",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
},
{
"id": 191,
"additional_key": "75_green_l_44",
"product_id": 75,
"unique_id": "75_green_l_44",
"slug": "75_green",
"color": "Green",
"size": "L_44",
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z"
}
],
"shipping": null,
"payment_method": [],
"created_by": {
"id": 1,
"role_id": 1,
"country_id": 18,
"name": "Admin",
"email": "admin@gmail.com",
"extend_props": {
"address": null,
"city_id": 1,
"thana_id": 494
},
"email_verified_at": null,
"created_at": "2023-09-16T20:19:46.000000Z",
"updated_at": "2025-01-07T14:41:12.000000Z",
"unique_id": "8660998812",
"otp": 874613,
"status": 1,
"description": null,
"created_by": 0,
"updated_by": 0,
"deleted_at": null
},
"updated_by": {
"id": 1,
"role_id": 1,
"country_id": 18,
"name": "Admin",
"email": "admin@gmail.com",
"extend_props": {
"address": null,
"city_id": 1,
"thana_id": 494
},
"email_verified_at": null,
"created_at": "2023-09-16T20:19:46.000000Z",
"updated_at": "2025-01-07T14:41:12.000000Z",
"unique_id": "8660998812",
"otp": 874613,
"status": 1,
"description": null,
"created_by": 0,
"updated_by": 0,
"deleted_at": null
},
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z",
"deleted_at": null,
"categories": [
{
"id": 114,
"unique_id": "8ghtcbgg3yKFoM5",
"parent_id": 0,
"name": "Mobile",
"slug": "mobile_8ghtcbgg3yKFoM5",
"sequence": null,
"commission": 0,
"commission_type": "fixed",
"icon": null,
"thumbnails": null,
"banner": null,
"description": "mobile",
"status": 0,
"extend_props": {
"sidebar": "menu"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2024-11-10T10:32:26.000000Z",
"updated_at": "2024-11-10T10:32:26.000000Z",
"pivot": {
"product_id": 75,
"category_id": 114
}
},
{
"id": 91,
"unique_id": "KKL367124890",
"parent_id": 0,
"name": "Accessories",
"slug": "accessories",
"sequence": 0,
"commission": 150,
"commission_type": "fixed",
"icon": null,
"thumbnails": null,
"banner": null,
"description": "Accessories",
"status": 1,
"extend_props": null,
"created_by": 10,
"updated_by": 10,
"created_at": "2023-01-17T04:41:05.000000Z",
"updated_at": "2023-01-17T04:41:05.000000Z",
"pivot": {
"product_id": 75,
"category_id": 91
}
}
],
"additional_media": [
{
"id": 105,
"product_id": 75,
"slug": "75_blue",
"color_icon": "",
"color_icon_small": "",
"color_thumbnails_small": "",
"color_thumbnails": "",
"color_galleries": [
"",
"",
""
],
"color_galleries_small": [
"",
"",
""
]
},
{
"id": 106,
"product_id": 75,
"slug": "75_red",
"color_icon": "",
"color_icon_small": "",
"color_thumbnails_small": "",
"color_thumbnails": "",
"color_galleries": [
"",
"",
""
],
"color_galleries_small": [
"",
"",
""
]
},
{
"id": 107,
"product_id": 75,
"slug": "75_green",
"color_icon": "",
"color_icon_small": "",
"color_thumbnails_small": "",
"color_thumbnails": "",
"color_galleries": [
"",
"",
""
],
"color_galleries_small": [
"",
"",
""
]
}
],
"brand": {
...
},
"vendor": {
...
},
"country": {
...
},
"district": {
...
},
"police_station": {
...
},
"referrals": [],
"feedbacks": [],
"bundles": []
}
}
Edit
Get product details by GET Method with all relational data for you. below list of route with parameter
https://ecom.coderorbit.com/api/admin/{{app_token}}/product/{{id}}/edit
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
{
"data": {
"id": 75,
"unique_id": "R1xjKVxCNQGa68M",
"category": [
114,
91
],
"brand_id": 1,
"vendor_id": 3,
"country_id": 18,
"district_id": 1,
"police_station_id": 494,
"name": "Demo Product 01",
"slug": "demo_product_01_R1xjKVxCNQGa68M",
"icon": "",
"icon_small": "",
"feature": "",
"feature_small": "",
"gallery": [
"",
"",
""
],
"gallery_small": [
"",
"",
""
],
"sequence": null,
"description": {
"time": 1737350811698,
"blocks": [],
"version": "2.29.1"
},
"attributes": {
"colors": "Blue,Red,Green",
"sizes": "S_40,M_42,L_44"
},
"minimum_order": 2,
"start_offer": "2024-12-31 18:00:00",
"end_offer": "2025-01-30 18:00:09",
"extend_props": [
{
"product_id": 75,
"field_name": "test_fieldname_01",
"value": "This is for extra props 01"
},
{
"product_id": 75,
"field_name": "test_fieldname_02",
"value": "This is for extra props 02"
}
],
"status": 1,
"shipping_cost": null,
"regular_price": 399,
"current_price": 299,
"discount": null,
"discount_type": 1,
"stock": 17,
"seo_tag": "High Quality,Premium,Value for Money",
"seo_description": "This is a SEO short Description for Demo Product 01",
"additional": null,
"shipping": null,
"payment_method": [],
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-20T05:32:44.000000Z",
"updated_at": "2025-01-20T05:32:44.000000Z",
"deleted_at": null
}
}
Update
Method allow for update PUT/PATCH/POST
https://ecom.coderorbit.com/api/admin/{{app_token}}/product/{{id}}
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
body:{
name, // Required //string
description, //longtext
brand_id, //integer
vendor_id, //integer
country_id, //integer
district_id, //integer
police_station_id, //integer
sequence, //double
status, //integer
regular_price, //double
current_price, //double
dicount, //double
dicount_type, //string like: fixed or parcentage
stock, //integer
unit, //integer
minimum_order, //integer
start_offer, // date time
end_offer, // date time
category[], // array
banner, // image file or base64
icon, // image file or base64
thumbnails, // image file or base64
extend_props['test'],
extend_props['test2'],
.....
}
Result
{
"0": "Success",
"store_data": {
"id": 1,
"unique_id": "QsdTr6mAaU4DghV",
"category": ["1","2","3"],
"brand_id": 1,
"vendor_id": 1,
"country_id": 1,
"district_id": 1,
"police_station_id": 1,
"name": "this first add product from api",
"slug": "this_first_add_product_from_api_QsdTr6mAaU4DghV",
"sequence": 0,
"icon": null,
"thumbnails": null,
"banner": null,
"description": "this first add product from vs code description",
"status": 1,
"regular_price": 50,
"current_price": 40,
"dicount": 10,
"dicount_type": "fixed",
"stock": 20,
"unit": "pcs",
"minimum_order": 1,
"start_offer": "2023-02-19 12:55:51",
"end_offer": "2023-11-19 12:55:51",
"extend_props": {
"test": "test one",
"test2": "test two"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2023-05-11T03:56:21.000000Z",
"updated_at": "2023-05-11T03:56:37.000000Z",
"categories": [
{
"id": 1,
"unique_id": "iYKOQM0waTaB5pT",
"parent_id": 0,
"name": "T-shirt",
"slug": "t_shirt_iYKOQM0waTaB5pT",
"sequence": null,
"commission": null,
"commission_type": null,
"icon": null,
"thumbnails": null,
"banner": null,
"description": null,
"status": null,
"extend_props": {
"check": "test status"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2023-05-10T02:50:40.000000Z",
"updated_at": "2023-05-10T02:50:40.000000Z",
"pivot": {
"product_id": 8,
"category_id": 1
}
},
{
.......
}
],
"brand":{
....
},
"vendor":{
....
},
"country":{
...
},
"district":{
....
},
"police_station":{
}
}
}
Delete
Method allow for delete Delete
https://ecom.coderorbit.com/api/admin/{{app_token}}/product/{{id}}
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
Success