SHARE
TWEET

Untitled

a guest Jun 18th, 2019 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. **** User details and address api
  2.  
  3. https://api-prod.evaly.com.bd/api/user/detail/01751977045/
  4.  
  5.  
  6. header
  7. Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo2NjY2NywidXNlcm5hbWUiOiIwMTc1MTk3NzA0NSIsImV4cCI6MTYzODYzODE4NywiZW1haWwiOiIiLCJzaG9wcyI6W10sImRldmljZSI6IndlYiIsImNvbnRhY3Rfbm9zIjpbIjAxNzUxOTc3MDQ1Il0sImlzX3N1cGVydXNlciI6ZmFsc2UsImlzX3N0YWZmIjpmYWxzZSwiZ3JvdXBzIjpbXSwiaXNfdmVyaW
  8.  
  9. response:
  10.  
  11. {"user":{"username":"01751977045","first_name":"HM ","last_name":"Tamim"},"verified":false,"addresses":[{"address":"bddfhv, dhaka","id":32146},{"address":"B3, 349/A, Road 9, Block C, Bashundhara R/A","id":40235}],"shops":[],"profile_pic_url":null}
  12.  
  13.  
  14. ***** Update profile or Add address API
  15.  
  16. 1. To Add address, add new item to  "addresses" jsonArray, (user information from local DB)
  17. 2. To edit profile, change "user" json, (address information from local DB)
  18.  
  19.  
  20. https://api-prod.evaly.com.bd/api/user/detail/01751977045/
  21.  
  22. {
  23.    "user":{
  24.       "username":"01751977045",
  25.       "first_name":"HM ",
  26.       "last_name":"Tamim"
  27.    },
  28.    "verified":false,
  29.    "addresses":[
  30.       {
  31.          "address":"bddfhv, dhaka",
  32.          "id":32146
  33.       },
  34.       {
  35.          "address":"B3, 349/A, Road 9, Block C, Bashundhara R/A",
  36.          "id":40235
  37.       },
  38.       {
  39.          "id":null,
  40.          "address":null
  41.       }
  42.    ],
  43.    "shops":[
  44.  
  45.    ],
  46.    "profile_pic_url":null
  47. }
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. ***** Reset password API:
  58.  
  59. https://api-prod.evaly.com.bd/api/users/reset_password
  60.  
  61. payload
  62.  
  63. {"old_password":"4343434","new_password":"123"}
  64.  
  65.  
  66.  
  67.  
  68.  
  69. ========================================================
  70.  
  71.  
  72. **** Order list API:
  73. https://api-prod.evaly.com.bd/api/order/?&page=1
  74. header
  75. Authorization: Bearer
  76.  
  77. payload during sending request
  78.  
  79. {
  80.    "count":8,
  81.    "next":null,
  82.    "previous":null,
  83.    "results":[
  84.       {
  85.          "date":"2019-06-18T17:21:02.329863Z",
  86.          "status":"Pending",
  87.          "customer":{
  88.             "user":{
  89.                "username":"01751977045",
  90.                "first_name":"HM ",
  91.                "last_name":"Tamim"
  92.             },
  93.             "verified":false,
  94.             "addresses":[
  95.                {
  96.                   "address":"bddfhv, dhaka",
  97.                   "id":32146
  98.                },
  99.                {
  100.                   "address":"B3, 349/A, Road 9, Block C, Bashundhara R/A",
  101.                   "id":40235
  102.                }
  103.             ],
  104.             "shops":[
  105.  
  106.             ],
  107.             "profile_pic_url":null
  108.          },
  109.          "invoice_no":"EVL864608126",
  110.          "device":"web",
  111.          "payment_method":"cod",
  112.          "payment_status":"unpaid"
  113.       },
  114.      ]
  115. }
  116.  
  117.  
  118.  
  119.  
  120. ========================================================
  121.  
  122.  
  123. ***** Make Order API:
  124.  
  125. https://api-prod.evaly.com.bd/api/order/
  126. Authorization: Bearer
  127.  
  128. payload:
  129.  
  130.  
  131. {
  132.    "payment_method":"cod",
  133.    "items":[
  134.       {
  135.          "shop_product_item":{
  136.             "id":179891,
  137.             "price":"205.00",
  138.             "maximum_retail_price":"205.00",
  139.             "in_stock":true,
  140.             "shop":{
  141.                "name":"A Arifin Fusion",
  142.                "logo":"https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/watermarked/2019-06-15_083326.29838855869446_982079232002464_1663395148173672448_n.jpg",
  143.                "address":"House# Ka-16/9, Kuratali, Khilkhet, Dhaka-1229.",
  144.                "slug":"a-arifin-fusion",
  145.                "area":{
  146.                   "name":"Khilkhet",
  147.                   "slug":"khilkhet"
  148.                },
  149.                "selling_items__count":4,
  150.                "owner":{
  151.                   "contact_no":[
  152.                      {
  153.                         "number":"01919431462",
  154.                         "verified":false
  155.                      }
  156.                   ],
  157.                   "verified":false,
  158.                   "username":"01919431462"
  159.                },
  160.                "approved":true,
  161.                "latitude":"23.82219339999999974",
  162.                "longitude":"90.42195359999999482"
  163.             },
  164.             "product_item":{
  165.                "product":{
  166.                   "sku":"0x3012f",
  167.                   "creator":{
  168.                      "username":"01919431462",
  169.                      "datetime":"2019-06-15T13:00:42.211961Z"
  170.                   },
  171.                   "thumbnail":"https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/watermarked/2019-06-16_071255.250620Alpha_Bed__29.jpg",
  172.                   "thumbnail_sm":"https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/watermarked_sm/2019-06-16_071255.250620Alpha_Bed__29_xH4ovBw.jpg",
  173.                   "name":"Super Power LED Tubes",
  174.                   "slug":"super-power-led-tubes",
  175.                   "description":"T8, 30CM, Warehouse, Office, Parking Lot, Supermarket",
  176.                   "price_type":"range",
  177.                   "category":{
  178.                      "name":"Tube Lights",
  179.                      "slug":"tube-lights"
  180.                   },
  181.                   "brand":{
  182.                      "name":"Individual Collections",
  183.                      "slug":"non-brand",
  184.                      "thumbnail":"https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/watermarked/2018-06-13_095616.522804Individual-Collections.jpg",
  185.                      "products_count":53555
  186.                   },
  187.                   "varying_options":[
  188.  
  189.                   ],
  190.                   "items":[
  191.                      128930
  192.                   ],
  193.                   "price_range":{
  194.                      "price__max":205,
  195.                      "price__min":205
  196.                   },
  197.                   "approved":true,
  198.                   "origin_code":"165"
  199.                },
  200.                "varying_options":[
  201.                   [
  202.  
  203.                   ]
  204.                ]
  205.             },
  206.             "wholesale_price":"205.00",
  207.             "minimum_wholesale_quantity":1
  208.          },
  209.          "quantity":1
  210.       }
  211.    ],
  212.    "customer_address":{
  213.       "address":null,
  214.       "address_id":32146
  215.    }
  216. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top