View Cart
This cURL request interacts with the Magento REST API to retrieve the details of the current customer's shopping cart.
curl --location '{{Base_url}}/rest/V1/carts/mine' \
--header 'Authorization: Bearer eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOjIyNjE4OSwidXR5cGlkIjozLCJpYXQiOjE3Mzc0NDE0MTcsImV4cCI6MTczNzQ0NTAxN30.xB_tImU6iGs2f8ehwgveJfdVvDG3nWzsunGh96HKXr8' \
--header 'Cookie: PHPSESSID=ahe98g76v38cnn70hiot92saio; private_content_version=5ab80b7def0c212f723edead3c971a19'{
"id": 615982,
"created_at": "2025-01-21 06:22:47",
"updated_at": "2025-01-21 13:06:09",
"is_active": true,
"is_virtual": false,
"items": [
{
"item_id": 97337,
"sku": "IFPZMB-RD0",
"qty": 1,
"name": "iFrogz Audio- Ear Pollution Plugz with Mic - Red",
"price": 399,
"product_type": "simple",
"quote_id": "615982"
}
],
"items_count": 1,
"items_qty": 1,
"customer": {
"id": 210027,
"group_id": 1,
"default_billing": "18102",
"default_shipping": "18102",
"created_at": "2024-05-28 08:16:06",
"updated_at": "2025-01-21 13:00:40",
"created_in": "Default Store View",
"email": "qa@zrpl.co.in",
"firstname": "qa",
"lastname": "qa",
"gender": 0,
"store_id": 1,
"website_id": 1,
"addresses": [
{
"id": 18102,
"customer_id": 210027,
"region": {
"region_code": "AP",
"region": "Andhra Pradesh",
"region_id": 534
},
"region_id": 534,
"country_id": "IN",
"street": [
"hsr",
"banglore"
],
"telephone": "7095078863",
"postcode": "535101",
"city": "VIZIANAGARAM",
"firstname": "second",
"lastname": "qa",
"default_shipping": true,
"default_billing": true
},
{
"id": 18145,
"customer_id": 210027,
"region": {
"region_code": "KA",
"region": "Karnataka",
"region_id": 549
},
"region_id": 549,
"country_id": "IN",
"street": [
"test",
"qaqa"
],
"telephone": "7095078863",
"postcode": "560034",
"city": "BENGALURU URBAN",
"firstname": "Surya",
"lastname": "qa"
}
],
"disable_auto_group_change": 0,
"extension_attributes": {
"is_subscribed": false
},
"custom_attributes": [
{
"attribute_code": "reward_balance",
"value": "0"
},
{
"attribute_code": "reward_amount",
"value": "0"
},
{
"attribute_code": "isautocreated",
"value": "0"
},
{
"attribute_code": "mobile_number",
"value": "7095078863"
},
{
"attribute_code": "monthly_purchase_cap",
"value": "499"
}
]
},
"billing_address": {
"id": 1090269,
"region": "Andhra Pradesh",
"region_id": 534,
"region_code": "AP",
"country_id": "IN",
"street": [
"hsr",
"banglore"
],
"telephone": "7095078863",
"postcode": "535101",
"city": "VIZIANAGARAM",
"firstname": "second",
"lastname": "qa",
"customer_id": 210027,
"email": "qa@zrpl.co.in",
"same_as_billing": 0,
"customer_address_id": 18102,
"save_in_address_book": 0
},
"orig_order_id": 0,
"currency": {
"global_currency_code": "INR",
"base_currency_code": "INR",
"store_currency_code": "INR",
"quote_currency_code": "INR",
"store_to_base_rate": 0,
"store_to_quote_rate": 0,
"base_to_global_rate": 1,
"base_to_quote_rate": 1
},
"customer_is_guest": false,
"customer_note_notify": true,
"customer_tax_class_id": 3,
"store_id": 1,
"extension_attributes": {
"shipping_assignments": [
{
"shipping": {
"address": {
"id": 1090270,
"region": null,
"region_id": null,
"region_code": null,
"country_id": null,
"street": [
""
],
"telephone": null,
"postcode": null,
"city": null,
"firstname": null,
"lastname": null,
"customer_id": 210027,
"email": "qa@zrpl.co.in",
"same_as_billing": 1,
"customer_address_id": 18102,
"save_in_address_book": 0
},
"method": null
},
"items": [
{
"item_id": 97337,
"sku": "IFPZMB-RD0",
"qty": 1,
"name": "iFrogz Audio- Ear Pollution Plugz with Mic - Red",
"price": 399,
"product_type": "simple",
"quote_id": "615982"
}
]
}
]
}
}Cart-Level Attributes:
Customer Information (customer):
customer):Billing Address (billing_address):
billing_address):Currency Information (currency):
currency):Customer and Store Information:
Extension Attributes:
Last updated