Ask your Question

Play online Skills Quiz

PEOPLE YOU MIGHT KNOW

Chữa vô sinh hiếm muộn
Chữa vô sinh hiếm muộn

chuavosinhhh

Hà Nội,  Vietnam
Bakefresh
Bakefresh

Ludhiana,  India
ellen
ellen

Napakiak,  United States
Top App
Top App

New York,  United States
Anjani
Anjani

Art Work

Varanasi,  India

Write to us

Ask Question

Magento 2 API Get Cart Details For Guest Customer

Magento 2 API Get Cart Details For Guest Customer

ENDPOINT :  /rest/V1/guest-carts/{CartId}

   e.g :  http://localhost.magento.com/rest/V1/guest-carts/DnsT4UjkMPPdID4K53h4ToaXMSElc8pI

METHOD : GET

HEADERS : Content-Type application/json

                      Authorization : Bearer

PARAMETERS
 None

PAYLOAD:
   None

Response :
 
 {
    "id": 12,
    "created_at": "2020-09-16 17:42:04",
    "updated_at": "2020-09-16 17:53:55",
    "is_active": true,
    "is_virtual": false,
    "items": [
        {
            "item_id": 26,
            "sku": "24-MB04",
            "qty": 1,
            "name": "Strive Shoulder Pack",
            "price": 32,
            "product_type": "simple",
            "quote_id": "12"
        }
    ],
    "items_count": 1,
    "items_qty": 1,
    "customer": {
        "email": null,
        "firstname": null,
        "lastname": null
    },
    "billing_address": {
        "id": 26,
        "region": null,
        "region_id": null,
        "region_code": null,
        "country_id": null,
        "street": [
            ""
        ],
        "telephone": null,
        "postcode": null,
        "city": null,
        "firstname": null,
        "lastname": null,
        "email": null,
        "same_as_billing": 0,
        "save_in_address_book": 0
    },
    "orig_order_id": 0,
    "currency": {
        "global_currency_code": "USD",
        "base_currency_code": "USD",
        "store_currency_code": "USD",
        "quote_currency_code": "USD",
        "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": 27,
                        "region": null,
                        "region_id": null,
                        "region_code": null,
                        "country_id": null,
                        "street": [
                            ""
                        ],
                        "telephone": null,
                        "postcode": null,
                        "city": null,
                        "firstname": null,
                        "lastname": null,
                        "email": null,
                        "same_as_billing": 1,
                        "save_in_address_book": 0
                    },
                    "method": null
                },
                "items": [
                    {
                        "item_id": 26,
                        "sku": "24-MB04",
                        "qty": 1,
                        "name": "Strive Shoulder Pack",
                        "price": 32,
                        "product_type": "simple",
                        "quote_id": "12"
                    }
                ]
            }
        ]
    }
}

0   0
Eecrets Magento

Related Post

18th September 2020

Magento 2 Rest API Place Order For Guest Customer

Magento 2 Rest API Step By StepPlace Order For Guest Customer....

read more reply

List Your Business

Improve Your Business Visibility

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site