---
# System prepended metadata

title: Evaly Core Order Module Admin V2 API's

---

# Evaly Core Order Module Admin V2 API's

```
<core_base_url> == https://api-beta.evaly.com.bd/core 
```

### End Points

## Update Order Status - admin - regular forward backword
except cancelation

options for `order_status`: anything but cancel and  can't revert delevered order.



```bash=
curl --request PUT \
  --url http://localhost:8000/v2/admin/orders/update/status/EVL523187228/ \
  --header 'Accept: application/json, text/plain, */*' \
  --header 'Accept-Language: en-US,en;q=0.9' \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlzaGFrIiwiZ3JvdXBzIjpbIlZvdWNoZXJWaWV3ZXIiLCJOb3RlRW50cnkiLCJDaGF0TWFuYWdlciIsIk5vdGVNYW5hZ2VyIiwiZWJhemFyTWFuYWdlciIsIkJ1bGtBZG1pbiIsIk9yZGVyTWFuYWdlciIsIkNhbXBhaWduTWFuYWdlciIsIkNhbXBhaWduQWRtaW4iLCJCcmFuZE1hbmFnZXIiLCJQcm9kdWN0TWFuYWdlciIsIkNoYXRBZG1pbiIsIkVmb29kTWFuYWdlciIsIkFjY291bnRzQWRtaW4iLCJTaG9wT3duZXIiLCJCYWxhbmNlTWFuYWdlciIsIkVmb29kQ3VzdG9tZXJTZXJ2aWNlIiwiRWZvb2RBZG1pbiIsIkRhdGFFeHBvcnRlciIsIkFwcG9pbnRtZW50QWRtaW4iLCJDYXRlZ29yeU1hbmFnZXIiLCJFa2hhdGFBZG1pbiIsIkVmb29kQ29udGVudE1hbmFnZXIiLCJFdmFseUVtcGxveWVlIiwiVGVjaFN1cHBvcnQiLCJTaG9wTWFuYWdlciIsIkNhc2hiYWNrQWRtaW4iLCJlYmF6YXJBZG1pbiIsIklzc3VlUmVzb2x1dGlvbk1hbmFnZXIiLCJPcmRlclN0YXR1c1VwZGF0ZSIsIlByb2R1Y3RBZG1pbiIsIkhlcm9NYW5hZ2VyIiwiVm91Y2hlckFkbWluIiwiRWZvb2RDb250ZW50QWRtaW4iLCJJc3N1ZVJlc29sdXRpb25BZG1pbiIsIlZvdWNoZXJNYW5hZ2VyIiwiTm90aWZpY2F0aW9uTWFuYWdlciIsIk9yZGVyQ2FuY2VsIiwiQ29tcGFueUFkbWluIiwiRWpvYnNFdmFseUFkbWluIiwiQnVsa1Blcm1pc3Npb24iLCJSZXN0YXVyYW50T3duZXIiLCJTaG9wQWRtaW4iLCJPcmRlckFkbWluIiwiVGVjaEFkbWluIiwiQ29tcGFueU1hbmFnZXIiLCJBY2NvdW50c01hbmFnZXIiLCJSZWZ1bmRNYW5hZ2VyIiwiSFJNYW5hZ2VyIiwiRW1wbG95ZWVNYW5hZ2VyIiwiQXNzZXRNYW5hZ2VyIiwiSFJBZG1pbiIsIkhlcm9BZG1pbiIsIlRlYW1NYW5hZ2VyIiwiUHJpb3JpdHlPcmRlck1hbmFnZXIiXSwiZmlyc3RfbmFtZSI6IklzaGFrIiwibGFzdF9uYW1lIjoiQWhhbW1lZCIsImlzX3N0YWZmIjp0cnVlLCJpc19hY3RpdmUiOnRydWUsImlzX3N1cGVydXNlciI6dHJ1ZSwidmVyaWZpZWQiOnRydWUsInVzZXJfdHlwZSI6ImVtcGxveWVlIiwidXNlcl9zdGF0dXMiOiJhY3RpdmUiLCJlbWFpbCI6ImlzaGFrQGV2YWx5LmNvbS5iZCIsImNvbnRhY3QiOiIwMTMyNDgyMzQuLiIsImRhdGVfam9pbmVkIjoiMjAxOS0wOC0yOVQxMjoxMDozOFoiLCJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiaXNfZWF1dGgiOnRydWUsImV4cCI6MTYyNzQ4NjA2NX0.NymmTvslgkB2BDTbegphyfuWqx66JgnAjIJgP2BCNrA' \
  --header 'Connection: keep-alive' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --header 'Origin: https://admin-dev.evaly.com.bd' \
  --header 'Referer: https://admin-dev.evaly.com.bd/' \
  --header 'Sec-Fetch-Dest: empty' \
  --header 'Sec-Fetch-Mode: cors' \
  --header 'Sec-Fetch-Site: same-site' \
  --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36' \
  --header 'sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"' \
  --header 'sec-ch-ua-mobile: ?0' \
  --data '{
	"user_note": "Product is picked to evaly warehouse.",
	"order_status": "picked"
}'
```
**response**
```json=
{
  "success": true,
  "data": {
    "id": 6595,
    "invoice_no": "EVL523187228",
    "order_items": [
      {
        "id": 7791,
        "shop_item": 3499,
        "quantity": 1,
        "item_name": "Dress Dress",
        "variations": [],
        "order_item_status": "delivered",
        "order_time_price": "400.00",
        "product_slug": "dress-c4353b3a5",
        "item_images": [
          "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/1aa2899e8e01-291710-1252219.jpg"
        ],
        "in_stock": 126
      }
    ],
    "customer": {
      "id": 20,
      "username": "01521200079",
      "first_name": "Ishak",
      "last_name": "Ahammed",
      "email": "ishakahammed",
      "gender": "male",
      "verified": false,
      "is_active": true
    },
    "customer_address": "oafhiofhpooh, Palash, Narsingdi, Dhaka",
    "contact_number": "01521200079",
    "shop": {
      "name": "Test Shop Joker",
      "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNWQ1YTkzNWYzNDNmLWpva2VyLXRyYWlsZXIuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogMjUwLCAiaGVpZ2h0IjogMjUwLCAiZml0IjogImNvbnRhaW4iLCAiYmFja2dyb3VuZCI6IHsiciI6IDAsICJnIjogMCwgImIiOiAwLCAiYWxwaGEiOiAwfX0sICJwbmciOiB7ImFkYXB0aXZlRmlsdGVyaW5nIjogdHJ1ZSwgInByb2dyZXNzaXZlIjogdHJ1ZSwgImZvcmNlIjogdHJ1ZX19fQ==",
      "slug": "test-shop-joker",
      "approved": true,
      "contact_number": "01521200070",
      "is_delivery_hero_allowed": false,
      "is_cod_allowed": false,
      "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMTI5NTY4NGU5YjhiLTA1LmpwZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDkwMCwgImhlaWdodCI6IDM1MCwgImZpdCI6ICJmaWxsIn0sICJqcGVnIjogeyJxdWFsaXR5IjogNzV9fX0=",
      "address": "Evaly.com.bd, House #8 1st Floor, Road: 14, Dhaka 1209, Bangladesh",
      "owner_name": "01977537988"
    },
    "order_status": "picked",
    "payment_method": "sslcommerz_gateway",
    "payment_status": "paid",
    "total": "400.00",
    "subtotal": "400.00",
    "paid_amount": "400.00",
    "status": "active",
    "date": "2021-07-27T16:14:20.523554Z",
    "shop_groups": [],
    "delivery_confirmed": false,
    "delivery_confirmation_required": false,
    "campaign_rules": [],
    "is_express_order": false,
    "express_service_details": null,
    "customer_note": null,
    "last_update": "2021-07-28T14:27:46.935866Z",
    "allowed_payment_methods": [
      "balance",
      "gift_code",
      "sslcommerz_gateway",
      "citybank_gateway",
      "sebl_gateway",
      "bkash",
      "bank",
      "nagad",
      "upay_gateway"
    ],
    "apply_delivery_charge": false,
    "delivery_charge": null,
    "attachments": [],
    "is_delivery_hero_allowed": false,
    "payment_offer_selected": "nagad_discount",
    "maintain_by": "evaly"
  }
}
```

