# Evaly Core products module v2 merchant API documentation ``` CoreBaseURL = https://api-beta.evaly.com.bd/core ``` ## API endpoints ### Attribute Value LIST API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attribute-values/?page=1 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "count": 82379, "next": "http://localhost:8000/v2/merchant/attribute-values/?page=2", "previous": null, "results": [ { "id": 85394, "name": "L", "attribute": 11352 }, { "id": 85393, "name": "M", "attribute": 11352 }, { "id": 85392, "name": "S", "attribute": 11352 }, { "id": 85391, "name": "Red", "attribute": 11351 }, ... ... ... ] } ``` ### Attribute Value CREATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attribute-values/ **Request Method**: POST **Request Body**: ```jsonld=1 { "name": "Red XXL", "attribute": 10, "status": "active" } ``` **Response Body**: ```jsonld=1 { "id": 85395, "name": "Red XXL", "attribute": 10, "status": "active" } ``` ### Attribute Value DETAILS API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attribute-values/85395/ **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 85395, "name": "Red XXL", "attribute": 10, "status": "active" } ``` ### Attribute Value UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attribute-values/85395/ **Request Method**: PUT **Request Body**: ```jsonld=1 { "name": "Red XXL", "attribute": 15, "status": "active" } ``` **Response Body**: ```jsonld=1 { "id": 85395, "name": "Red XXL", "attribute": 15, "status": "active" } ``` ### Attribute Value PARTIAL UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attribute-values/85395/ **Request Method**: PATCH **Request Body**: ```jsonld=1 { "attribute": 12, } ``` **Response Body**: ```jsonld=1 { "id": 85395, "name": "Red XXL", "attribute": 12, "status": "active" } ``` ### Attribute Value DELETE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attribute-values/85395/ **Request Method**: DELETE **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 85395, "name": "Red XXL", "attribute": 12, "status": "archived" } ``` ### Attribute LIST API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attributes/?page=1 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "count": 10716, "next": "http://localhost:8000/v2/merchant/attributes/?page=2", "previous": null, "results": [ { "id": 11352, "name": "Size", "slug": "size-72f3af7e4", "approved": true, "category": 5917 }, { "id": 11351, "name": "Color", "slug": "color-e01c8360c", "approved": true, "category": 5917 }, { "id": 11349, "name": "Rehan Bro", "slug": "rehan-bro-d55ac9f91", "approved": true, "category": 5968 }, ... ... ... ] } ``` ### Attribute CREATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attributes/ **Request Method**: POST **Request Body**: ```jsonld=1 { "name": "Size", "approved": true, "category": 1, "status": "active" } ``` **Response Body**: ```jsonld=1 { "id": 11353, "name": "Size", "slug": "size-06db6b136", "approved": true, "category": 1, "status": "active" } ``` ### Attribute DETAILS API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attributes/11353/ **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 11353, "name": "Size", "slug": "size-06db6b136", "approved": true, "category": 1, "status": "active" } ``` ### Attribute UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attributes/11353/ **Request Method**: PUT **Request Body**: ```jsonld=1 { "name": "Size XX", "approved": true, "category": 1, "status": "active" } ``` **Response Body**: ```jsonld=1 { "id": 11353, "name": "Size XX", "slug": "size-xx-3b4c46bf3", "approved": true, "category": 1, "status": "active" } ``` ### Attribute PARTIAL UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attributes/11353/ **Request Method**: PATCH **Request Body**: ```jsonld=1 { "name": "Size(s)", } ``` **Response Body**: ```jsonld=1 { "id": 11353, "name": "Size(s)", "slug": "size-s-3b4c46bf3", "approved": true, "category": 1, "status": "active" } ``` ### Attribute DELETE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/attributes/11353/ **Request Method**: DELETE **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 11353, "name": "Size XX", "slug": "size-xx-3b4c46bf3", "approved": true, "category": 1, "status": "archived" } ``` ### Brand LIST API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/brands/?page=1 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "count": 22106, "next": "http://localhost:8000/v2/merchant/brands/?page=2", "previous": null, "results": [ { "id": 26450, "name": "Evaly 101", "slug": "evaly-101-f795204ee", "brand_type": "general", "approved": false, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/51a8c6d28da2-samsung-galaxy-note10-lite-1.jpg", "status": "active", "brand_score": 100 }, { "id": 26449, "name": "Coffee", "slug": "coffee-46ce98b6f", "brand_type": "non brand", "approved": false, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/51c9cf0df19a-newfile.jpeg", "status": "active", "brand_score": 10 }, ... .... ..... ] } ``` ### Brand CREATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/brands/ **Request Method**: POST **Request Body**: ```jsonld=1 { "name": "Evaly ITSELF", "brand_type": "general", "approved": false, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/51a8c6d28da2-samsung-galaxy-note10-lite-1.jpg", "status": "active", "brand_score": 1000 } ``` **Response Body**: ```jsonld=1 { "id": 26451, "name": "Evaly ITSELF", "slug": "evaly-itself-263b5cc0f", "brand_type": "general", "approved": false, "description": null, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/51a8c6d28da2-samsung-galaxy-note10-lite-1.jpg", "status": "active", "brand_score": 1000 } ``` ### Brand DETAILS API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/brands/26451/ **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 26451, "name": "Evaly ITSELF", "slug": "evaly-itself-263b5cc0f", "brand_type": "general", "approved": false, "description": null, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/51a8c6d28da2-samsung-galaxy-note10-lite-1.jpg", "status": "active", "brand_score": 1000 } ``` ### Brand UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/brands/26451/ **Request Method**: PUT **Request Body**: ```jsonld=1 { "name": "Evaly ITSELF", "slug": "evaly-itself-263b5cc0f", "brand_type": "general", "approved": true, "description": "THis is Evaly Internal test brand", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/51a8c6d28da2-samsung-galaxy-note10-lite-1.jpg", "status": "active", "brand_score": 1000 } ``` **Response Body**: ```jsonld=1 { "id": 26451, "name": "Evaly ITSELF", "slug": "evaly-itself-263b5cc0f", "brand_type": "general", "approved": true, "description": "THis is Evaly Internal test brand", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/51a8c6d28da2-samsung-galaxy-note10-lite-1.jpg", "status": "active", "brand_score": 1000 } ``` ### Brand DELETE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/brands/26451/ **Request Method**: DELETE **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 26451, "name": "Evaly ITSELF", "slug": "evaly-itself-263b5cc0f", "brand_type": "general", "approved": true, "description": "THis is Evaly Internal test brand", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/51a8c6d28da2-samsung-galaxy-note10-lite-1.jpg", "status": "archived", "brand_score": 1000 } ``` ### Product Category LIST API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/categories/?page=1&limit=3 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "count": 5789, "next": "http://localhost:8000/v2/merchant/categories/?limit=3&page=2", "previous": null, "results": [ { "id": 6185, "name": "abc", "slug": "abc-d8b382fa6", "approved": false, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/fdd62664844d-newfile.jpeg", "department": 14, "status": "active" }, { "id": 6184, "name": "coffee cl", "slug": "coffee-cl-a298d9101", "approved": false, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/4e6e3658f60e-newfile.jpeg", "department": 3, "status": "active" }, { "id": 6183, "name": "coffee test", "slug": "coffee-test-f58679ed2", "approved": false, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f6d15a4ccfa8-newfile.jpeg", "department": 3, "status": "active" } ] } ``` ### Product Category CREATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/categories/ **Request Method**: POST **Request Body**: ```jsonld=1 { "name": "Electronics 100", "approved": false, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f6d15a4ccfa8-newfile.jpeg", "department": 3, "status": "active" } ``` **Response Body**: ```jsonld=1 { "id": 6186, "name": "Electronics 100", "slug": "electronics-100-b0f9fe180", "approved": false, "description": null, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f6d15a4ccfa8-newfile.jpeg", "parent": null, "department": 3, "status": "active", "score": 0 } ``` ### Product Category DETAILS API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/categories/6183/ **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 6183, "name": "coffee test", "slug": "coffee-test-f58679ed2", "approved": false, "description": null, "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f6d15a4ccfa8-newfile.jpeg", "parent": 4794, "department": 3, "status": "active", "score": 600000 } ``` ### Product Category UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/categories/6183/ **Request Method**: PUT **Request Body**: ```jsonld=1 { "name": "coffee test 2", "approved": false, "description": "Testing PUT API", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f6d15a4ccfa8-newfile.jpeg", "parent": 4794, "department": 3, "status": "active", "score": 600000 } ``` **Response Body**: ```jsonld=1 { "id": 6183, "name": "coffee test 2", "slug": "coffee-test-f58679ed2", "approved": false, "description": "Testing PUT API", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f6d15a4ccfa8-newfile.jpeg", "parent": 4794, "department": 3, "status": "active", "score": 600000 } ``` ### Product Category DELETE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/categories/6183/ **Request Method**: DELETE **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 6183, "name": "coffee test 2", "slug": "coffee-test-f58679ed2", "approved": false, "description": "Testing PUT API", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f6d15a4ccfa8-newfile.jpeg", "parent": 4794, "department": 3, "status": "archived", "score": 600000 } ``` ### Department LIST API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/departments/?page=1 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "count": 14, "next": null, "previous": null, "results": [ { "id": 14, "name": "Agricultural", "slug": "agricultural-cd98ccc2d", "approved": true, "image_url": null }, { "id": 13, "name": "Art, Craft, Personalized shops", "slug": "art-craft-personalized-shops-d608e122d", "approved": true, "image_url": null }, { "id": 12, "name": "Corporate", "slug": "corporate-b672cba01", "approved": true, "image_url": null }, ... .... ..... ] } ``` ### Department CREATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/departments/ **Request Method**: POST **Request Body**: ```jsonld=1 { "name": "Corporate S", "approved": true } ``` **Response Body**: ```jsonld=1 { "id": 15, "name": "Corporate S", "slug": "corporate-s-c9585af87", "approved": true, "description": null, "image_url": null, "status": "active" } ``` ### Department DETAILS API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/departments/15/ **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 15, "name": "Corporate S", "slug": "corporate-s-c9585af87", "approved": true, "description": null, "image_url": null, "status": "active" } ``` ### Department UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/departments/15/ **Request Method**: PUT **Request Body**: ```jsonld=1 { "name": "SME", "approved": true, "description": "This is a test API call", "image_url": null, "status": "active" } ``` **Response Body**: ```jsonld=1 { "id": 15, "name": "SME", "slug": "sme-87b377227", "approved": true, "description": "This is a test API call", "image_url": null, "status": "active" } ``` ### Department DELETE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/departments/15/ **Request Method**: DELETE **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 15, "name": "SME", "slug": "sme-87b377227", "approved": true, "description": "This is a test API call", "image_url": null, "status": "archived" } ``` ### Enlisted Product variant with shop list **API URL**: /v2/merchant/product-variants/for-enlisting/product/<product_slug>/shop/<shop_slug>/ **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/product-variants/for-enlisting/product/tulip-c2aed76a2/shop/test-shop-joker?page=1&limit=3 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "success": true, "data": [ { "variant_id": 527239, "attributes": null, "images": [ "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/bd5fb629bb34-dd58562852a713891836b6291ea6c4ad.jpg" ], "price": 1000, "discount_type": "flat", "discount": 0, "discounted_price": null, "enlisted": 0, "shop_item_id": null } ] } ``` ### Product LIST API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/products/?page=1&limit=3 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "count": 378995, "next": "http://localhost:8000/v2/merchant/products/?limit=3&page=2", "previous": null, "results": [ { "id": 425618, "name": "Tulip", "slug": "tulip-c2aed76a2", "approved": true, "image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYmQ1ZmI2MjliYjM0LWRkNTg1NjI4NTJhNzEzODkxODM2YjYyOTFlYTZjNGFkLmpwZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDIwMCwgImhlaWdodCI6IDIwMCwgImZpdCI6ICJjb250YWluIn0sICJiYWNrZ3JvdW5kIjogeyJyIjogMjU1LCAiZyI6IDI1NSwgImIiOiAyNTUsICJhbHBoYSI6IDF9LCAiZmxhdHRlbiI6IHRydWUsICJqcGVnIjogeyJxdWFsaXR5IjogNzV9fX0=" ], "tags": [ "tulip", "flower" ], "max_price": "1000.00", "min_price": "1000.00", "min_discounted_price": "1000.00", "status": "active" }, { "id": 425617, "name": "Product Name created by Automation 1", "slug": "product-name-created-by-automation-1-fc1004d2a", "approved": false, "image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNDYzNGE2NzM1OGVkLWV2YWx5LWJhbm5lci5qcGciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyMDAsICJoZWlnaHQiOiAyMDAsICJmaXQiOiAiY29udGFpbiJ9LCAiYmFja2dyb3VuZCI6IHsiciI6IDI1NSwgImciOiAyNTUsICJiIjogMjU1LCAiYWxwaGEiOiAxfSwgImZsYXR0ZW4iOiB0cnVlLCAianBlZyI6IHsicXVhbGl0eSI6IDc1fX19" ], "tags": [], "max_price": null, "min_price": null, "min_discounted_price": null, "status": "active" }, { "id": 425616, "name": "Product Name created by Automation 0", "slug": "product-name-created-by-automation-0-b5ef024de", "approved": false, "image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNDYzNGE2NzM1OGVkLWV2YWx5LWJhbm5lci5qcGciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyMDAsICJoZWlnaHQiOiAyMDAsICJmaXQiOiAiY29udGFpbiJ9LCAiYmFja2dyb3VuZCI6IHsiciI6IDI1NSwgImciOiAyNTUsICJiIjogMjU1LCAiYWxwaGEiOiAxfSwgImZsYXR0ZW4iOiB0cnVlLCAianBlZyI6IHsicXVhbGl0eSI6IDc1fX19" ], "tags": [], "max_price": null, "min_price": null, "min_discounted_price": null, "status": "active" } ] } ``` ### Product CREATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/products/ **Request Method**: POST **Request Body**: ```jsonld=1 { "name": "string", "slug": "string", "description": "string", "approved": true, "price_type": "fixed", "max_price": "string", "min_price": "string", "min_discounted_price": "string", "brand": 0, "category": 0, "image_urls": [ "string" ], "status": "active", "product_score": 0 } ``` **Response Body**: ```jsonld=1 { "id": 0, "name": "string", "slug": "string", "description": "string", "approved": true, "price_type": "fixed", "max_price": "string", "min_price": "string", "min_discounted_price": "string", "brand": 0, "category": 0, "image_urls": [ "string" ], "status": "active", "product_score": 0, "tags": "string" } ``` ### Product for Listing shop LIST API **API Endpoint**: /v2/merchant/products/for-enlisting/shop/<shop_slug> **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/products/for-enlisting/shop/test-shop-joker?page=1&limit=3 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "success": true, "data": [ { "name": "Tulip", "slug": "tulip-c2aed76a2", "images": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYmQ1ZmI2MjliYjM0LWRkNTg1NjI4NTJhNzEzODkxODM2YjYyOTFlYTZjNGFkLmpwZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDI1MCwgImhlaWdodCI6IDI1MCwgImZpdCI6ICJjb250YWluIn0sICJiYWNrZ3JvdW5kIjogeyJyIjogMjU1LCAiZyI6IDI1NSwgImIiOiAyNTUsICJhbHBoYSI6IDF9LCAiZmxhdHRlbiI6IHRydWUsICJqcGVnIjogeyJxdWFsaXR5IjogNzV9fX0=", "price": 500, "enlisted": 0 }, { "name": "Jasmin Flower", "slug": "jasmin-flower-f3ae3d940", "images": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYTJhYTE3YzBlMzAyLW1heHJlc2RlZmF1bHQtMi5qcGciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiJ9LCAiYmFja2dyb3VuZCI6IHsiciI6IDI1NSwgImciOiAyNTUsICJiIjogMjU1LCAiYWxwaGEiOiAxfSwgImZsYXR0ZW4iOiB0cnVlLCAianBlZyI6IHsicXVhbGl0eSI6IDc1fX19", "price": 300, "enlisted": 0 }, { "name": "Kath Golap", "slug": "kath-golap-cb438fd0e", "images": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMDBiNWYzNzJlNTliLWltYWdlcy0xMi5qcGciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiJ9LCAiYmFja2dyb3VuZCI6IHsiciI6IDI1NSwgImciOiAyNTUsICJiIjogMjU1LCAiYWxwaGEiOiAxfSwgImZsYXR0ZW4iOiB0cnVlLCAianBlZyI6IHsicXVhbGl0eSI6IDc1fX19", "price": 400, "enlisted": 0 } ], "count": 296993 } ``` ### Product History LIST API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/products/history/425617/?page=1&limit=3 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "success": true, "message": "Product history fetched successfully", "data": [ { "change_author": "SAZIBUR RAHMAN", "change_time": "2021-07-25T09:20:13.616886", "change_type": "Created", "status": "unapproved.active", "change_author_groups": "ShopOwner,ShopManager,ShopAdmin,OrderManager,OrderAdmin,OrderCancel,ProductManager,ProductAdmin,VoucherViewer,VoucherManager,VoucherAdmin,CategoryManager,BrandManager,BalanceManager,ChatAdmin,ChatManager,NoteEntry,NoteManager,EvalyEmployee,AccountsManager,OrderStatusUpdate,AccountsAdmin,BulkPermission,EkhataAdmin,RefundManager,HeroManager,BulkAdmin,CampaignManager,CampaignAdmin,NotificationManager,TechSupport,IssueResolutionManager,IssueResolutionAdmin,ebazarAdmin,ebazarManager,RestaurantOwner,EfoodAdmin,EfoodManager,EfoodCustomerService,DataExporter,EfoodContentAdmin,EfoodContentManager,CashbackAdmin,AppointmentAdmin,TechAdmin,EfoodExploreManager,CompanyAdmin,CompanyManager,DeliveryHero,EjobsEvalyAdmin,HeroAdmin,ShopOwners" } ], "meta": { "count": 1 } } ``` ### Top Five Products API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/products/shops/test-shop-joker/top-five?page=1&limit=5 **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "success": true, "message": "top products fetched successfully", "data": [ { "slug": "dress-c4353b3a5", "name": "Dress", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/1aa2899e8e01-291710-1252219.jpg", "ordered": 1080, "delivered": 36 }, { "slug": "bike-ad84f3d9a", "name": "bike", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/92460cce0db0-yamaha-yzf-r15-v3-right-side-view_270x180.webp", "ordered": 142, "delivered": 0 }, { "slug": "shampoo-silky-cbf13db79", "name": "shampoo silky", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f320aed53fc5-elements-complete-care-shampoo-500x500.jpeg", "ordered": 128, "delivered": 2 }, { "slug": "khabo-7921e085a", "name": "Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo KhaboKhabo Khabo KhaboKhabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo Khabo ", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/5cc270c88532-imagev170129559c4fe6c35f9bbb5529d0076fa-mz4ujz2l1q6oakt7or2_t1880.jpg", "ordered": 88, "delivered": 4 }, { "slug": "khan-9b201feb2", "name": "KHAN23", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/64793be1c02e-424bfa3079ae-image.jpg", "ordered": 40, "delivered": 24 } ] } ``` ### Product DETAILS API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/products/shampoo-silky-cbf13db79/ **Request Method**: GET **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 425177, "name": "shampoo silky", "slug": "shampoo-silky-cbf13db79", "description": "dfvdf", "approved": true, "price_type": "fixed", "max_price": "4945.00", "min_price": "555.00", "min_discounted_price": "555.00", "tags": [], "brand": { "name": "A test brand", "slug": "a-test-brand-d1eaae142", "image_url": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/d36f313553f8-file-20190129-108364-17hlc1x.jpg" }, "category": { "name": "Beauty care Service", "slug": "beauty-care-service-3a0a13940" }, "image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvZjMyMGFlZDUzZmM1LWVsZW1lbnRzLWNvbXBsZXRlLWNhcmUtc2hhbXBvby01MDB4NTAwLmpwZWciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiJ9LCAiYmFja2dyb3VuZCI6IHsiciI6IDI1NSwgImciOiAyNTUsICJiIjogMjU1LCAiYWxwaGEiOiAxfSwgImZsYXR0ZW4iOiB0cnVlLCAianBlZyI6IHsicXVhbGl0eSI6IDc1fX19" ], "original_image_urls": [ "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/f320aed53fc5-elements-complete-care-shampoo-500x500.jpeg" ], "status": "active", "sku": "0x67cd9", "product_specifications": [ { "id": 1707911, "specification_name": "", "specification_value": "" } ], "product_score": null } ``` ### Product UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/products/<slug>/ **Request Method**: PUT **Request Body**: ```jsonld=1 { "name": "string", "slug": "string", "description": "string", "approved": true, "price_type": "fixed", "max_price": "string", "min_price": "string", "min_discounted_price": "string", "brand": 0, "category": 0, "image_urls": [ "string" ], "status": "active", "product_score": 0 } ``` **Response Body**: ```jsonld= { "id": 0, "name": "string", "slug": "string", "description": "string", "approved": true, "price_type": "fixed", "max_price": "string", "min_price": "string", "min_discounted_price": "string", "brand": 0, "category": 0, "image_urls": [ "string" ], "status": "active", "product_score": 0 } ``` ### Product DELETE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/products/dress-c4353b3a5/ **Request Method**: DELETE **Request Body**: N/A **Response Body**: ```jsonld=1 { "id": 425277, "name": "Dress", "slug": "dress-c4353b3a5", "description": "Clothing are items worn on the body. Clothing are typically made of fabrics or textiles but over time has included garments made from animal skin or other thin sheets of materials put together. \n", "approved": true, "price_type": "fixed", "max_price": "1216.74", "min_price": "0.00", "min_discounted_price": "0.00", "brand": 26435, "category": 5937, "image_urls": [ "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/1aa2899e8e01-291710-1252219.jpg" ], "status": "archived", "product_score": 99999999, "tags": [] } ``` ### Product Variant UPDATE API **Headers**: application/json; Bearer <Token> **Requested URL**: {CoreBaseURL}/v2/merchant/update-product-variant/425606/ **Request Method**: PUT **Request Body**: ```jsonld=1 { "image_urls": [ "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/4fc28bb181e2-47bed897b87b-hr-er-006.jpg" ] } ``` **Response Body**: ```jsonld= { "success": true, "message": "product variant updated successfully", "data": { "id": 425606, "product": 367314, "image_urls": [ "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/4fc28bb181e2-47bed897b87b-hr-er-006.jpg" ], "status": "active" } } ```