View Cart

From KartRocket API
Jump to: navigation, search

Request

User can View Cart making a HTTP GET Request on the following URL:


YOUR_STORE_URL_ON_KARTROCKET.'index.php?route=checkout/cart/apiViewCart&key'=TESTAPI

Example

http://test.kartrocket.co/index.php?route=checkout/cart/apiViewCart&key=TESTAPI

Response

You will get the following response to the above GET request.


       {"success":true,"products":
       [{
       "product_id":"1",
       "key":1,
       "thumb":http://res.cloudinary.com/kartrocket/image/fetch/w_250,q_80,h_150,c_pad,b_white,f_auto,fl_progressive/http%3A%2F%2Fkartrocket-mtp.s3.amazonaws.com%2Fall-     stores%2Fimage_anchal%2Fdata%2Flogo%2F11474109494709-Aurelia-Yellow-Woven-Design-Kurta-3291474109494344-1.jpg
       "name":"Product 1",
       "model":"P1",
       "sku":"TC0078BE",
       "option":[],
       "quantity":1,
       "stock":true,
       "price":"Rs.10",
       "total":"Rs.10"
       }]
       "totals":[{
       "code":"sub_total",
       "title":"Sub-Total",
       "text":"Rs.10",
       "value":10,
       "sort_order":"1"
       }
       {
       "code":"total",
       "title":"Total",
       "text":"Rs.10",
       "value":10,
       "sort_order":"9"
       }
      ]}