## update delivered order status -admin and regular forward backword
except cancel
```bash=
curl --request PUT \
  --url http://localhost:8000/v2/admin/orders/update_delivered_order/status/EVL523187228/ \
  --header 'Accept: application/json, text/plain, */*' \
  --header 'Accept-Language: en-US,en;q=0.9' \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlzaGFrIiwiZ3JvdXBzIjpbIlZvdWNoZXJWaWV3ZXIiLCJOb3RlRW50cnkiLCJDaGF0TWFuYWdlciIsIk5vdGVNYW5hZ2VyIiwiZWJhemFyTWFuYWdlciIsIkJ1bGtBZG1pbiIsIk9yZGVyTWFuYWdlciIsIkNhbXBhaWduTWFuYWdlciIsIkNhbXBhaWduQWRtaW4iLCJCcmFuZE1hbmFnZXIiLCJQcm9kdWN0TWFuYWdlciIsIkNoYXRBZG1pbiIsIkVmb29kTWFuYWdlciIsIkFjY291bnRzQWRtaW4iLCJTaG9wT3duZXIiLCJCYWxhbmNlTWFuYWdlciIsIkVmb29kQ3VzdG9tZXJTZXJ2aWNlIiwiRWZvb2RBZG1pbiIsIkRhdGFFeHBvcnRlciIsIkFwcG9pbnRtZW50QWRtaW4iLCJDYXRlZ29yeU1hbmFnZXIiLCJFa2hhdGFBZG1pbiIsIkVmb29kQ29udGVudE1hbmFnZXIiLCJFdmFseUVtcGxveWVlIiwiVGVjaFN1cHBvcnQiLCJTaG9wTWFuYWdlciIsIkNhc2hiYWNrQWRtaW4iLCJlYmF6YXJBZG1pbiIsIklzc3VlUmVzb2x1dGlvbk1hbmFnZXIiLCJPcmRlclN0YXR1c1VwZGF0ZSIsIlByb2R1Y3RBZG1pbiIsIkhlcm9NYW5hZ2VyIiwiVm91Y2hlckFkbWluIiwiRWZvb2RDb250ZW50QWRtaW4iLCJJc3N1ZVJlc29sdXRpb25BZG1pbiIsIlZvdWNoZXJNYW5hZ2VyIiwiTm90aWZpY2F0aW9uTWFuYWdlciIsIk9yZGVyQ2FuY2VsIiwiQ29tcGFueUFkbWluIiwiRWpvYnNFdmFseUFkbWluIiwiQnVsa1Blcm1pc3Npb24iLCJSZXN0YXVyYW50T3duZXIiLCJTaG9wQWRtaW4iLCJPcmRlckFkbWluIiwiVGVjaEFkbWluIiwiQ29tcGFueU1hbmFnZXIiLCJBY2NvdW50c01hbmFnZXIiLCJSZWZ1bmRNYW5hZ2VyIiwiSFJNYW5hZ2VyIiwiRW1wbG95ZWVNYW5hZ2VyIiwiQXNzZXRNYW5hZ2VyIiwiSFJBZG1pbiIsIkhlcm9BZG1pbiIsIlRlYW1NYW5hZ2VyIiwiUHJpb3JpdHlPcmRlck1hbmFnZXIiXSwiZmlyc3RfbmFtZSI6IklzaGFrIiwibGFzdF9uYW1lIjoiQWhhbW1lZCIsImlzX3N0YWZmIjp0cnVlLCJpc19hY3RpdmUiOnRydWUsImlzX3N1cGVydXNlciI6dHJ1ZSwidmVyaWZpZWQiOnRydWUsInVzZXJfdHlwZSI6ImVtcGxveWVlIiwidXNlcl9zdGF0dXMiOiJhY3RpdmUiLCJlbWFpbCI6ImlzaGFrQGV2YWx5LmNvbS5iZCIsImNvbnRhY3QiOiIwMTMyNDgyMzQuLiIsImRhdGVfam9pbmVkIjoiMjAxOS0wOC0yOVQxMjoxMDozOFoiLCJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiaXNfZWF1dGgiOnRydWUsImV4cCI6MTYyNzQ4NjQxNn0.jiwgfkH3m6cKT2re3-vp5Yb_-6QhRENu9e3cp_RgXf8' \
  --header 'Connection: keep-alive' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --header 'Origin: https://admin-dev.evaly.com.bd' \
  --header 'Referer: https://admin-dev.evaly.com.bd/' \
  --header 'Sec-Fetch-Dest: empty' \
  --header 'Sec-Fetch-Mode: cors' \
  --header 'Sec-Fetch-Site: same-site' \
  --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36' \
  --header 'sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"' \
  --header 'sec-ch-ua-mobile: ?0' \
  --data '{
	"user_note": "Product is picked to evaly warehouse.",
	"order_status": "shipped"
}'
```
**result:**
```json=
{
  "success": true,
  "data": {
    "id": 6595,
    "invoice_no": "EVL523187228",
    "order_items": [
      {
        "id": 7791,
        "shop_item": 3499,
        "quantity": 1,
        "item_name": "Dress Dress",
        "variations": [],
        "order_item_status": "delivered",
        "order_time_price": "400.00",
        "product_slug": "dress-c4353b3a5",
        "item_images": [
          "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/1aa2899e8e01-291710-1252219.jpg"
        ],
        "in_stock": 126
      }
    ],
    "customer": {
      "id": 20,
      "username": "01521200079",
      "first_name": "Ishak",
      "last_name": "Ahammed",
      "email": "ishakahammed",
      "gender": "male",
      "verified": false,
      "is_active": true
    },
    "customer_address": "oafhiofhpooh, Palash, Narsingdi, Dhaka",
    "contact_number": "01521200079",
    "shop": {
      "name": "Test Shop Joker",
      "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvNWQ1YTkzNWYzNDNmLWpva2VyLXRyYWlsZXIuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogMjUwLCAiaGVpZ2h0IjogMjUwLCAiZml0IjogImNvbnRhaW4iLCAiYmFja2dyb3VuZCI6IHsiciI6IDAsICJnIjogMCwgImIiOiAwLCAiYWxwaGEiOiAwfX0sICJwbmciOiB7ImFkYXB0aXZlRmlsdGVyaW5nIjogdHJ1ZSwgInByb2dyZXNzaXZlIjogdHJ1ZSwgImZvcmNlIjogdHJ1ZX19fQ==",
      "slug": "test-shop-joker",
      "approved": true,
      "contact_number": "01521200070",
      "is_delivery_hero_allowed": false,
      "is_cod_allowed": false,
      "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMTI5NTY4NGU5YjhiLTA1LmpwZyIsICJlZGl0cyI6IHsicmVzaXplIjogeyJ3aWR0aCI6IDkwMCwgImhlaWdodCI6IDM1MCwgImZpdCI6ICJmaWxsIn0sICJqcGVnIjogeyJxdWFsaXR5IjogNzV9fX0=",
      "address": "Evaly.com.bd, House #8 1st Floor, Road: 14, Dhaka 1209, Bangladesh",
      "owner_name": "01977537988"
    },
    "order_status": "shipped",
    "payment_method": "sslcommerz_gateway",
    "payment_status": "paid",
    "total": "400.00",
    "subtotal": "400.00",
    "paid_amount": "400.00",
    "status": "active",
    "date": "2021-07-27T16:14:20.523554Z",
    "shop_groups": [],
    "delivery_confirmed": false,
    "delivery_confirmation_required": false,
    "campaign_rules": [],
    "is_express_order": false,
    "express_service_details": null,
    "customer_note": null,
    "last_update": "2021-07-28T14:33:39.934353Z",
    "allowed_payment_methods": [
      "balance",
      "gift_code",
      "sslcommerz_gateway",
      "citybank_gateway",
      "sebl_gateway",
      "bkash",
      "bank",
      "nagad",
      "upay_gateway"
    ],
    "apply_delivery_charge": false,
    "delivery_charge": null,
    "attachments": [],
    "is_delivery_hero_allowed": false,
    "payment_offer_selected": "nagad_discount",
    "maintain_by": "evaly"
  }
}
```



## update order status to cancel - admin

