# Evaly Core Shop Module Admin V2 API's ``` <core_base_url> == https://api-beta.evaly.com.bd/core ``` ### End Points ## Shop List * **<core_base_url>/v2/admin/shops/** ``` requested_url: <core_base_url>/v2/admin/shops/?page=1&limit=5 request_method--GET --header Authorization: bearer {token} No Request Body requierd. Example Response Body: { "success": true, "message": "shops fetched successfully", "count": 855, "data": [ { "slug": "test-shop-joker", "contact_number": "01521200070", "shop_name": "Test Shop Joker", "shop_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/5d5a935f343f-joker-trailer.jpg", "approval": 1, "owner_name": "The Zinda" }, { "slug": "test-shop-joker-1", "contact_number": "01521200079", "shop_name": "Test Shop Grocery", "shop_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/25088dbdcdca-evaly-1.png", "approval": 0, "owner_name": "The Zinda" }, { "slug": "virus-shop-instant-cashback", "contact_number": "01521200079", "shop_name": "Virus Shop Instant Cashback", "shop_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/4eaafba37be8-virus-human.jpg", "approval": 1, "owner_name": "Hazle Bednar" }, { "slug": "ishak-matrimonial-service", "contact_number": "01521200079", "shop_name": "Ishak Matrimonial Service", "shop_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/4ae7453f37cd-0.jpeg", "approval": 1, "owner_name": "Jordan Berge" }, { "slug": "zays-official-store", "contact_number": "01521200079", "shop_name": "Zays Official Store", "shop_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/08d25c7b4f42-zays.jpg", "approval": 1, "owner_name": "Beth Eichmann" } ] } ``` ## Create Shop * **<core_base_url>/v2/admin/custom/create-shop/** ``` request_method--POST --header Authorization: bearer {token} Example Request Body: { "name": "Watch", "address": "Dhaka99", "contact_number": "01326300967", "owner": 1, "longitude": "0", "latitude": "0", "commission_rate": 10, "logo_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/8d5a33aa15a7-jamaican-me-crazy-roasted-chicken-drumsticks-3_web-1024x683.jpg", "shop_score": 24, "is_cod_allowed": true, "description": "ee", "image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/95d1f6543205-Ecommerce_Banner.png" } Example Response Body: { "success": true, "message": "Shop created successfully", "data": { "id": 1015, "name": "Watch", "owner_name": "ishak", "slug": "watch-4", "approved": false, "shop_delivery_options": [], "longitude": "0.00000000000000000", "latitude": "0.00000000000000000", "nid": null, "trade_license": null, "bank_info": null, "contact_number": "01326300967", "status": "active", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvOTVkMWY2NTQzMjA1LUVjb21tZXJjZV9CYW5uZXIucG5nIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==", "logo_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/8d5a33aa15a7-jamaican-me-crazy-roasted-chicken-drumsticks-3_web-1024x683.jpg", "address": "Dhaka99", "description": "ee", "shop_score": 24, "subscriber_count": 0, "is_express_shop": false, "is_cod_allowed": true, "is_delivery_hero_allowed": false, "commission_rate": 10 } } ``` ## Approved Shop * **<core_base_url>/v2/admin/custom/shop/approval/{shop_slug}/** ``` request_method--PUT request_url: <core_base_url>/v2/admin/custom/shop/approval/watch-4/ --header Authorization: bearer {token} Example Request Body: { "approved":true } Example Response Body: { "success": true, "message": "Shop approval successful." } ``` ## Update Shop * **<core_base_url>/v2/admin/custom/shop/update/{shop_slug}/** ``` request_method--PUT request_url: <core_base_url>/v2/admin/custom/shop/update/watch-4/ --header Authorization: bearer {token} Example Request Body: { "name":"Watch test" } optional field in request_body: [ 'image', 'logo_image', 'longitude', 'latitude', 'address', 'nid', 'trade_license', 'bank_info', 'description', 'owner', 'contact_number', 'assigned_to', 'commission_rate', 'is_cod_allowed', 'is_delivery_hero_allowed' ] Example Response Body: { "success": true, "message": "shop updated successfully", "data": { "id": 1015, "name": "Watch test", "owner_name": "ishak", "slug": "watch-4", "approved": true, "shop_delivery_options": [], "longitude": "0.00000000000000000", "latitude": "0.00000000000000000", "nid": null, "trade_license": null, "bank_info": null, "contact_number": "01326300967", "status": "active", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvOTVkMWY2NTQzMjA1LUVjb21tZXJjZV9CYW5uZXIucG5nIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==", "logo_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/8d5a33aa15a7-jamaican-me-crazy-roasted-chicken-drumsticks-3_web-1024x683.jpg", "address": "Dhaka99", "description": "ee", "shop_score": 24, "subscriber_count": 0, "is_express_shop": false, "is_cod_allowed": true, "is_delivery_hero_allowed": false, "commission_rate": 10.0 } } ``` ## Shop Config Details * **<core_base_url>/v2/admin/shop-config/{shop_slug}/** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Example Response Body: { "min_order_quantity": -2147483648, "min_order_amount": 0, "max_order_quantity": -2147483648, "max_order_amount": 0, "delivery_charge": 0, "shop": "string" } ``` ## Update Shop Config * **<core_base_url>/v2/admin/shop-config/{shop_slug}/** ``` request_method--PATCH --header Authorization: bearer {token} Example Request Body: { "min_order_quantity": -2147483648, "min_order_amount": 0, "max_order_quantity": -2147483648, "max_order_amount": 0, "delivery_charge": 0, "shop": "string" } Example Response Body: { "min_order_quantity": -2147483648, "min_order_amount": 0, "max_order_quantity": -2147483648, "max_order_amount": 0, "delivery_charge": 0, "shop": "string" } ``` ## Create Shop Config * **<core_base_url>/v2/admin/shop-config/** ``` request_method--POST --header Authorization: bearer {token} Example Request Body: { "min_order_quantity": -2147483648, "min_order_amount": 0, "max_order_quantity": -2147483648, "max_order_amount": 0, "delivery_charge": 0, "shop": "string" } Example Response Body: { "min_order_quantity": -2147483648, "min_order_amount": 0, "max_order_quantity": -2147483648, "max_order_amount": 0, "delivery_charge": 0, "shop": "string" } ``` ## Shop Item List * **<core_base_url>/v2/admin/shop-items/** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Example Response Body: { "count": 5988, "next": "http://127.0.0.1:8000/v2/admin/shop-items/?limit=3&page=2", "previous": null, "results": [ { "id": 8757, "shop": 1032, "product_variant": 527198, "price": "1000.00", "in_stock": 300 }, { "id": 8756, "shop": 1, "product_variant": 527198, "price": "220.00", "in_stock": 1 }, { "id": 8755, "shop": 1027, "product_variant": 527198, "price": "220.00", "in_stock": 100000 } } ``` ## Enlist Shop Item * **<core_base_url>/v2/admin/shop-items/** ``` request_method--POST --header Authorization: bearer {token} Example Request Body: { "shop": 0, "product_variant": 0, "price": "string", "seller_price": "string", "in_stock": -2147483648, "status": "active", "wholesale_price": "string", "discount": "string", "discount_type": "percentage", "discounted_price": "string", "minimum_wholesale_quantity": -2147483648, "stock_item": true } Example Response Body: { "id": 0, "shop": 0, "product_variant": 0, "price": "string", "seller_price": "string", "in_stock": -2147483648, "status": "active", "wholesale_price": "string", "discount": "string", "discount_type": "percentage", "discounted_price": "string", "minimum_wholesale_quantity": -2147483648, "stock_item": true } ``` ## Update Shop Item * **<core_base_url>/v2/admin/shop-items/{id}** ``` request_method--PATCH --header Authorization: bearer {token} Example Request Body: { "shop": 0, "product_variant": 0, "price": "string", "seller_price": "string", "in_stock": -2147483648, "status": "active", "wholesale_price": "string", "discount": "string", "discount_type": "percentage", "discounted_price": "string", "minimum_wholesale_quantity": -2147483648, "stock_item": true } Example Response Body: { "id": 0, "shop": 0, "product_variant": 0, "price": "string", "seller_price": "string", "in_stock": -2147483648, "status": "active", "wholesale_price": "string", "discount": "string", "discount_type": "percentage", "discounted_price": "string", "minimum_wholesale_quantity": -2147483648, "stock_item": true } ``` ## Shop Item Details * **<core_base_url>/v2/admin/shop-items/{id}** ``` request_method--GET request_url: <core_base_url>/v2/admin/shop-items/8757 --header Authorization: bearer {token} No Request Required Example Response Body: { "id": 8757, "shop": 1032, "product_variant": 527198, "price": "1000.00", "seller_price": "600.00", "in_stock": 300, "status": "active", "wholesale_price": "500.00", "discount": "0.00", "discount_type": "flat", "discounted_price": "1000.00", "minimum_wholesale_quantity": 100, "stock_item": false } ``` ## Delete Shop Item * **<core_base_url>/v2/admin/shop-items/{id}** ``` request_method--DELETE request_url: <core_base_url>/v2/admin/shop-items/8757 --header Authorization: bearer {token} No Request Body Required Example Response Body: { "id": 8757, "shop": 1032, "product_variant": 527198, "price": "1000.00", "seller_price": "600.00", "in_stock": 300, "status": "archived", "wholesale_price": "500.00", "discount": "0.00", "discount_type": "flat", "discounted_price": "1000.00", "minimum_wholesale_quantity": 100, "stock_item": false } ``` ## Merchant List * **<core_base_url>/v2/admin/merchants/** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Example Response Body: { "count": 6, "next": null, "previous": null, "results": [ { "merchant_no": "EM-483-097-319", "business_name": "Evaly Test Merchant for Dev", "business_logo": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNmNhYTkyZDg0NGU1LWltZy0yMDIxMDIyMi13YTAwMDMuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogMjUwLCAiaGVpZ2h0IjogMjUwLCAiZml0IjogImNvbnRhaW4iLCAiYmFja2dyb3VuZCI6IHsiciI6IDAsICJnIjogMCwgImIiOiAwLCAiYWxwaGEiOiAwfX0sICJwbmciOiB7ImFkYXB0aXZlRmlsdGVyaW5nIjogdHJ1ZSwgInByb2dyZXNzaXZlIjogdHJ1ZSwgImZvcmNlIjogdHJ1ZX19fQ==", "business_type": "Partnership", "managed_by": { "first_name": "Ishak", "last_name": "Ahammed", "username": "ishak" } }, { "merchant_no": "EM-793-768-550", "business_name": "Evaly New Jersey Shop", "business_logo": null, "business_type": "Partnership", "managed_by": { "first_name": "Ishak", "last_name": "Ahammed", "username": "ishak" } }, { "merchant_no": "EM-259-985-324", "business_name": "Evaly Jersey", "business_logo": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYTMyZTdmMzc1OWM0LWZ1ei5qcGciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiIsICJiYWNrZ3JvdW5kIjogeyJyIjogMCwgImciOiAwLCAiYiI6IDAsICJhbHBoYSI6IDB9fSwgInBuZyI6IHsiYWRhcHRpdmVGaWx0ZXJpbmciOiB0cnVlLCAicHJvZ3Jlc3NpdmUiOiB0cnVlLCAiZm9yY2UiOiB0cnVlfX19", "business_type": "Partnership", "managed_by": { "first_name": "Ishak", "last_name": "Ahammed", "username": "ishak" } }, { "merchant_no": "EM-911-129-407", "business_name": "Test Merchant", "business_logo": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMjIwZGIwMzk1ODAyLWxvY2FsLWRvZy5qcGciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiIsICJiYWNrZ3JvdW5kIjogeyJyIjogMCwgImciOiAwLCAiYiI6IDAsICJhbHBoYSI6IDB9fSwgInBuZyI6IHsiYWRhcHRpdmVGaWx0ZXJpbmciOiB0cnVlLCAicHJvZ3Jlc3NpdmUiOiB0cnVlLCAiZm9yY2UiOiB0cnVlfX19", "business_type": "Partnership", "managed_by": { "first_name": "Ishak", "last_name": "Ahammed", "username": "ishak" } }, { "merchant_no": "EM-345-979-255", "business_name": "ABC", "business_logo": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMDExN2UyMjIxYTdmLTc4NzVfMTAwMHgxMDAwLmpwZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDI1MCwgImhlaWdodCI6IDI1MCwgImZpdCI6ICJjb250YWluIiwgImJhY2tncm91bmQiOiB7InIiOiAwLCAiZyI6IDAsICJiIjogMCwgImFscGhhIjogMH19LCAicG5nIjogeyJhZGFwdGl2ZUZpbHRlcmluZyI6IHRydWUsICJwcm9ncmVzc2l2ZSI6IHRydWUsICJmb3JjZSI6IHRydWV9fX0=", "business_type": "Private Limited Company", "managed_by": { "first_name": "Ishrat", "last_name": "ila", "username": "ila" } }, { "merchant_no": "EM-974-145-746", "business_name": "Test grpc", "business_logo": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvZWQzMDgzOGI5ZjAwLWdycGMucG5nIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogMjUwLCAiaGVpZ2h0IjogMjUwLCAiZml0IjogImNvbnRhaW4iLCAiYmFja2dyb3VuZCI6IHsiciI6IDAsICJnIjogMCwgImIiOiAwLCAiYWxwaGEiOiAwfX0sICJwbmciOiB7ImFkYXB0aXZlRmlsdGVyaW5nIjogdHJ1ZSwgInByb2dyZXNzaXZlIjogdHJ1ZSwgImZvcmNlIjogdHJ1ZX19fQ==", "business_type": "Partnership", "managed_by": { "first_name": "Md.", "last_name": "Al Amin", "username": "md.alamin" } } ] } ``` ## Merchant Details * **<core_base_url>/v2/admin/merchants/{merchant_no}/** ``` request_method--GET request_url: <core_base_url>/v2/admin/merchants/EM-483-097-319/ --header Authorization: bearer {token} No Request Body Required Example Response Body: { "merchant_no": "EM-483-097-319", "business_name": "Evaly Test Merchant for Dev", "business_logo": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/6caa92d844e5-img-20210222-wa0003.jpg", "business_type": "Partnership", "business_contact": null, "contact_number": null, "contact_email": null, "address": null, "trade_license": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/66f8ed24153e-fuz-2x.jpg", "bank_information": "{\"bank_name\":\"\",\"branch\":\"\",\"account_name\":\"\",\"account_number\":\"\",\"routing_number\":\"\"}", "managed_by": { "first_name": "Ishak", "last_name": "Ahammed", "username": "ishak" }, "verified": true } ``` ## Create Merchant * **<core_base_url>/v2/admin/merchants/** ``` request_method--POST --header Authorization: bearer {token} Example Request Body: { "merchant_no": "string", "business_name": "string", "business_logo": "string", "business_type": "Sole Proprietorship", "business_contact": "string", "contact_number": "string", "contact_email": "string", "address": "string", "trade_license": "string", "bank_information": "string", "verified": true, "status": "active", "managed_by": 0 } Example Response Body: { "merchant_no": "string", "business_name": "string", "business_logo": "string", "business_type": "Sole Proprietorship", "business_contact": "string", "contact_number": "string", "contact_email": "string", "address": "string", "trade_license": "string", "bank_information": "string", "verified": true, "status": "active", "managed_by": 0 } ``` ## Update Merchant * **<core_base_url>/v2/admin/merchants/{merchant_no}/** ``` request_method--PUT --header Authorization: bearer {token} Example Request Body: { "merchant_no": "string", "business_name": "string", "business_logo": "string", "business_type": "Sole Proprietorship", "business_contact": "string", "contact_number": "string", "contact_email": "string", "address": "string", "trade_license": "string", "bank_information": "string", "verified": true } Example Response Body: { "merchant_no": "string", "business_name": "string", "business_logo": "string", "business_type": "Sole Proprietorship", "business_contact": "string", "contact_number": "string", "contact_email": "string", "address": "string", "trade_license": "string", "bank_information": "string", "managed_by": "string", "verified": true } ``` ## Update Merchant * **<core_base_url>/v2/admin/merchants/{merchant_no}/** ``` request_method--PATCH --header Authorization: bearer {token} Example Request Body: { "merchant_no": "string", "business_name": "string", "business_logo": "string", "business_type": "Sole Proprietorship", "business_contact": "string", "contact_number": "string", "contact_email": "string", "address": "string", "trade_license": "string", "bank_information": "string", "verified": true } Example Response Body: { "merchant_no": "string", "business_name": "string", "business_logo": "string", "business_type": "Sole Proprietorship", "business_contact": "string", "contact_number": "string", "contact_email": "string", "address": "string", "trade_license": "string", "bank_information": "string", "managed_by": "string", "verified": true } ``` ## Delete Merchant * **<core_base_url>/v2/admin/merchants/{merchant_no}/** ``` request_method--DELETE --header Authorization: bearer {token} No Request Body Required Example Response Body: { "merchant_no": "EM-483-097-319", "business_name": "Evaly Test Merchant for Dev", "business_logo": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/6caa92d844e5-img-20210222-wa0003.jpg", "business_type": "Partnership", "business_contact": null, "contact_number": null, "contact_email": null, "address": null, "trade_license": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/66f8ed24153e-fuz-2x.jpg", "bank_information": "{\"bank_name\":\"\",\"branch\":\"\",\"account_name\":\"\",\"account_number\":\"\",\"routing_number\":\"\"}", "managed_by": { "first_name": "Ishak", "last_name": "Ahammed", "username": "ishak" }, "verified": true } ``` ## Bucket Listed Shop Items * **<core_base_url>/v2/admin/bucket-listed-shop-items** ``` request_method--GET request_url: <core_base_url>/bucket-listed-shop-items/?page=1&limit=2 --header Authorization: bearer {token} No Request Body Required Example Response Body: { "count": 22, "next": "http://127.0.0.1:8000/v2/admin/bucket-listed-shop-items/?limit=2&page=2", "previous": null, "results": [ { "id": 8784, "product_name": "Candy", "product_slug": "candy-b7d1ccfa6", "product_image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYjBjNDgwNjNjMWExLWRvd25sb2FkLTUuanBnIn0=" ], "variant_id": 527201, "category": "Candy & Chocolate", "brand": "CANDY", "shop_name": "Natural Aloe Vera for Aloe Vera Campaign", "shop_slug": "natural-aloe-vera-for-aloe-vera-campaign-34dbbd68", "shop_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYTc4YWQ3OTFkY2ZhLW1heHJlc2RlZmF1bHQtMS5qcGcifQ==", "price": 8000.0, "seller_price": 500.0, "discount": null, "discount_type": "percentage", "discounted_price": 2000.0, "status": "bucket_listed" }, { "id": 8780, "product_name": "KFC Crispy Wings", "product_slug": "kfc-crispy-wings-47a67b984", "product_image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMGRlN2EzMWMyMzZjLWtmYy02LXBjcy1ob3Qtd2luZ3MuanBnIn0=" ], "variant_id": 527197, "category": "Food Storage & Party", "brand": "test brand", "shop_name": "Candy Floss for campaign 14th july", "shop_slug": "candy-floss-for-campaign-14th-july-193c1374", "shop_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvM2JkYzA3MTFjOTUxLWNvbG9yZnVsLWZhaXJ5LWZsb3NzLXdoaXRlLWJ1Y2tldC1jb2xvcmZ1bC1mYWlyeS1mbG9zcy1jb3R0b24tY2FuZHktZm9ybS1zcHVuLXN1Z2FyLXdoaXRlLWJ1Y2tldC0xMjAxNjQzMjUuanBnIn0=", "price": 900.0, "seller_price": 876.0, "discount": null, "discount_type": "percentage", "discounted_price": null, "status": "bucket_listed" } ] } ``` ## Export Shop Items Bill * **<core_base_url>/v2/admin/billing/shops/{shop_slug}/shop-items/export/** ``` request_method--POST --header Authorization: bearer {token} Example Request Body: { "email":"m.hoque@evaly.com.bd" } Example Response Body: { "success": true, "message": "Shop items billing are being prepared for exporting. You will get an email when processing is complete" } ``` ## Shop Review List * **<core_base_url>/v2/admin/reviews/shops/{shop_slug}/** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Example Response Body: { "count": 0, "next": "http://example.com", "previous": "http://example.com", "results": [ { "id": 0, "user_name": "string", "phone": "string", "rating_text": "string", "rating_value": "string", "created_at": "2021-07-14T09:43:12Z", "time": "string", "is_approved": "string", "status": "pending", "profile_image": "string" } ] } ``` ## Approve Review * **<core_base_url>/v2/admin/approve-review/{id}/** ``` request_method--PUT --header Authorization: bearer {token} Example Request Body: { "status": "pending" } Example Response Body: { "id": 0, "user_name": "string", "phone": "string", "rating_text": "string", "rating_value": "string", "created_at": "2021-07-14T09:43:12Z", "time": "string", "is_approved": "string", "status": "pending", "profile_image": "string" } ``` ## Shop Analytics * **<core_base_url>/v2/admin/shops/sumaiya/analytics** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Example Response Body: { "success": true, "message": "Shop analytics fetched successfully", "data": [ { "status": "pending", "total_count": 0, "total_amount": 0.0, "income": 0.0 }, { "status": "cancel", "total_count": 0, "total_amount": 0.0, "income": 0.0 }, { "status": "delivered", "total_count": 0, "total_amount": 0.0, "income": 0.0 }, { "status": "processing", "total_count": 0, "total_amount": 0.0, "income": 0.0 }, { "status": "picked", "total_count": 0, "total_amount": 0.0, "income": 0.0 }, { "status": "shipped", "total_count": 0, "total_amount": 0.0, "income": 0.0 }, { "status": "confirmed", "total_count": 0, "total_amount": 0.0, "income": 0.0 } ] } ``` ## Shop wise Items * **<core_base_url>/v2/admin/shops/items/{shop_slug}/** ``` request_method--PUT request_url: <core_base_url>/v2/admin/shops/items/sumaiya/?page=1&limit=2 --header Authorization: bearer {token} No Request Body Required query params: { "brand_slug", "category_slug", "search", "max_price", "min_price" } Example Response Body: { "success": true, "message": "shops items fetched successfully", "count": 99, "data": { "shop": { "id": 280, "name": "Sumaiya", "owner_name": "01910000000", "slug": "sumaiya", "approved": false, "shop_delivery_options": [], "longitude": "90.36762889999999970", "latitude": "23.75181109999999052", "nid": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/5bdced186a98-images-1.jpg", "trade_license": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/811c6c15018f-imagev170129559c4fe6c35f9bbb5529d0076fa-mz4ujz2l1q6oakt7or2_t1880.jpg", "bank_info": null, "contact_number": "01302536774", "status": "active", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYWQ1OTQzZjYzZTgwLWltYWdlcy0yLmpwZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDkwMCwgImhlaWdodCI6IDM1MCwgImZpdCI6ICJmaWxsIn0sICJqcGVnIjogeyJxdWFsaXR5IjogNzV9fX0=", "logo_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/10ad4e0310df-phut_0.jpg", "address": "Dhanmondi 27 Police Box, 77 Old 27, Dhaka 1209, Bangladesh", "description": "wet", "shop_score": 1222222, "subscriber_count": 0, "is_express_shop": false, "is_cod_allowed": true, "is_delivery_hero_allowed": true, "express_service": null, "campaign": { "name": "QUICK TEST CAMP", "slug": "quick-test-camp-fdab31", "image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/764ae1dc656d-400x400.png", "category_name": "Mr. Quick Deal", "category_slug": "mr-quick-deal-1d2de849", "start_date": "2020-12-31T18:00:00Z", "end_date": "2022-01-26T18:00:00Z", "promotion_start_date": "2020-12-31T18:00:00Z", "promotion_end_date": "2022-01-24T18:00:00Z", "cashback_date": null, "cashback_type": "instant", "cashback_percentage": "0.00", "cashback_destination": "balance", "modified_at": "2021-06-07T07:22:57.220610Z", "modified_by": "Ishak Ahammed", "campaign_status": "live" }, "apply_delivery_charge": false, "delivery_charge": null, "commission_rate": null }, "groups": [], "subscribed": false, "subscriber_count": 0, "items": [ { "shop_item_slug": "polyurethane-handbag-bag-for-women-black-7688001-6828fecc0", "item_name": "Polyurethane Handbag Bag for Women - Black - 7688001", "shop_slug": "sumaiya", "item_price": 35333.0, "in_stock": 2, "stock_item": 0, "discounted_price": 35333.0, "discount_type": "flat", "item_images": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYjI0ZWM3MTM0NTc5LTc2ODgwMDEuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogMzUwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImNvbnRhaW4ifSwgImJhY2tncm91bmQiOiB7InIiOiAyNTUsICJnIjogMjU1LCAiYiI6IDI1NSwgImFscGhhIjogMX0sICJmbGF0dGVuIjogdHJ1ZSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==", "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNmUxZGZiZjA0NjRhLTc2ODgwMDFfMi5qcGciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAzNTAsICJoZWlnaHQiOiAzNTAsICJmaXQiOiAiY29udGFpbiJ9LCAiYmFja2dyb3VuZCI6IHsiciI6IDI1NSwgImciOiAyNTUsICJiIjogMjU1LCAiYWxwaGEiOiAxfSwgImZsYXR0ZW4iOiB0cnVlLCAianBlZyI6IHsicXVhbGl0eSI6IDc1fX19" ], "item_product_approved": 1, "item_product_status": "active", "variant_id": 525260, "category_name": "Handbag", "brand_name": "Individual Collections", "shop_item_id": 3539, "seller_price": 35332.0 }, { "shop_item_slug": "denim-long-sleeve-casual-shirt-for-men-dm-01-8ca674735", "item_name": "Denim Long Sleeve Casual Shirt for Men - DM-01", "shop_slug": "sumaiya", "item_price": 5464.0, "in_stock": 1, "stock_item": 0, "discounted_price": 5464.0, "discount_type": "flat", "item_images": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNDA2ZWI4MjVjYTlmLWRtLTAxLmpwZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDM1MCwgImhlaWdodCI6IDM1MCwgImZpdCI6ICJjb250YWluIn0sICJiYWNrZ3JvdW5kIjogeyJyIjogMjU1LCAiZyI6IDI1NSwgImIiOiAyNTUsICJhbHBoYSI6IDF9LCAiZmxhdHRlbiI6IHRydWUsICJqcGVnIjogeyJxdWFsaXR5IjogNzV9fX0=" ], "item_product_approved": 1, "item_product_status": "active", "variant_id": 525288, "category_name": "Men's Long Sleeve Casual Shirt", "brand_name": "Individual Collections", "shop_item_id": 3542, "seller_price": 5464.0 } ] } } ``` ## Shop Wise Categories * **<core_base_url>/v2/admin/shops/categories/{shop_slug}/** ``` request_method--PUT request_url: <core_base_url>/v2/admin/shops/categories/sumaiya/?page=1&limit=2 --header Authorization: bearer {token} No Request Body Required Example Response Body: { "success": true, "message": "shop categories fetched successfully", "count": 54, "data": [ { "category_slug": "111-e9c66e8d8", "category_name": "111", "shop_slug": "sumaiya", "shop_name": "Sumaiya", "shop_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/10ad4e0310df-phut_0.jpg", "category_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/de5442e39673-basues-speaker.jpg" }, { "category_slug": "a-test-category-c599dc31c", "category_name": "A Test Category", "shop_slug": "sumaiya", "shop_name": "Sumaiya", "shop_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/10ad4e0310df-phut_0.jpg", "category_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/3326250fdc7e-basues-speaker.jpg" } ] } ``` ## Enlist Shop Item * **<core_base_url>/v2/admin/custom/shops/add/item/{shop_slug}** ``` request_method--POST request_url: <core_base_url>/v2/admin/custom/shops/add/item/sumaiya --header Authorization: bearer {token} Request Body: { "product_items":[ { "id":"527171", "in_stock":1000, "price":"8000", "maintain_stock":true, "wholesale_price":"5000", "seller_price":"1000" } ], "discount": { "discount_type":"flat", "discount_value":0 } } Example Response Body: { "success": true, "message": "shop items added successfully", "data": [ { "id": 8736, "shop": 280, "product_variant": 527171, "price": "8000.00", "seller_price": "1000.00", "in_stock": 1000, "status": "active", "wholesale_price": "5000.00", "discount": "0.00", "discount_type": "flat", "discounted_price": "8000.00", "minimum_wholesale_quantity": 100, "stock_item": true } ] } ``` ## Remove Shop Item * **<core_base_url>/v2/admin/remove-shop-item/{shop_item_id}/** ``` request_method--PUT request_url: <core_base_url>/v2/admin/remove-shop-item/8757/ --header Authorization: bearer {token} No Request Body Required Example Response Body: { "success": true, "message": "shop item removed successfully" } ``` ## Bulk export bucket list items * **<core_base_url>/v2/admin/bulk-export-bucket-listed-items/{campaign_slug}** ``` request_method--POST request_url: <core_base_url>/v2/admin/bulk-export-bucket-listed-items/thunderstorm-27-june-d50f24 --header Authorization: bearer {token} Example Request Body: { "email":"m.hoque@evaly.com.bd" } extra request body data: ['shop_slug'] Example Response Body: { "success": true, "message": "bucket listed items exported successfully, please check your email" } ``` ## bulk upload appvored bucket list items * **<core_base_url>/v2/admin/bulk-upload-bucket-list-approved-items** ``` request_method--POST request_url: <core_base_url>/v2/admin/bulk-upload-bucket-list-approved-items --header Authorization: bearer {token} Example Request Body: { "email":"m.hoque@evaly.com.bd", "file": "excel_file" } Example Response Body: { "success": true, "message": "Request is being processed. you will receive an email when the processing is complete." } ``` ## Campaign All Products * **<core_base_url>/v2/admin/campaign-all-products/{campaign_slug}/** ``` request_method--GET request_url: <core_base_url>/v2/admin/campaign-all-products/automation-cyclone11-8a0e7a/?page=1&limit=2 --header Authorization: bearer {token} No Request Body Required Query Params: { 'search', 'status', 'min_prcie', 'max_price', 'brand', 'category' } Example Response Body: { "count": 8, "next": "http://api-dev.evaly.com.bd/admin/campaign-all-products/automation-cyclone11-8a0e7a/?limit=2&page=2", "previous": null, "results": [ { "shop_item_id": 8655, "product_id": 425161, "product_name": "football2", "product_slug": "football2-eb0ad05c1", "product_image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvZjZkN2IyYzk2OWQ3LWltYWdlcy0yLmpwZyJ9" ], "category_name": "football", "shop_name": "test shop for Automation Cyclone11", "shop_slug": "test-shop-for-automation-cyclone11-28a9da2e", "seller_price": 4925.0, "price": 4945.0, "discount_type": "percentage", "discounted_price": 3956.0, "discount": 20.0, "status": "active" }, { "shop_item_id": 8656, "product_id": 425168, "product_name": "applee", "product_slug": "applee-776fde4e7", "product_image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNWU5YTk4ZjNhMzlmLWRvd25sb2FkLTUuanBnIn0=" ], "category_name": "appleee", "shop_name": "test shop for Automation Cyclone11", "shop_slug": "test-shop-for-automation-cyclone11-28a9da2e", "seller_price": 4925.0, "price": 4945.0, "discount_type": "percentage", "discounted_price": 4450.5, "discount": 10.0, "status": "active" } ] } ``` ## Campaign Live Products * **<core_base_url>/v2/admin/campaign-live-products/{campaign_slug}/** ``` request_method--GET request_url: <core_base_url>/v2/admin/campaign-live-products/banana-beans-0be944/?page=1&limit=2 --header Authorization: bearer {token} No Request Body Required Query Params: { 'search', 'status', 'min_prcie', 'max_price', 'brand', 'category' } Example Response Body: { "count": 5, "next": "http://127.0.0.1:8000/v2/admin/campaign-live-products/banana-beans-0be944/?limit=2&page=2", "previous": null, "results": [ { "shop_item_id": 8706, "product_id": 425580, "product_name": "test pro223", "product_slug": "test-pro223-b78bce073", "product_image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYTJjNWRlNTFhMjRhLWRvd25sb2FkLTIuanBnIn0=" ], "category_name": "Coffee", "shop_name": "test primaryshop element for Banana beans", "shop_slug": "test-primaryshop-element-for-banana-beans-19f82cbd", "seller_price": 1000.0, "price": 8000.0, "discount_type": "percentage", "discounted_price": 7200.0, "discount": 10.0, "status": "active" }, { "shop_item_id": 8720, "product_id": 425584, "product_name": "T10 Campaign", "product_slug": "t10-campaign-fc28b6f10", "product_image_urls": [ "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMjVmNzcwYTY5MzkwLTIwMTktMDgtMDRfMDY0NzQ2NDc2OTgzc2Vuc29keW5lX3Bhc3RlX2ZyZXNoX21pbnRfMTUwZ20uanBnIn0=", "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvZDBkZDhhNzEwYjc5LTQwYzE2ODg5Xzc2Y2UuanBlZyJ9" ], "category_name": "Cyclone Category", "shop_name": "test primaryshop element for Banana beans", "shop_slug": "test-primaryshop-element-for-banana-beans-19f82cbd", "seller_price": 500.0, "price": 800.0, "discount_type": "percentage", "discounted_price": 264.0, "discount": 67.0, "status": "active" } ] } ``` ## Last campaign product price * **<core_base_url>/v2/admin/last-campaign-product-price/{campaign_slug}/{variant_id}** ``` request_method--GET request_url: <core_base_url>/v2/admin/the-aila-deal-60b802/525228 --header Authorization: bearer {token} No Request Body Required Example Response Body: { "success": true, "message": "campaign product price fetched successfully", "data": [ { "campaign_name": "Exclusive deal", "price": 454.0 } ] } ``` ## Campaign Product Categories * **<core_base_url>/v2/admin/campaign-products-categories/{campaign_slug}/** ``` request_method--GET request_url: <core_base_url>/v2/admin/campaign-products-categories/evaly-foorti-0bf95c/?type=live-products --header Authorization: bearer {token} No Request Body Required Query Params: { type= live-products type= bucket-list } Example Response Body: { "count": 28, "next": "http://127.0.0.1:8000/v2/admin/campaign-products-categories/evaly-foorti-0bf95c/?limit=2&page=2&type=live-products", "previous": null, "results": [ { "name": "Grocery", "slug": "grocery-f93e6cdf1", "image_url": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNTJiMGJmYjRkNjNiLWdyb2NlcnkucG5nIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogMjUwLCAiaGVpZ2h0IjogMjUwLCAiZml0IjogImNvbnRhaW4iLCAiYmFja2dyb3VuZCI6IHsiciI6IDAsICJnIjogMCwgImIiOiAwLCAiYWxwaGEiOiAwfX0sICJwbmciOiB7ImFkYXB0aXZlRmlsdGVyaW5nIjogdHJ1ZSwgInByb2dyZXNzaXZlIjogdHJ1ZSwgImZvcmNlIjogdHJ1ZX19fQ==" }, { "name": "Crime and Communities", "slug": "crime-and-communities-7fd299f01", "image_url": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJ3YXRlcm1hcmtlZC8yMDE4LTA0LTA2XzE5MzQzNi45MzI2NzljcmltZS1hbmQtY29tbXVuaXRpZXM1YTkzZWQ1OGMyMTNjLWJnLmpwZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDI1MCwgImhlaWdodCI6IDI1MCwgImZpdCI6ICJjb250YWluIiwgImJhY2tncm91bmQiOiB7InIiOiAwLCAiZyI6IDAsICJiIjogMCwgImFscGhhIjogMH19LCAicG5nIjogeyJhZGFwdGl2ZUZpbHRlcmluZyI6IHRydWUsICJwcm9ncmVzc2l2ZSI6IHRydWUsICJmb3JjZSI6IHRydWV9fX0=" } ] .............. } ``` ## Remove all varinats of a Product from Shop * **<core_base_url>/v2/admin/remove-shop-item/variants/product/{product_slug}/?shop={shop_slug}** ``` request_method--PUT --header Authorization: bearer {token} No Request Body Required Example Response Body: { "success": true, "message": "All product variants removed from shop" } ``` ## Clone Shop Items * **<core_base_url>/v2/admin/clone-shop-items/** ``` request_method--POST --header Authorization: bearer {token} Example Request Body: { "from_shop":"sumaiya", "to_shop":"watch-4" } Example Response Body: { "message": "shop item cloned successfully from Sumaiya to Watch test" } ``` ## Archive Shop Item * **<core_base_url>/v2/admin/archive-shop-item/{shop_slug}/** ``` request_method--PUT --header Authorization: bearer {token} No Request Body Required Example Response Body: { "message": "shop item archived successfully" } ``` ## Shop Payment List * **<core_base_url>/v2/admin/shop-payments/** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Query Params: { 'start_date', 'end_date', 'shop' } Example Response Body: { "count": 0, "next": "http://example.com", "previous": "http://example.com", "results": [ { "id": 0, "shop": "string", "amount": "string", "payment_date": "2021-07-15T10:25:12Z" } ] } ``` ## Shop Payment Details * **<core_base_url>/v2/admin/shop-payments/{id}/** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Example Response Body: { "id": 0, "shop": "string", "amount": "string", "signed_by": "string", "payment_method": "cash", "payment_date": "2021-07-15T10:25:11Z", "payment_note": "string" } ``` ## Create Shop Payment * **<core_base_url>/v2/admin/shop-payments/** ``` request_method--POST --header Authorization: bearer {token} Example Request Body: { "amount": "string", "payment_method": "cash", "payment_note": "string" } Example Response Body: { "id": 0, "shop": "string", "amount": "string", "signed_by": "string", "payment_method": "cash", "payment_date": "2021-07-15T10:25:12Z", "payment_note": "string" } ``` ## Delete Shop Payment * **<core_base_url>/v2/admin/shop-payments/{id}/** ``` request_method--DELETE --header Authorization: bearer {token} No Request Body Required Example Response Body: { "id": 0, "shop": "string", "amount": "string", "signed_by": "string", "payment_method": "cash", "payment_date": "2021-07-15T10:25:11Z", "payment_note": "string" } ``` ## Shop Bills List * **<core_base_url>/v2/admin/shop-bills/** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Query Params: { 'start_date', 'end_date', 'shop', 'bill_status' } Example Response Body: { "count": 0, "next": "http://example.com", "previous": "http://example.com", "results": [ { "id": 0, "shop": "string", "amount": "string", "bill_reference": "string", "bill_status": "paid", "created_at": "2021-07-15T10:25:11Z" } ] } ``` ## Shop Bill Details * **<core_base_url>/v2/admin/shop-bills/{id}/** ``` request_method--GET --header Authorization: bearer {token} No Request Body Required Example Response Body: { "id": 0, "shop": "string", "amount": "string", "status": "active", "bill_type": "order_delivered", "bill_status": "paid", "bill_reference": "string", "bill_note": "string", "paid": "string", "created_by": 0, "created_at": "2021-07-15T10:25:11Z" } ``` ## Update Shop Bill Payment * **<core_base_url>/v2/admin/shop-bill-payment/{bill_reference}/** ``` request_method--PUT --header Authorization: bearer {token} Example Request Body: { "payment_method":"cash" } Example Response Body: { "success": true, "message": "shop bill payment updated successfully", "data": { "id": 0, "shop": "string", "amount": "string", "status": "active", "bill_type": "order_delivered", "bill_status": "paid", "bill_reference": "string", "bill_note": "string", "paid": "string", "created_by": 0, "created_at": "2021-07-15T10:25:11Z" } } ``` ## Shop Details * **<core_base_url>/v2/admin/shops/{shop_slug}/** ``` request_method--GET request_url: <core_base_url>/v2/admin/shops/watch-4/ --header Authorization: bearer {token} No Request Body Requred Example Response Body: { "id": 1015, "name": "Watch test", "owner_name": "ishak", "slug": "watch-4", "approved": true, "shop_delivery_options": [], "longitude": "0.00000000000000000", "latitude": "0.00000000000000000", "nid": null, "trade_license": null, "bank_info": null, "contact_number": "01326300967", "status": "active", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvOTVkMWY2NTQzMjA1LUVjb21tZXJjZV9CYW5uZXIucG5nIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==", "logo_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/8d5a33aa15a7-jamaican-me-crazy-roasted-chicken-drumsticks-3_web-1024x683.jpg", "address": "Dhaka99", "description": "ee", "shop_score": 24, "subscriber_count": 0, "is_express_shop": false, "is_cod_allowed": true, "is_delivery_hero_allowed": false } ``` ## Delete Shop * **<core_base_url>/v2/admin/shops/{shop_slug}/** ``` request_method--DELETE request_url: <core_base_url>/v2/admin/shops/watch-4/ --header Authorization: bearer {token} No Request Body Requred Example Response Body: { "id": 1015, "name": "Watch test", "owner_name": "ishak", "slug": "watch-4", "approved": true, "shop_delivery_options": [], "longitude": "0.00000000000000000", "latitude": "0.00000000000000000", "nid": null, "trade_license": null, "bank_info": null, "contact_number": "01326300967", "status": "archived", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvOTVkMWY2NTQzMjA1LUVjb21tZXJjZV9CYW5uZXIucG5nIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==", "logo_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/8d5a33aa15a7-jamaican-me-crazy-roasted-chicken-drumsticks-3_web-1024x683.jpg", "address": "Dhaka99", "description": "ee", "shop_score": 24, "subscriber_count": 0, "is_express_shop": false, "is_cod_allowed": true, "is_delivery_hero_allowed": false } ``` ## Billing List * **<core_base_url>/v2/admin/billing/shops/?page=1&limit=2** ``` request_method--GET request_url: <core_base_url>/v2/admin/billing/shops/?page=1&limit=2 --header Authorization: bearer {token} No Request Body Requred optional request body data: { "express_service", "campaign", "approved", "merchant_no" } Example Response Body: { "count": 906, "next": "http://127.0.0.1:8000/v2/admin/billing/shops/?limit=2&page=2", "previous": null, "results": [ { "name": "Robo Make", "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYTRhNDdiMTQyYzk3LW5ld2ZpbGUuanBlZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDI1MCwgImhlaWdodCI6IDI1MCwgImZpdCI6ICJjb250YWluIiwgImJhY2tncm91bmQiOiB7InIiOiAwLCAiZyI6IDAsICJiIjogMCwgImFscGhhIjogMH19LCAicG5nIjogeyJhZGFwdGl2ZUZpbHRlcmluZyI6IHRydWUsICJwcm9ncmVzc2l2ZSI6IHRydWUsICJmb3JjZSI6IHRydWV9fX0=", "slug": "robo-make-121f83df", "approved": false, "contact_number": "01937498798", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvZDM5MGZmZTMwMmJhLWltYWdlcy0xMC5qcGciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiA5MDAsICJoZWlnaHQiOiAzNTAsICJmaXQiOiAiZmlsbCJ9LCAianBlZyI6IHsicXVhbGl0eSI6IDc1fX19", "owner": { "username": "01623432200", "first_name": "Yusuf", "last_name": "Pathan" }, "address": "62 Shaheed Tajuddin Ahmed Ave, Dhaka 1212, Bangladesh", "merchant": null }, { "name": "KFC Banani Priority Store", "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvODRiYjVkMzIwODcxLW5ld2ZpbGUuanBlZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDI1MCwgImhlaWdodCI6IDI1MCwgImZpdCI6ICJjb250YWluIiwgImJhY2tncm91bmQiOiB7InIiOiAwLCAiZyI6IDAsICJiIjogMCwgImFscGhhIjogMH19LCAicG5nIjogeyJhZGFwdGl2ZUZpbHRlcmluZyI6IHRydWUsICJwcm9ncmVzc2l2ZSI6IHRydWUsICJmb3JjZSI6IHRydWV9fX0=", "slug": "kfc-banani-priority-store-18ff9e5", "approved": true, "contact_number": "01795733917", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvODA5YjY2MTEzNDJlLWRvd25sb2FkLnBuZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDkwMCwgImhlaWdodCI6IDM1MCwgImZpdCI6ICJmaWxsIn0sICJqcGVnIjogeyJxdWFsaXR5IjogNzV9fX0=", "owner": { "username": "01795733917", "first_name": "Mr. Abu", "last_name": "Kalam" }, "address": "Banani Model Town, Dhaka, Bangladesh", "merchant": null } ] } ``` ## Shop wise billings * **<core_base_url>/v2/admin/billing/shops/{shop_slug}** ``` request_method--PUT/PATCH --header Authorization: bearer {token} Example Request Body: { "name": "string", "slug": "string", "approved": true, "longitude": "string", "latitude": "string", "nid": "string", "trade_license": "string", "bank_info": "string", "contact_number": "string", "status": "active", "logo_image": "string", "address": "string", "description": "string", "commission_rate": 0 } Example Response Body: { "{ "count": 0, "next": "http://example.com", "previous": "http://example.com", "results": [ { "id": 0, "product_name": "string", "product_attributes": "string", "currently_enlisted": "string", "available_for_sale": "string", "price": 0, "seller_price": 0, "wholesale_price": 0, "minimum_wholesale_quantity": -2147483648, "discount": 0, "discount_type": "percentage", "discounted_price": 0, "commission_rate": 0 } ] }name": "string", "owner": "string", "slug": "string", "approved": true, "shop_delivery_options": "string", "longitude": "string", "latitude": "string", "nid": "string", "trade_license": "string", "bank_info": "string", "contact_number": "string", "status": "active", "image": "string", "logo_image": "string", "address": "string", "description": "string", "order_stats": "string", "commission_rate": 0, "merchant": "string" } ``` ## Elogistic Shop List * **<core_base_url>/v2/admin/elogistics/admin/shops/** ``` request_method--PUT/PATCH request_url: <core_base_url>/v2/admin/elogistics/admin/shops/?page=1&limit=2 --header Authorization: bearer {token} No Request Body body required Example Response Body: { "count": 907, "next": "http://127.0.0.1:8000/v2/admin/elogistics/admin/shops/?limit=2&page=2", "previous": null, "results": [ { "name": "KFC Banani Priority Store", "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvODRiYjVkMzIwODcxLW5ld2ZpbGUuanBlZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDI1MCwgImhlaWdodCI6IDI1MCwgImZpdCI6ICJjb250YWluIiwgImJhY2tncm91bmQiOiB7InIiOiAwLCAiZyI6IDAsICJiIjogMCwgImFscGhhIjogMH19LCAicG5nIjogeyJhZGFwdGl2ZUZpbHRlcmluZyI6IHRydWUsICJwcm9ncmVzc2l2ZSI6IHRydWUsICJmb3JjZSI6IHRydWV9fX0=", "slug": "kfc-banani-priority-store-18ff9e5", "approved": true, "contact_number": "01795733917", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvODA5YjY2MTEzNDJlLWRvd25sb2FkLnBuZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDkwMCwgImhlaWdodCI6IDM1MCwgImZpdCI6ICJmaWxsIn0sICJqcGVnIjogeyJxdWFsaXR5IjogNzV9fX0=", "is_express_shop": true, "is_delivery_hero_allowed": true }, { "name": "All About Robo for Robo Cyclone", "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvOTU5MzQxZTI2MWNkLW5ld2ZpbGUuanBlZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDI1MCwgImhlaWdodCI6IDI1MCwgImZpdCI6ICJjb250YWluIiwgImJhY2tncm91bmQiOiB7InIiOiAwLCAiZyI6IDAsICJiIjogMCwgImFscGhhIjogMH19LCAicG5nIjogeyJhZGFwdGl2ZUZpbHRlcmluZyI6IHRydWUsICJwcm9ncmVzc2l2ZSI6IHRydWUsICJmb3JjZSI6IHRydWV9fX0=", "slug": "all-about-robo-for-robo-cyclone-15955d85", "approved": true, "contact_number": "01632765322", "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvZjhlYmIxMjUyNzNjLTIxLWFwcmlsX3BlcHBlci10aGUtcm9ib3QuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==", "is_express_shop": false, "is_delivery_hero_allowed": false } ] } ``` ## Shop item wise billing List * **<core_base_url>/v2/admin/billing/shops/{shop_slug}/shop-items** ``` request_method--GET --header Authorization: bearer {token} No Request Body body required Example Response Body: { "count": 0, "next": "http://example.com", "previous": "http://example.com", "results": [ { "id": 0, "product_name": "string", "product_attributes": "string", "currently_enlisted": "string", "available_for_sale": "string", "price": 0, "seller_price": 0, "wholesale_price": 0, "minimum_wholesale_quantity": -2147483648, "discount": 0, "discount_type": "percentage", "discounted_price": 0, "commission_rate": 0 } ] } ``` ## Shop item wise billing Details * **<core_base_url>/v2/admin/billing/shops/{shop_slug}/shop-items/{id}** ``` request_method--GET --header Authorization: bearer {token} No Request Body body required Example Response Body: { "id": 0, "product_name": "string", "product_attributes": "string", "product_image_urls": "string", "currently_enlisted": "string", "available_for_sale": "string", "price": 0, "seller_price": 0, "wholesale_price": 0, "minimum_wholesale_quantity": -2147483648, "discount": 0, "discount_type": "percentage", "discounted_price": 0, "commission_rate": 0 } ``` ## Update Shop item wise billing * **<core_base_url>/v2/admin/billing/shops/{shop_slug}/shop-items/{id}** ``` request_method--PUT/PATCH --header Authorization: bearer {token} Example Request Body: { "price": 0, "seller_price": 0, "wholesale_price": 0, "minimum_wholesale_quantity": -2147483648, "discount": 0, "discount_type": "percentage", "discounted_price": 0, "commission_rate": 0 } Example Response Body: { "id": 0, "product_name": "string", "product_attributes": "string", "product_image_urls": "string", "currently_enlisted": "string", "available_for_sale": "string", "price": 0, "seller_price": 0, "wholesale_price": 0, "minimum_wholesale_quantity": -2147483648, "discount": 0, "discount_type": "percentage", "discounted_price": 0, "commission_rate": 0 } ```