Skip to content

Instantly share code, notes, and snippets.

@deathping1994

deathping1994/cart

Created Aug 1, 2020
Embed
What would you like to do?
{
"data": {
"cartId": "cd6ecc1e4071119c5bf89f8d308885d6",
"ids": [
229,
94,
276
],
"cartMap": {
"94": {
"item_id": 7894163,
"id": 94,
"product_id": 94,
"old_productid": 370948,
"categories": [
"2",
"80",
"3",
"41",
"101",
"104"
],
"sku": "8906087771142",
"qty": 1,
"name": "Plant based laundry detergent, 1000ml (Saver Pack, get 40% extra)",
"price": "599.00",
"price_excl_tax": 507.63,
"slug": "plant-based-laundry-detergent-1000ml",
"image": "https://d2qthgtcaybqwj.cloudfront.net/catalog/product/1/_/1.jpg",
"product_type": "simple",
"quote_id": "cd6ecc1e4071119c5bf89f8d308885d6"
},
"229": {
"item_id": 7894159,
"id": 229,
"product_id": 229,
"old_productid": 229,
"categories": [
"2",
"3",
"41",
"101",
"104",
"88"
],
"sku": "8906087772774",
"qty": 1,
"name": "Plant Based Laundry Detergent 200ml (Pack of 2)",
"price": "389.00",
"price_excl_tax": 329.66,
"slug": "plant-based-laundry-detergent-200ml-pack-of-2",
"image": "https://d2qthgtcaybqwj.cloudfront.net/catalog/product/l/a/laundry_200ml_pack_of_2.jpg",
"product_type": "simple",
"quote_id": "cd6ecc1e4071119c5bf89f8d308885d6"
},
"276": {
"item_id": 7969609,
"id": 276,
"product_id": 276,
"old_productid": 276,
"categories": [
"2",
"3",
"41",
"80",
"101",
"107",
"112",
"51"
],
"sku": "8906087772613",
"qty": 1,
"name": "Dusting Powder with Organic Oatmeal & Arrowroot Powder for Babies - 300g",
"price": "349.00",
"price_excl_tax": 295.76,
"slug": "mamaearth-dusting-powder-with-organic-oatmeal-arrowroot-powder-for-babies-300g",
"image": "https://d2qthgtcaybqwj.cloudfront.net/catalog/product/d/u/dusting-powder_300g_with-props_1200x1200_.jpg",
"product_type": "simple",
"quote_id": "cd6ecc1e4071119c5bf89f8d308885d6"
}
},
"recentRemovals": [
],
"appliedRules": [
{
"rule_name": "20 Percent off ",
"rule_description": "20 Percent off ",
"action_type": "Percent of product price discount",
"action_amount": 20,
"action_key": "percentage",
"rule_type": "Discount",
"amount": -267.4,
"non_kit_product_total": 0
}
],
"wishlist": [
],
"inertProducts": [
]
},
"open": false
},
"checkout": {
"walletChecked": false,
"otpLoading": false,
"loading": false,
"placeOrderLoading": false,
"paymentFailed": false,
"paymentError": "",
"error": false,
"data": {
"shipping": false,
"totals": {
"grand_total": 906.44,
"base_grand_total": 1069.6,
"subtotal": 1133.05,
"base_subtotal": 1133.05,
"discount_amount": -267.4,
"base_discount_amount": -267.4,
"subtotal_with_discount": 865.65,
"base_subtotal_with_discount": 865.65,
"shipping_amount": 0,
"base_shipping_amount": 0,
"shipping_discount_amount": 0,
"base_shipping_discount_amount": 0,
"tax_amount": 163.16,
"base_tax_amount": 163.16,
"weee_tax_applied_amount": null,
"shipping_tax_amount": 0,
"base_shipping_tax_amount": 0,
"subtotal_incl_tax": 1337,
"shipping_incl_tax": 0,
"base_shipping_incl_tax": 0,
"base_currency_code": "INR",
"quote_currency_code": "INR",
"coupon_code": "mama20",
"items_qty": 3,
"items": [
{
"item_id": 7894159,
"price": 329.66,
"base_price": 329.66,
"qty": 1,
"row_total": 329.66,
"base_row_total": 329.66,
"row_total_with_discount": 0,
"tax_amount": 47.47,
"base_tax_amount": 47.47,
"tax_percent": 18,
"discount_amount": 77.8,
"base_discount_amount": 77.8,
"discount_percent": 20,
"price_incl_tax": 389,
"base_price_incl_tax": 389,
"row_total_incl_tax": 389,
"base_row_total_incl_tax": 389,
"options": "[]",
"weee_tax_applied_amount": null,
"weee_tax_applied": null,
"name": "Plant Based Laundry Detergent 200ml (Pack of 2)"
},
{
"item_id": 7894163,
"price": 507.63,
"base_price": 507.63,
"qty": 1,
"row_total": 507.63,
"base_row_total": 507.63,
"row_total_with_discount": 0,
"tax_amount": 73.1,
"base_tax_amount": 73.1,
"tax_percent": 18,
"discount_amount": 119.8,
"base_discount_amount": 119.8,
"discount_percent": 20,
"price_incl_tax": 599,
"base_price_incl_tax": 599,
"row_total_incl_tax": 599,
"base_row_total_incl_tax": 599,
"options": "[]",
"weee_tax_applied_amount": null,
"weee_tax_applied": null,
"name": "Plant based laundry detergent, 1000ml (Saver Pack, get 40% extra)"
},
{
"item_id": 7969609,
"price": 295.76,
"base_price": 295.76,
"qty": 1,
"row_total": 295.76,
"base_row_total": 295.76,
"row_total_with_discount": 0,
"tax_amount": 42.59,
"base_tax_amount": 42.59,
"tax_percent": 18,
"discount_amount": 69.8,
"base_discount_amount": 69.8,
"discount_percent": 20,
"price_incl_tax": 349,
"base_price_incl_tax": 349,
"row_total_incl_tax": 349,
"base_row_total_incl_tax": 349,
"options": "[]",
"weee_tax_applied_amount": null,
"weee_tax_applied": null,
"name": "Dusting Powder with Organic Oatmeal & Arrowroot Powder for Babies - 300g"
}
],
"total_segments": [
{
"code": "subtotal",
"title": "Subtotal",
"value": 1337
},
{
"code": "shipping",
"title": "Shipping & Handling",
"value": 0
},
{
"code": "discount",
"title": "Discount (mama20)",
"value": -267.4
},
{
"code": "tax",
"title": "Tax",
"value": 163.16,
"area": "taxes",
"extension_attributes": {
"tax_grandtotal_details": [
{
"amount": 163.16,
"rates": [
{
"percent": "18",
"title": "GST 18% "
}
],
"group_id": 1
}
]
}
},
{
"code": "testdiscount",
"title": "Discount (mama20)",
"value": -267.4
},
{
"code": "custom_payment_mutation",
"title": "5% online payment discount",
"value": -53.48
},
{
"code": "grand_total_adjusted",
"title": "Grand Total",
"value": 1016.1199999999999
},
{
"code": "grand_total",
"title": "Grand Total",
"value": 1069.6,
"area": "footer"
},
{
"code": "reward",
"title": "0 Reward points",
"value": 0
}
],
"extension_attributes": {
"reward_points_balance": 0,
"reward_currency_amount": 0,
"base_reward_currency_amount": 0
}
},
"order": false,
"confirmedOrder": false,
"paymentEntity": false,
"paymentMethods": false,
"otp": {
"contact": false,
"sessionId": false
}
},
"meta": {
"trackingData": false,
"order": {
"comment": "",
"payMethod": "",
"methodFields": {
},
"billingAddress": false,
"shippingAddress": false,
"selectedPaymentMethod": "razorpay",
"availablePaymentMethods": [
"razorpay",
"paypal",
"cod"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.