```bash=
curl --request PUT \
  --url http://localhost:8000/v2/admin/orders/cancel/EVL836133272/ \
  --header 'Accept: application/json, text/plain, */*' \
  --header 'Accept-Language: en-US,en;q=0.9' \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlzaGFrIiwiZ3JvdXBzIjpbIlZvdWNoZXJWaWV3ZXIiLCJOb3RlRW50cnkiLCJDaGF0TWFuYWdlciIsIk5vdGVNYW5hZ2VyIiwiZWJhemFyTWFuYWdlciIsIkJ1bGtBZG1pbiIsIk9yZGVyTWFuYWdlciIsIkNhbXBhaWduTWFuYWdlciIsIkNhbXBhaWduQWRtaW4iLCJCcmFuZE1hbmFnZXIiLCJQcm9kdWN0TWFuYWdlciIsIkNoYXRBZG1pbiIsIkVmb29kTWFuYWdlciIsIkFjY291bnRzQWRtaW4iLCJTaG9wT3duZXIiLCJCYWxhbmNlTWFuYWdlciIsIkVmb29kQ3VzdG9tZXJTZXJ2aWNlIiwiRWZvb2RBZG1pbiIsIkRhdGFFeHBvcnRlciIsIkFwcG9pbnRtZW50QWRtaW4iLCJDYXRlZ29yeU1hbmFnZXIiLCJFa2hhdGFBZG1pbiIsIkVmb29kQ29udGVudE1hbmFnZXIiLCJFdmFseUVtcGxveWVlIiwiVGVjaFN1cHBvcnQiLCJTaG9wTWFuYWdlciIsIkNhc2hiYWNrQWRtaW4iLCJlYmF6YXJBZG1pbiIsIklzc3VlUmVzb2x1dGlvbk1hbmFnZXIiLCJPcmRlclN0YXR1c1VwZGF0ZSIsIlByb2R1Y3RBZG1pbiIsIkhlcm9NYW5hZ2VyIiwiVm91Y2hlckFkbWluIiwiRWZvb2RDb250ZW50QWRtaW4iLCJJc3N1ZVJlc29sdXRpb25BZG1pbiIsIlZvdWNoZXJNYW5hZ2VyIiwiTm90aWZpY2F0aW9uTWFuYWdlciIsIk9yZGVyQ2FuY2VsIiwiQ29tcGFueUFkbWluIiwiRWpvYnNFdmFseUFkbWluIiwiQnVsa1Blcm1pc3Npb24iLCJSZXN0YXVyYW50T3duZXIiLCJTaG9wQWRtaW4iLCJPcmRlckFkbWluIiwiVGVjaEFkbWluIiwiQ29tcGFueU1hbmFnZXIiLCJBY2NvdW50c01hbmFnZXIiLCJSZWZ1bmRNYW5hZ2VyIiwiSFJNYW5hZ2VyIiwiRW1wbG95ZWVNYW5hZ2VyIiwiQXNzZXRNYW5hZ2VyIiwiSFJBZG1pbiIsIkhlcm9BZG1pbiIsIlRlYW1NYW5hZ2VyIiwiUHJpb3JpdHlPcmRlck1hbmFnZXIiXSwiZmlyc3RfbmFtZSI6IklzaGFrIiwibGFzdF9uYW1lIjoiQWhhbW1lZCIsImlzX3N0YWZmIjp0cnVlLCJpc19hY3RpdmUiOnRydWUsImlzX3N1cGVydXNlciI6dHJ1ZSwidmVyaWZpZWQiOnRydWUsInVzZXJfdHlwZSI6ImVtcGxveWVlIiwidXNlcl9zdGF0dXMiOiJhY3RpdmUiLCJlbWFpbCI6ImlzaGFrQGV2YWx5LmNvbS5iZCIsImNvbnRhY3QiOiIwMTMyNDgyMzQuLiIsImRhdGVfam9pbmVkIjoiMjAxOS0wOC0yOVQxMjoxMDozOFoiLCJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiaXNfZWF1dGgiOnRydWUsImV4cCI6MTYyNzQ4NzQ1NX0.6SgL3nXHG_GSh_SVaQXEHK02uw5qd0RYSYG_JZHmIsE' \
  --header 'Connection: keep-alive' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --header 'Origin: https://admin-dev.evaly.com.bd' \
  --header 'Referer: https://admin-dev.evaly.com.bd/' \
  --header 'Sec-Fetch-Dest: empty' \
  --header 'Sec-Fetch-Mode: cors' \
  --header 'Sec-Fetch-Site: same-site' \
  --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36' \
  --header 'sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"' \
  --header 'sec-ch-ua-mobile: ?0' \
  --data '{
	"user_note": "Product is picked to evaly warehouse.",
	"order_status": "cancel"
}'
```
**response:**
```json=
{
  "success": true,
  "message": "Order EVL836133272 is successfully cancelled"
}
```

## Order List
* **<core_base_url>/v2/admin/custom/orders/**
Admin side application calls this endpoint to see all order list.
```
requested_url:
<core_base_url>/custom/orders/?page=1&order_status=processing&payment_status=unpaid

request_method--GET

--header
     Authorization: bearer {token}

Query Params:
{
    serach = invoice_no or contact_no,
    page = int
}

No Request Body requierd.

Example Response Body:
{
  "count": 61,
  "next": "http://api-dev.evaly.com.bd/custom/orders/?limit=5&order_status=processing&page=2&payment_status=unpaid",
  "previous": null,
  "results": [
    {
      "id": 6007,
      "customer": {
        "id": 3,
        "username": "01977537988",
        "first_name": "The",
        "last_name": "Zinda"
      },
      "invoice_no": "EVL642102160",
      "order_status": "processing",
      "payment_method": "",
      "payment_status": "unpaid",
      "total": "400.00",
      "date": "2021-07-04T17:16:34.642428Z"
    },
    {
      "id": 5643,
      "customer": {
        "id": 3,
        "username": "01977537988",
        "first_name": "The",
        "last_name": "Zinda"
      },
      "invoice_no": "EVL081750931",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "unpaid",
      "total": "800.00",
      "date": "2021-06-30T11:34:01.082085Z"
    },
    {
      "id": 4710,
      "customer": {
        "id": 40,
        "username": "01938504111",
        "first_name": "Tanzina",
        "last_name": "Toma"
      },
      "invoice_no": "EVL545410581",
      "order_status": "processing",
      "payment_method": "",
      "payment_status": "unpaid",
      "total": "550.00",
      "date": "2021-05-31T11:22:25.545759Z"
    },
    {
      "id": 4709,
      "customer": {
        "id": 40,
        "username": "01938504111",
        "first_name": "Tanzina",
        "last_name": "Toma"
      },
      "invoice_no": "EVL412114934",
      "order_status": "processing",
      "payment_method": "",
      "payment_status": "unpaid",
      "total": "550.00",
      "date": "2021-05-31T11:22:09.412443Z"
    },
    {
      "id": 4614,
      "customer": {
        "id": 40,
        "username": "01938504111",
        "first_name": "Tanzina",
        "last_name": "Toma"
      },
      "invoice_no": "EVL045536374",
      "order_status": "processing",
      "payment_method": "",
      "payment_status": "unpaid",
      "total": "650.00",
      "date": "2021-05-30T11:24:23.045921Z"
    }
  ]
}

```


## Order History Details
* **<core_base_url>/v2/admin/orders/histories/:invoice_no/**
Admin side application calls this endpoint to see order history.
```
requested_url:
<core_base_url>/v2/admin/orders/histories/EVL718866592/


request_method--GET

--header
     Authorization: bearer {token}

No Request Body requierd.

Example Response Body:
{
  "success": true,
  "data": {
    "invoice_no": "EVL718866592",
    "order_status": "cancel",
    "histories": [
      {
        "date": "2021-03-11T11:53:47.659286Z",
        "order_status": "cancel",
        "payment_status": "refunded",
        "note": "Tk. 200.00 has been refunded by Evaly Pay to customer",
        "id": 10208
      },
      {
        "date": "2021-03-11T11:53:47.418471Z",
        "order_status": "cancel",
        "payment_status": "partial",
        "note": "Customer Canceled the order. -  sumaiyatuni",
        "id": 10207
      },
      {
        "date": "2021-03-11T08:50:44.956369Z",
        "order_status": "pending",
        "payment_status": "partial",
        "note": "Tk. 200.0 (SSLCommerz Gateway) payment received by Evaly Pay from customer",
        "id": 10090
      },
      {
        "date": "2021-03-11T08:50:03.790180Z",
        "order_status": "pending",
        "payment_status": "unpaid",
        "note": "Thank you for placing your order at Evaly. We will start processing your order after payment is complete - Evaly",
        "id": 10089
      },
      {
        "date": "2021-03-11T08:50:03.733714Z",
        "order_status": "pending",
        "payment_status": "unpaid",
        "note": "<a href=\"/about/purchasing-policy\">Purchasing Policy</a> and <a href=\"/about/terms-conditions\">Terms & Conditions</a> accepted. EVL718866592 has been marked as <strong>Pending<strong> by -  customer",
        "id": 10088
      }
    ]
  }
}


```

## Status wise Order Count
* **<core_base_url>/v2/admin/orders/order-status/counts/**
Admin side application calls this endpoint to view status wise order count.
```
requested_url:
<core_base_url>/v2/admin/orders/order-status/counts/


request_method--GET

--header
     Authorization: bearer {token}

No Request Body requierd.

Example Response Body:
{
  "success": true,
  "message": "Order counts fetched successfully",
  "data": [
    {
      "status": "pending",
      "count": 1415
    },
    {
      "status": "cancel",
      "count": 2511
    },
    {
      "status": "delivered",
      "count": 291
    },
    {
      "status": "processing",
      "count": 1520
    },
    {
      "status": "picked",
      "count": 167
    },
    {
      "status": "shipped",
      "count": 91
    },
    {
      "status": "confirmed",
      "count": 79
    }
  ]
}

```
## Export order list 
* **<core_base_url>/v2/admin/orders/order_list_excel**
Admin side application calls this endpoint to export all orders in excel file.
```

request_method--POST

--header
     Authorization: bearer {token}
     
Example Request Body:
{
	"email":"m.hoque@evaly.com.bd"
}

Example Response Body:
{
  "success": true,
  "message": "orders fetched successfully."
}
```

## Bulk Print
* **<core_base_url>/v2/admin/orders/print/bulk**

```

request_method--POST

--header
     Authorization: bearer {token}
     
Example Request Body:
{
    "excel_file":excel_file.xlsx,
    "email":"m.hoque@evaly.com.bd"
}

Example Response Body:
{
    "success"'": true,
    "message": "Processing orders. You will be sent a donwload link when processing is complete."
}
```

## Overall Sales Growth
* **<core_base_url>/v2/admin/orders/sales-growth/overall**

```
requested_url:
<core_base_url>/v2/admin/orders/sales-growth/overall?year=2021

request_method--POST

--header
     Authorization: bearer {token}
     
No Request Body Required

Example Response Body:
{
  "success": true,
  "message": "Sales growth fetched successfully",
  "data": [
    {
      "month": "Jan",
      "year": 2021,
      "total": 306906.0
    },
    {
      "month": "Feb",
      "year": 2021,
      "total": 2178092.0
    },
    {
      "month": "Mar",
      "year": 2021,
      "total": 7858050.0
    },
    {
      "month": "Apr",
      "year": 2021,
      "total": 16330518.0
    },
    {
      "month": "May",
      "year": 2021,
      "total": 482022.0
    },
    {
      "month": "Jun",
      "year": 2021,
      "total": 5290381.0
    },
    {
      "month": "Jul",
      "year": 2021,
      "total": 433624.0
    },
    {
      "month": "Aug",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Sep",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Oct",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Nov",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Dec",
      "year": 2021,
      "total": 0.0
    }
  ]
}
```


## Shop wise sales growth
* **<core_base_url>/v2/admin/orders/sales-growth?shop=:shop_slug**

```
requested_url:
<core_base_url>/v2/admin/orders/sales-growth?shop=sumaiya

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Body Required

Example Response Body:
{
  "success": true,
  "message": "Shop sales growth fetched successfully",
  "data": [
    {
      "month": "Jan",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Feb",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Mar",
      "year": 2021,
      "total": 5898.0
    },
    {
      "month": "Apr",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "May",
      "year": 2021,
      "total": 500.0
    },
    {
      "month": "Jun",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Jul",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Aug",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Sep",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Oct",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Nov",
      "year": 2021,
      "total": 0.0
    },
    {
      "month": "Dec",
      "year": 2021,
      "total": 0.0
    }
  ]
}
```

## Change Delivery address
* **<core_base_url>/v2/admin/orders/delivery-address/update/**
Admin side application calls this endpoint to change the delivery address.
```

request_method--POST

--header
     Authorization: bearer {token}
     
Example Request Body:
{
    "invoice_no":"EVL751801955",
    "address":"East Farider Para, Chandgaon, Chittagong",
    "note":"for v2 test",
}

Example Response Body:
{
  "success": true,
  "message": "Delivery address updated successfully",
  "data": {
    "id": 6123,
    "invoice_no": "EVL751801955",
    "order_items": [
      {
        "id": 7257,
        "shop_item": 8682,
        "quantity": 1,
        "item_name": "Perfume",
        "variations": [],
        "order_item_status": "pending",
        "order_time_price": "500.00",
        "product_slug": "perfume-4ec9b9157",
        "item_images": [
          "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/76fdbfd566c1-img_3574_resize.jpg"
        ]
      }
    ],
    "customer": {
      "id": 3,
      "username": "01977537988",
      "first_name": "The",
      "last_name": "Zinda",
      "email": "ishak@evaly.com.bd",
      "gender": "male",
      "verified": true,
      "is_active": true
    },
    "customer_address": "East Farider Para, Chandgaon, Chittagong",
    "contact_number": "01521200079",
    "shop": {
      "name": "Vision for T10 Campaign Shop",
      "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMjg2OTg3YWJkNjgwLXZpc2lvbi5wbmciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiIsICJiYWNrZ3JvdW5kIjogeyJyIjogMCwgImciOiAwLCAiYiI6IDAsICJhbHBoYSI6IDB9fSwgInBuZyI6IHsiYWRhcHRpdmVGaWx0ZXJpbmciOiB0cnVlLCAicHJvZ3Jlc3NpdmUiOiB0cnVlLCAiZm9yY2UiOiB0cnVlfX19",
      "slug": "vision-for-t10-campaign-shop",
      "approved": true,
      "contact_number": "01977537988",
      "is_delivery_hero_allowed": false,
      "is_cod_allowed": false,
      "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvOWFlYmFhZTY5NDAzLXZpc2lvbi1yZmwtYnJhbmQuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==",
      "address": "Evaly.com.bd, House #8 1st Floor, Road: 14, Dhaka 1209, Bangladesh",
      "owner_name": "01977537988"
    },
    "order_status": "pending",
    "payment_method": "",
    "payment_status": "unpaid",
    "total": "500.00",
    "subtotal": "500.00",
    "paid_amount": "0.00",
    "status": "active",
    "date": "2021-07-08T06:26:44.752308Z",
    "shop_groups": [],
    "delivery_confirmed": false,
    "delivery_confirmation_required": false,
    "campaign_rules": [
      {
        "id": 191,
        "name": "Vision for T10",
        "slug": "vision-for-t10-c2ee47",
        "image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/e2f72bd8d228-vision.png",
        "banner_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/e0810bbdbd67-square-group.jpg",
        "description": "[\"Only new payment is applicable for the Evaly T10 Campaign.\",\"All payments can be made using Regular Gateway Services or through bKash Merchant Account (01704169596) of Evaly and Nagad.\",\"Several orders can be placed for products from the same category using every unique customer account. Delivery of more than one ordered product will be confirmed upon availability of stock.\",\"10% partial payment is allowed for this campaign. Customers has to pay rest 90% on Payment on Delivery method.\",\"Products will be ready to ship more or less 10 days from day of paying initial 10% and will be delivered within 48 hours after paying rest 90%.\",\"If sellers fail to send or prepare goods in 10 days, customers can claim the refund or may agreed to wait for the products or services to be ready to ship.\",\"The Terms & Conditions constitute a legally bound understanding/agreement between the Customer and E-valy.com Limited. Please carefully read the above mentioned Terms & Conditions carefully before registering with us and/or using any of our services. By accepting it will be considered as the customer has agreed to be bound by the policies whenever accessing and browsing Evaly website and using the services. The customer will need to register own Evaly account to avail any service and/or offerings, and is required to be logged in to the account and have a valid payment method associated with it. Any breach of the Terms & Conditions will immediately effect as a prohibition on continuing to use Evaly website for further services. Evaly reserves the right to modify, extend, suspend, remove, disable or impose access restrictions or limits on any of the policies at any time without notice or liability; also the right to reject or cancel any order placed with Evaly, and/or to limit quantities on any order, without giving any reason. These restrictions may include the orders placed using the same Evaly account, the same payment method or orders that use the same billing or shipping address.\"]",
        "start_date": "2021-05-31T18:00:00Z",
        "end_date": "2022-11-29T18:00:00Z",
        "promotion_start_date": "2021-05-29T18:00:00Z",
        "promotion_end_date": "2023-04-07T18:00:00Z",
        "created_at": "2021-06-30T08:05:05.984100Z",
        "created_by": {
          "first_name": "Ishak",
          "last_name": "Ahammed",
          "username": "ishak"
        },
        "modified_at": "2021-07-06T15:28:23.811530Z",
        "modified_by": {
          "first_name": "Ishak",
          "last_name": "Ahammed",
          "username": "ishak"
        },
        "cashback_destination": "balance",
        "cashback_percentage": "100.00",
        "cashback_on_payment_by": "bkash,nagad,sebl_gateway,citybank_gateway,sslcommerz_gateway,balance,bank,gift_code",
        "cashback_type": "instant",
        "cashback_date": null,
        "cashback_backoff_period": null,
        "allowed_payment_methods": "bkash,nagad,sebl_gateway,upay_gateway,citybank_gateway,sslcommerz_gateway,balance,bank,gift_code",
        "category": {
          "name": "T10 Campaign",
          "slug": "t10-campaign-2bc39828",
          "banner_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/ba5cb7cf145d-square-group.jpg",
          "image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/68afc125c18b-3bb50349-f968-4f08-8967-958dfb9b1a26.jpeg",
          "description": "T10 Campaign, T10 Campaign, T10 Campaign",
          "banner_primary_bg_color": "#1111",
          "banner_secondary_bg_color": "B",
          "banner_header_text": "T10 By Default",
          "banner_header_text_color": "#d00000",
          "banner_sub_text": "Hello",
          "banner_sub_text_color": "#12130f",
          "status": "active",
          "modified_at": "2021-06-30T08:02:40.707641Z",
          "modified_by": {
            "first_name": "Ishak",
            "last_name": "Ahammed",
            "username": "ishak"
          },
          "created_at": "2021-06-30T08:02:40.707604Z",
          "created_by": {
            "first_name": "Ishak",
            "last_name": "Ahammed",
            "username": "ishak"
          },
          "score": 5000
        },
        "score": 4994,
        "purchase_score_enabled": false,
        "purchase_score_type": null,
        "purchase_score_terms": null,
        "min_order_quantity": null,
        "min_order_amount": null,
        "max_order_quantity": null,
        "max_order_amount": null,
        "edit_before": null,
        "campaign_status": "live",
        "applied_on": "shop"
      }
    ],
    "is_express_order": false,
    "express_service_details": null,
    "customer_note": "100.00% cashback available for Bkash, Nagad, Sebl_gateway, Citybank_gateway, Sslcommerz_gateway, Balance, Bank and Gift_code payments. Cashback can be claimed instantly",
    "last_update": "2021-07-08T15:30:26.869381Z",
    "allowed_payment_methods": [
      "bkash",
      "nagad",
      "sebl_gateway",
      "upay_gateway",
      "citybank_gateway",
      "sslcommerz_gateway",
      "balance",
      "bank",
      "gift_code"
    ],
    "apply_delivery_charge": false,
    "delivery_charge": null,
    "attachments": [],
    "is_delivery_hero_allowed": false,
    "payment_offer_selected": "nagad_discount",
    "maintain_by": null
  }
}
```


## Update splitted delivered order status
* **<core_base_url>/v2/admin/orders/update_splitted_delivered_order_status/{invoice_no}**

```

request_method--PATCH

--header
     Authorization: bearer {token}
     
Example Request Body:
{
  "change_reason": "string",
  "new_order_status": "string"
}

Example Response Body:
{
  "id": 0,
  "invoice_no": "string",
  "order_items": "string",
  "customer": "string",
  "customer_address": "string",
  "contact_number": "string",
  "shop": "string",
  "order_status": "pending",
  "payment_method": "string",
  "payment_status": "paid",
  "total": "string",
  "subtotal": "string",
  "paid_amount": "string",
  "status": "active",
  "date": "2021-07-11T07:48:38Z",
  "shop_groups": "string",
  "delivery_confirmed": "string",
  "delivery_confirmation_required": "string",
  "campaign_rules": "string",
  "is_express_order": "string",
  "express_service_details": "string",
  "customer_note": "string",
  "last_update": "2021-07-11T07:48:38Z",
  "allowed_payment_methods": "string",
  "apply_delivery_charge": "string",
  "delivery_charge": "string",
  "attachments": "string",
  "is_delivery_hero_allowed": true,
  "payment_offer_selected": "string",
  "maintain_by": "string"
}
```

## update splitted cancelled order status
* **<core_base_url>/v2/admin/orders/update_splitted_cancelled_order_status/{invoice_no}**

```

request_method--PATCH

--header
     Authorization: bearer {token}
     
Example Request Body:
{
  "change_reason": "string"
}

Example Response Body:
{
  "id": 0,
  "invoice_no": "string",
  "order_items": "string",
  "customer": "string",
  "customer_address": "string",
  "contact_number": "string",
  "shop": "string",
  "order_status": "pending",
  "payment_method": "string",
  "payment_status": "paid",
  "total": "string",
  "subtotal": "string",
  "paid_amount": "string",
  "status": "active",
  "date": "2021-07-11T07:48:38Z",
  "shop_groups": "string",
  "delivery_confirmed": "string",
  "delivery_confirmation_required": "string",
  "campaign_rules": "string",
  "is_express_order": "string",
  "express_service_details": "string",
  "customer_note": "string",
  "last_update": "2021-07-11T07:48:38Z",
  "allowed_payment_methods": "string",
  "apply_delivery_charge": "string",
  "delivery_charge": "string",
  "attachments": "string",
  "is_delivery_hero_allowed": true,
  "payment_offer_selected": "string",
  "maintain_by": "string"
}
```

## T10 order list
* **<core_base_url>/v2/admin/t-ten-order-list**

```
requested_url:
<core_base_url>/v2/admin/t-ten-order-list?page=1&limit=5

request_method--GET

--header
     Authorization: bearer {token}
     
Query Params:
{
    'invoice_no', 'order_status', 'payment_status', 'shop_slug'
}
     
No Request Body Required


Example Response Body:
{
  "count": 344,
  "next": "http://127.0.0.1:8000/v2/admin/t-ten-order-list?limit=5&page=2",
  "previous": null,
  "results": [
    {
      "id": 5616,
      "customer": {
        "id": 20,
        "username": "01521200079",
        "first_name": "Ishak",
        "last_name": "Ahammed"
      },
      "invoice_no": "EVL531081592",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "800.00",
      "date": "2021-06-30T08:47:48.531535Z",
      "shop_name": "T10 Hero Delivered",
      "order_items": [
        {
          "quantity": 1,
          "item_name": "Pringles Original",
          "product_slug": "pringles-original-3d1fe309f"
        }
      ],
      "configuration": null,
      "last_update": "2021-06-30T08:48:10.080965Z"
    },
    {
      "id": 5617,
      "customer": {
        "id": 3,
        "username": "01977537988",
        "first_name": "The",
        "last_name": "Zinda"
      },
      "invoice_no": "EVL335219433",
      "order_status": "pending",
      "payment_method": "",
      "payment_status": "unpaid",
      "total": "540.00",
      "date": "2021-06-30T09:14:14.335589Z",
      "shop_name": "Vision for T10 Campaign Shop",
      "order_items": [
        {
          "quantity": 1,
          "item_name": "Radhuni Chili Flakes",
          "product_slug": "radhuni-chili-flakes-ecb9c59e2"
        }
      ],
      "configuration": null,
      "last_update": "2021-06-30T09:14:14.348667Z"
    },
    {
      "id": 5618,
      "customer": {
        "id": 1334,
        "username": "01997938450",
        "first_name": "ibrahim",
        "last_name": "prodhan"
      },
      "invoice_no": "EVL452056418",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "800.00",
      "date": "2021-06-30T09:23:38.452522Z",
      "shop_name": "T10 Hero Delivered",
      "order_items": [
        {
          "quantity": 1,
          "item_name": "Pringles Original",
          "product_slug": "pringles-original-3d1fe309f"
        }
      ],
      "configuration": null,
      "last_update": "2021-06-30T09:26:43.516331Z"
    },
    {
      "id": 5619,
      "customer": {
        "id": 1334,
        "username": "01997938450",
        "first_name": "ibrahim",
        "last_name": "prodhan"
      },
      "invoice_no": "EVL299287697",
      "order_status": "delivered",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "1000.00",
      "date": "2021-06-30T09:29:27.299667Z",
      "shop_name": "Vision for T10 Campaign Shop",
      "order_items": [
        {
          "quantity": 1,
          "item_name": "Pringles Original",
          "product_slug": "pringles-original-3d1fe309f"
        }
      ],
      "configuration": null,
      "last_update": "2021-07-01T07:41:44.993267Z"
    },
    {
      "id": 5620,
      "customer": {
        "id": 3,
        "username": "01977537988",
        "first_name": "The",
        "last_name": "Zinda"
      },
      "invoice_no": "EVL642389154",
      "order_status": "pending",
      "payment_method": "bkash",
      "payment_status": "partial",
      "total": "540.00",
      "date": "2021-06-30T09:34:14.642787Z",
      "shop_name": "Vision for T10 Campaign Shop",
      "order_items": [
        {
          "quantity": 1,
          "item_name": "Radhuni Chili Flakes",
          "product_slug": "radhuni-chili-flakes-ecb9c59e2"
        }
      ],
      "configuration": null,
      "last_update": "2021-06-30T10:02:21.712246Z"
    }
  ]
}

```

## Shop wise Delivered order analytics 
* **<core_base_url>/v2/admin/orders/delivered/analytics/shop?shop={shop_slug}**

```
requested_url:
<core_base_url>/v2/admin/orders/delivered/analytics/shop?shop=zays-official-store

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Body Required


Example Response Body:
{
  "success": true,
  "message": "Shop delivered order analytics fetched successfully",
  "data": [
    {
      "date": "2021-07-05",
      "total": 0.0,
      "count": 0
    },
    {
      "date": "2021-07-06",
      "total": 0.0,
      "count": 0
    },
    {
      "date": "2021-07-07",
      "total": 0.0,
      "count": 0
    },
    {
      "date": "2021-07-08",
      "total": 0.0,
      "count": 0
    },
    {
      "date": "2021-07-09",
      "total": 0.0,
      "count": 0
    },
    {
      "date": "2021-07-10",
      "total": 0.0,
      "count": 0
    },
    {
      "date": "2021-07-11",
      "total": 0.0,
      "count": 0
    }
  ]
}

```
## Confirm Delivery
* **<core_base_url>/v2/admin/orders/confirm/delivery**

```

request_method--POST

--header
     Authorization: bearer {token}
     
Example Request Body:
{
    "invoice_no":"EVL027799403"
}


Example Response Body:
{
  "success": true,
  "message": "Delivery confirmed"
}

```

## Fix order refund
* **<core_base_url>/v2/admin/orders/{invoice_no}/refund**
Admin side call this endpoint to fix order refund.
```

request_method--POST

--header
     Authorization: bearer {token}
     
No Request Body Required


Example Response Body:
{
    "success": true, 
    "message": "Refund successful"
}

```


## Priority Order List
* **<core_base_url>/v2/admin/orders/priority-order-list**

```
requested_url:
core_base_url>/v2/admin/orders/priority-order-list?page=1&limit=5

request_method--GET

--header
     Authorization: bearer {token}
     
Query Params:
{
    'invoice_no', 'order_status', 'is_printed'
}
     
No Request Body Required


Example Response Body:
{
  "count": 130,
  "next": "http://127.0.0.1:8000/v2/admin/orders/priority-order-list?limit=5&page=2",
  "previous": null,
  "results": [
    {
      "id": 5095,
      "customer": {
        "id": 757,
        "username": "01997938460",
        "first_name": "ibrahim",
        "last_name": "prodhan"
      },
      "invoice_no": "EVL162613450",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "650.00",
      "date": "2021-06-15T09:50:47.163064Z",
      "shop_name": "Cardi For Mirpur",
      "order_items": [
        {
          "quantity": 1,
          "item_name": "YIHO CARDI",
          "product_slug": "yiho-cardi-9ced19185"
        }
      ],
      "configuration": "{\"print_time\": \"2021-06-21T10:46:48.597Z\"}",
      "last_update": "2021-06-15T09:50:54.680730Z"
    },
    {
      "id": 5191,
      "customer": {
        "id": 1334,
        "username": "01997938450",
        "first_name": "ibrahim",
        "last_name": "prodhan"
      },
      "invoice_no": "EVL095380475",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "1000.00",
      "date": "2021-06-20T09:39:25.095778Z",
      "shop_name": "pri shop",
      "order_items": [
        {
          "quantity": 1,
          "item_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 ",
          "product_slug": "khabo-7921e085a"
        }
      ],
      "configuration": "{}",
      "last_update": "2021-06-20T09:39:34.518595Z"
    },
    {
      "id": 5192,
      "customer": {
        "id": 1334,
        "username": "01997938450",
        "first_name": "ibrahim",
        "last_name": "prodhan"
      },
      "invoice_no": "EVL832383911",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "1000.00",
      "date": "2021-06-20T09:51:08.832739Z",
      "shop_name": "pri shop",
      "order_items": [
        {
          "quantity": 1,
          "item_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 ",
          "product_slug": "khabo-7921e085a"
        }
      ],
      "configuration": "{}",
      "last_update": "2021-06-20T10:05:30.783186Z"
    },
    {
      "id": 5193,
      "customer": {
        "id": 1334,
        "username": "01997938450",
        "first_name": "ibrahim",
        "last_name": "prodhan"
      },
      "invoice_no": "EVL832357610",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "1000.00",
      "date": "2021-06-20T10:37:52.832768Z",
      "shop_name": "pri shop",
      "order_items": [
        {
          "quantity": 1,
          "item_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 ",
          "product_slug": "khabo-7921e085a"
        }
      ],
      "configuration": "{}",
      "last_update": "2021-06-20T10:38:02.487046Z"
    },
    {
      "id": 5202,
      "customer": {
        "id": 1334,
        "username": "01997938450",
        "first_name": "ibrahim",
        "last_name": "prodhan"
      },
      "invoice_no": "EVL022269821",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "1000.00",
      "date": "2021-06-20T11:55:21.022678Z",
      "shop_name": "pri shop",
      "order_items": [
        {
          "quantity": 1,
          "item_name": "asd",
          "product_slug": "asd-6e3ca4d62"
        }
      ],
      "configuration": "{}",
      "last_update": "2021-06-20T11:55:30.162814Z"
    }
  ]
}

```

## Mark as Printed (Priority Order)
* **<core_base_url>/v2/admin/orders/mark-as-printed/?invoice_no={invoice_no}**

```

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Body Required


Example Response Body:
{
    "success": true,
    "msg": "marked as printed"
}

```

## Priority shop wise order count 
* **<core_base_url>/v2/admin/priority-shop-wise-order-count**

```

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Body Required


Example Response Body:
{
  "count": 5,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 690,
      "name": "Shwapno  Evaly Priority Store",
      "slug": "shwapno-evaly-priority-store",
      "order_count": 125,
      "total_amount": 306051.0,
      "printed_count": 47,
      "not_printed_count": 78
    },
    {
      "id": 691,
      "name": "Samsung Evaly Priority Store",
      "slug": "samsung-evaly-priority-store",
      "order_count": 31,
      "total_amount": 3650400.0,
      "printed_count": 16,
      "not_printed_count": 15
    },
    {
      "id": 820,
      "name": "pri shop",
      "slug": "pri-shop",
      "order_count": 5,
      "total_amount": 5000.0,
      "printed_count": 4,
      "not_printed_count": 1
    },
    {
      "id": 239,
      "name": "Cardi For Mirpur",
      "slug": "cardi-for-mirpur",
      "order_count": 1,
      "total_amount": 650.0,
      "printed_count": 1,
      "not_printed_count": 0
    },
    {
      "id": 692,
      "name": "Hafsa Mart",
      "slug": "hafsa-mart",
      "order_count": 0,
      "total_amount": 0,
      "printed_count": 0,
      "not_printed_count": 0
    }
  ]
}

```

## Download orders billing
* **<core_base_url>/v2/admin/billing/admin/download/orders**

```

request_method--POST

--header
     Authorization: bearer {token}
     
Request Body: 
{
    "email":"m.hoque@evaly.com.bd"
}

optional data in request body:
[
    'order_date_start', 'order_date_end', 'shop',
    'shop_delivery_zone', 'express_service', 'campaign', 'customer',
    'payment_method', payment_status', 'order_status', 'last_update_start',
    'last_update_end', 'merchant_no', 'delivered_at_start', 'delivered_at_end', 
    'shipped_at_start', 'shipped_at_end', 
    
]


Example Response Body:
{
    "success": true,
    "message": "Your request data is being processed. You will receive an email when processing is complete",
}

```

## Shop wise analytics
* **<core_base_url>/v2/admin/orders/analytics/shop**

```

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Required: 

Query Params:
{
    start_date, end_date
}


Example Response Body:
{
  "success": true,
  "message": "Analytics fetched successfully.",
  "data": [
    {
      "id": 1,
      "name": "Test Shop Joker",
      "total_orders": 3,
      "total_amount": 1500.0,
      "total_amount_paid": 0.0,
      "total_cancelled_orders": 0.0,
      "total_cancelled_amount": 0.0,
      "total_cancelled_amount_paid": 0.0,
      "total_full_paid_orders": 0.0,
      "total_full_paid_orders_amount": 0.0
    },
    {
      "id": 676,
      "name": "Toma Toms",
      "total_orders": 3,
      "total_amount": 2300.0,
      "total_amount_paid": 3000.0,
      "total_cancelled_orders": 2.0,
      "total_cancelled_amount": 1300.0,
      "total_cancelled_amount_paid": 2000.0,
      "total_full_paid_orders": 2.0,
      "total_full_paid_orders_amount": 1600.0
    }
  ]
}

```


## Cancelled order analytics
* **<core_base_url>/v2/admin/orders/analytics/cancelled**

```

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Required: 

Query Params:
{
    start_date, end_date
}


Example Response Body:
{
  "success": true,
  "message": "Analytics fetched successfully.",
  "data": {
    "total_cancelled_orders": 2,
    "total_cancelled_amount": 1300.0,
    "total_cancelled_amount_paid": 2000.0
  }
}

```


## All orders analytics
* **<core_base_url>/v2/admin/orders/analytics/all**

```

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Required: 

Query Params:
{
    start_date, end_date
}


Example Response Body:
{
  "success": true,
  "message": "Analytics fetched successfully.",
  "data": {
    "total_orders": 8,
    "total_amount": 5000.0,
    "total_amount_paid": 4200.0
  }
}

```

## Order Item List
* **<core_base_url>/v2/admin/order-items/?page=1&limit=5**

```
requested_url:
<core_base_url>/v2/admin/order-items/?page=1&limit=5

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Required


Example Response Body:
{
  "count": 6104,
  "next": "http://api-beta.evaly.com.bd/v2/admin/order-items/?limit=5&page=2",
  "previous": null,
  "results": [
    {
      "id": 6221,
      "customer": {
        "id": 1173,
        "username": "01750265111",
        "first_name": "Nokol",
        "last_name": "Toms"
      },
      "invoice_no": "EVL734995501",
      "order_status": "processing",
      "payment_method": "balance",
      "payment_status": "paid",
      "total": "700.00",
      "date": "2021-07-11T11:37:36.735479Z"
    },
    {
      "id": 6220,
      "customer": {
        "id": 1173,
        "username": "01750265111",
        "first_name": "Nokol",
        "last_name": "Toms"
      },
      "invoice_no": "EVL749043402",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "500.00",
      "date": "2021-07-11T11:36:57.749412Z"
    },
    {
      "id": 6219,
      "customer": {
        "id": 1173,
        "username": "01750265111",
        "first_name": "Nokol",
        "last_name": "Toms"
      },
      "invoice_no": "EVL830212305",
      "order_status": "cancel",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "refund_requested",
      "total": "600.00",
      "date": "2021-07-11T10:14:25.830552Z"
    },
    {
      "id": 6218,
      "customer": {
        "id": 1173,
        "username": "01750265111",
        "first_name": "Nokol",
        "last_name": "Toms"
      },
      "invoice_no": "EVL530518377",
      "order_status": "cancel",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "refund_requested",
      "total": "700.00",
      "date": "2021-07-11T10:13:06.530924Z"
    },
    {
      "id": 6217,
      "customer": {
        "id": 1173,
        "username": "01750265111",
        "first_name": "Nokol",
        "last_name": "Toms"
      },
      "invoice_no": "EVL249780595",
      "order_status": "processing",
      "payment_method": "sslcommerz_gateway",
      "payment_status": "paid",
      "total": "1000.00",
      "date": "2021-07-11T10:11:56.250111Z"
    }
  ]
}

```

## Order Item details
* **<core_base_url>/v2/admin/order-items/{invoice_no}**

```
requested_url:
<core_base_url>/v2/admin/order-items/EVL530518377/

request_method--GET

--header
     Authorization: bearer {token}
     
No Request Required


Example Response Body:
{
  "id": 6218,
  "invoice_no": "EVL530518377",
  "order_items": [
    {
      "id": 7362,
      "shop_item": 5212,
      "quantity": 1,
      "item_name": "EVALYEVALY",
      "variations": [],
      "order_item_status": "pending",
      "order_time_price": "700.00",
      "product_slug": "evalyevaly-6624c65e1",
      "item_images": [
        "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/978e29481d1f-1b9f28193d24-1e536c10-a4d7-45a6-a978-dfb696a7cebc.jpeg"
      ]
    }
  ],
  "customer": {
    "id": 1173,
    "username": "01750265111",
    "first_name": "Nokol",
    "last_name": "Toms",
    "email": "a@b.com",
    "gender": "female",
    "verified": true,
    "is_active": true
  },
  "customer_address": "House #8 1st Floor, Road: 14, Dhaka 1209, Bangladesh, Adabor, Dhaka, Dhaka",
  "contact_number": "01977537988",
  "shop": {
    "name": "Toma Toms",
    "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYjQxZmFlZDY5ZGY3LWdlb3RhZ2dlZF9hcnRpY2xlc193aWtpbWFwX3JlbmRlcl9lc19zbWFsbC5wbmciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiIsICJiYWNrZ3JvdW5kIjogeyJyIjogMCwgImciOiAwLCAiYiI6IDAsICJhbHBoYSI6IDB9fSwgInBuZyI6IHsiYWRhcHRpdmVGaWx0ZXJpbmciOiB0cnVlLCAicHJvZ3Jlc3NpdmUiOiB0cnVlLCAiZm9yY2UiOiB0cnVlfX19",
    "slug": "toma-toms",
    "approved": true,
    "contact_number": "01938504111",
    "is_delivery_hero_allowed": true,
    "is_cod_allowed": false,
    "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvZDBlOTJmYTkzM2VhLXBlYXJ0YXJ0LTEwMDB4NTAwcHguanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==",
    "address": "House #8 1st Floor, Road: 14, Dhaka 1209, Bangladesh",
    "owner_name": "01938504111"
  },
  "order_status": "cancel",
  "payment_method": "sslcommerz_gateway",
  "payment_status": "refund_requested",
  "total": "700.00",
  "subtotal": "700.00",
  "paid_amount": "1400.00",
  "status": "active",
  "date": "2021-07-11T10:13:06.530924Z",
  "shop_groups": [],
  "delivery_confirmed": false,
  "delivery_confirmation_required": false,
  "campaign_rules": [
    {
      "id": 31,
      "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",
      "banner_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/a72db34632d4-local-dog.jpg",
      "description": "jbhjhnjn",
      "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",
      "created_at": "2021-01-25T06:37:43.921241Z",
      "created_by": {
        "first_name": "Ishak",
        "last_name": "Ahammed",
        "username": "ishak"
      },
      "modified_at": "2021-06-07T07:22:57.220610Z",
      "modified_by": {
        "first_name": "Ishak",
        "last_name": "Ahammed",
        "username": "ishak"
      },
      "cashback_destination": "balance",
      "cashback_percentage": "0.00",
      "cashback_on_payment_by": "bkash,nagad,sebl_gateway,citybank_gateway,sslcommerz_gateway,balance,bank,gift_code",
      "cashback_type": "instant",
      "cashback_date": null,
      "cashback_backoff_period": null,
      "allowed_payment_methods": "bkash,nagad,sebl_gateway,citybank_gateway,sslcommerz_gateway,balance,bank,gift_code",
      "category": {
        "name": "Mr. Quick Deal",
        "slug": "mr-quick-deal-1d2de849",
        "banner_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/943d17d9c0ab-wallpaperflarecom_wallpaper-2.jpg",
        "image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/1a141ef460c1-smart-deal.png",
        "description": "ABCD",
        "banner_primary_bg_color": "#00e650",
        "banner_secondary_bg_color": "#87AFC7",
        "banner_header_text": "Quick Deal Test",
        "banner_header_text_color": "#d00000",
        "banner_sub_text": "Quick Deal Test2",
        "banner_sub_text_color": "#12130f",
        "status": "active",
        "modified_at": "2021-02-19T11:14:17.458052Z",
        "modified_by": {
          "first_name": "Ishak",
          "last_name": "Ahammed",
          "username": "ishak"
        },
        "created_at": "2021-01-20T05:38:30.197320Z",
        "created_by": {
          "first_name": "Ishak",
          "last_name": "Ahammed",
          "username": "ishak"
        },
        "score": 7
      },
      "score": 0,
      "purchase_score_enabled": false,
      "purchase_score_type": null,
      "purchase_score_terms": null,
      "min_order_quantity": null,
      "min_order_amount": null,
      "max_order_quantity": null,
      "max_order_amount": null,
      "edit_before": null,
      "campaign_status": "live",
      "applied_on": "shop"
    }
  ],
  "is_express_order": false,
  "express_service_details": null,
  "customer_note": null,
  "last_update": "2021-07-11T10:25:50.397070Z",
  "allowed_payment_methods": [
    "bkash",
    "nagad",
    "sebl_gateway",
    "citybank_gateway",
    "sslcommerz_gateway",
    "balance",
    "bank",
    "gift_code"
  ],
  "apply_delivery_charge": false,
  "delivery_charge": null,
  "attachments": [],
  "is_delivery_hero_allowed": true,
  "payment_offer_selected": "sslcommerz_lankabangla_discount",
  "maintain_by": null
}

```

## Update Order Items
* **<core_base_url>/v2/admin/order-items/{invoice_no}**

```
requested_url:
<core_base_url>/v2/admin/order-items/EVL530518377/

request_method--PUT/PATCH

--header
     Authorization: bearer {token}
     
Request Body:
{
  "invoice_no": "string",
  "customer_address": "string",
  "contact_number": "string",
  "order_status": "pending",
  "payment_method": "string",
  "payment_status": "paid",
  "total": "string",
  "subtotal": "string",
  "paid_amount": "string",
  "status": "active",
  "maintain_by": "string"
}

Example Response Body:

{
  "id": 0,
  "invoice_no": "string",
  "order_items": "string",
  "customer": "string",
  "customer_address": "string",
  "contact_number": "string",
  "shop": "string",
  "order_status": "pending",
  "payment_method": "string",
  "payment_status": "paid",
  "total": "string",
  "subtotal": "string",
  "paid_amount": "string",
  "status": "active",
  "date": "2021-07-11T11:55:15Z",
  "shop_groups": "string",
  "delivery_confirmed": "string",
  "delivery_confirmation_required": "string",
  "campaign_rules": "string",
  "is_express_order": "string",
  "express_service_details": "string",
  "customer_note": "string",
  "last_update": "2021-07-11T11:55:15Z",
  "allowed_payment_methods": "string",
  "apply_delivery_charge": "string",
  "delivery_charge": "string",
  "attachments": "string",
  "is_delivery_hero_allowed": true,
  "payment_offer_selected": "string",
  "maintain_by": "string"
}
```

## Delete order Items

* **<core_base_url>/v2/admin/order-items/{invoice_no}**

```
requested_url:
<core_base_url>/v2/admin/order-items/EVL530518377/

request_method--DELETE

--header
     Authorization: bearer {token}
     
Request Body:
{
  "invoice_no": "string",
  "customer_address": "string",
  "contact_number": "string",
  "order_status": "pending",
  "payment_method": "string",
  "payment_status": "paid",
  "total": "string",
  "subtotal": "string",
  "paid_amount": "string",
  "status": "active",
  "maintain_by": "string"
}

Example Response Body:

{
  "id": 6218,
  "invoice_no": "EVL530518377",
  "order_items": [
    {
      "id": 7362,
      "shop_item": 5212,
      "quantity": 1,
      "item_name": "EVALYEVALY",
      "variations": [],
      "order_item_status": "pending",
      "order_time_price": "700.00",
      "product_slug": "evalyevaly-6624c65e1",
      "item_images": [
        "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/978e29481d1f-1b9f28193d24-1e536c10-a4d7-45a6-a978-dfb696a7cebc.jpeg"
      ]
    }
  ],
  "customer": {
    "id": 1173,
    "username": "01750265111",
    "first_name": "Nokol",
    "last_name": "Toms",
    "email": "a@b.com",
    "gender": "female",
    "verified": true,
    "is_active": true
  },
  "customer_address": "House #8 1st Floor, Road: 14, Dhaka 1209, Bangladesh, Adabor, Dhaka, Dhaka",
  "contact_number": "01977537988",
  "shop": {
    "name": "Toma Toms",
    "logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvYjQxZmFlZDY5ZGY3LWdlb3RhZ2dlZF9hcnRpY2xlc193aWtpbWFwX3JlbmRlcl9lc19zbWFsbC5wbmciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiIsICJiYWNrZ3JvdW5kIjogeyJyIjogMCwgImciOiAwLCAiYiI6IDAsICJhbHBoYSI6IDB9fSwgInBuZyI6IHsiYWRhcHRpdmVGaWx0ZXJpbmciOiB0cnVlLCAicHJvZ3Jlc3NpdmUiOiB0cnVlLCAiZm9yY2UiOiB0cnVlfX19",
    "slug": "toma-toms",
    "approved": true,
    "contact_number": "01938504111",
    "is_delivery_hero_allowed": true,
    "is_cod_allowed": false,
    "image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvZDBlOTJmYTkzM2VhLXBlYXJ0YXJ0LTEwMDB4NTAwcHguanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==",
    "address": "House #8 1st Floor, Road: 14, Dhaka 1209, Bangladesh",
    "owner_name": "01938504111"
  },
  "order_status": "cancel",
  "payment_method": "sslcommerz_gateway",
  "payment_status": "refund_requested",
  "total": "700.00",
  "subtotal": "700.00",
  "paid_amount": "1400.00",
  "status": "archived",
  "date": "2021-07-11T10:13:06.530924Z",
  "shop_groups": [],
  "delivery_confirmed": false,
  "delivery_confirmation_required": false,
  "campaign_rules": [
    {
      "id": 31,
      "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",
      "banner_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/a72db34632d4-local-dog.jpg",
      "description": "jbhjhnjn",
      "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",
      "created_at": "2021-01-25T06:37:43.921241Z",
      "created_by": {
        "first_name": "Ishak",
        "last_name": "Ahammed",
        "username": "ishak"
      },
      "modified_at": "2021-06-07T07:22:57.220610Z",
      "modified_by": {
        "first_name": "Ishak",
        "last_name": "Ahammed",
        "username": "ishak"
      },
      "cashback_destination": "balance",
      "cashback_percentage": "0.00",
      "cashback_on_payment_by": "bkash,nagad,sebl_gateway,citybank_gateway,sslcommerz_gateway,balance,bank,gift_code",
      "cashback_type": "instant",
      "cashback_date": null,
      "cashback_backoff_period": null,
      "allowed_payment_methods": "bkash,nagad,sebl_gateway,citybank_gateway,sslcommerz_gateway,balance,bank,gift_code",
      "category": {
        "name": "Mr. Quick Deal",
        "slug": "mr-quick-deal-1d2de849",
        "banner_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/943d17d9c0ab-wallpaperflarecom_wallpaper-2.jpg",
        "image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/1a141ef460c1-smart-deal.png",
        "description": "ABCD",
        "banner_primary_bg_color": "#00e650",
        "banner_secondary_bg_color": "#87AFC7",
        "banner_header_text": "Quick Deal Test",
        "banner_header_text_color": "#d00000",
        "banner_sub_text": "Quick Deal Test2",
        "banner_sub_text_color": "#12130f",
        "status": "active",
        "modified_at": "2021-02-19T11:14:17.458052Z",
        "modified_by": {
          "first_name": "Ishak",
          "last_name": "Ahammed",
          "username": "ishak"
        },
        "created_at": "2021-01-20T05:38:30.197320Z",
        "created_by": {
          "first_name": "Ishak",
          "last_name": "Ahammed",
          "username": "ishak"
        },
        "score": 7
      },
      "score": 0,
      "purchase_score_enabled": false,
      "purchase_score_type": null,
      "purchase_score_terms": null,
      "min_order_quantity": null,
      "min_order_amount": null,
      "max_order_quantity": null,
      "max_order_amount": null,
      "edit_before": null,
      "campaign_status": "live",
      "applied_on": "shop"
    }
  ],
  "is_express_order": false,
  "express_service_details": null,
  "customer_note": null,
  "last_update": "2021-07-11T12:01:42.859279Z",
  "allowed_payment_methods": [
    "bkash",
    "nagad",
    "sebl_gateway",
    "citybank_gateway",
    "sslcommerz_gateway",
    "balance",
    "bank",
    "gift_code"
  ],
  "apply_delivery_charge": false,
  "delivery_charge": null,
  "attachments": [],
  "is_delivery_hero_allowed": true,
  "payment_offer_selected": "sslcommerz_lankabangla_discount",
  "maintain_by": null
}

```


## Create Order Items
* **<core_base_url>/v2/admin/order-items/**

```

request_method--POST

--header
     Authorization: bearer {token}
     
Request Body:
{
  "invoice_no": "string",
  "customer_address": "string",
  "contact_number": "string",
  "order_status": "pending",
  "payment_method": "string",
  "payment_status": "paid",
  "total": "string",
  "subtotal": "string",
  "paid_amount": "string",
  "status": "active",
  "maintain_by": "string"
}

Example Response Body:
{
  "id": 0,
  "invoice_no": "string",
  "order_items": "string",
  "customer": "string",
  "customer_address": "string",
  "contact_number": "string",
  "shop": "string",
  "order_status": "pending",
  "payment_method": "string",
  "payment_status": "paid",
  "total": "string",
  "subtotal": "string",
  "paid_amount": "string",
  "status": "active",
  "date": "2021-07-11T11:55:15Z",
  "shop_groups": "string",
  "delivery_confirmed": "string",
  "delivery_confirmation_required": "string",
  "campaign_rules": "string",
  "is_express_order": "string",
  "express_service_details": "string",
  "customer_note": "string",
  "last_update": "2021-07-11T11:55:15Z",
  "allowed_payment_methods": "string",
  "apply_delivery_charge": "string",
  "delivery_charge": "string",
  "attachments": "string",
  "is_delivery_hero_allowed": true,
  "payment_offer_selected": "string",
  "maintain_by": "string"
}


```