Enable a guest user to return information for a specified cart
Enable a guest user to return information for a specified cart.
GET /V1/guest-carts/{cartId}
curl \
-X GET https://magento2.winkelstraat.mac/rest/all/V1/guest-carts/{cartId}
Response examples (200)
{
"id": 42,
"created_at": "string",
"updated_at": "string",
"converted_at": "string",
"is_active": true,
"is_virtual": true,
"items": [
{
"item_id": 42,
"sku": "string",
"qty": 42.0,
"name": "string",
"price": 42.0,
"product_type": "string",
"quote_id": "string",
"product_option": {
"extension_attributes": {
"custom_options": [
{
"option_id": "string",
"option_value": "string",
"extension_attributes": {
"file_info": {
"base64_encoded_data": "string",
"type": "string",
"name": "string"
}
}
}
],
"bundle_options": [
{
"option_id": 42,
"option_qty": 42,
"option_selections": [
42
],
"extension_attributes": {}
}
],
"downloadable_option": {
"downloadable_links": [
42
]
},
"giftcard_item_option": {
"giftcard_amount": "string",
"custom_giftcard_amount": 42.0,
"giftcard_sender_name": "string",
"giftcard_recipient_name": "string",
"giftcard_sender_email": "string",
"giftcard_recipient_email": "string",
"giftcard_message": "string",
"extension_attributes": {
"giftcard_created_codes": [
"string"
]
}
},
"configurable_item_options": [
{
"option_id": "string",
"option_value": "string",
"extension_attributes": {}
}
],
"grouped_options": [
{
"id": 42,
"qty": 42,
"extension_attributes": {}
}
]
}
},
"extension_attributes": {
"discounts": [
{
"discount_data": {
"amount": 42.0,
"base_amount": 42.0,
"original_amount": 42.0,
"base_original_amount": 42.0
},
"rule_label": "string",
"rule_i_d": 42
}
],
"negotiable_quote_item": {
"item_id": 42,
"original_price": 42.0,
"original_tax_amount": 42.0,
"original_discount_amount": 42.0,
"extension_attributes": {
"negotiated_price_type": 42,
"negotiated_price_value": 42.0,
"last_item_notes": [
{
"note_id": 42,
"negotiable_quote_item_id": 42,
"creator_type": 42,
"creator_id": 42,
"note": "string",
"created_at": "string",
"extension_attributes": {}
}
]
}
},
"size": "string",
"color": "string",
"merchant_product_reference": "string",
"category_code": "string",
"image": "string",
"mpn": "string",
"msrp": 42.0,
"manufacturer_code": "string",
"manufacturer_name": "string",
"merchant_code": "string",
"merchant_name": "string",
"merchant_city": "string",
"parent_sku": "string",
"is_sale": true,
"return_item_fee": 42.0,
"base_return_item_fee": 42.0,
"is_outlet": true
}
}
],
"items_count": 42,
"items_qty": 42.0,
"customer": {
"id": 42,
"group_id": 42,
"default_billing": "string",
"default_shipping": "string",
"confirmation": "string",
"created_at": "string",
"updated_at": "string",
"created_in": "string",
"dob": "string",
"email": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"gender": 42,
"store_id": 42,
"taxvat": "string",
"website_id": 42,
"addresses": [
{
"id": 42,
"customer_id": 42,
"region": {
"region_code": "string",
"region": "string",
"region_id": 42,
"extension_attributes": {}
},
"region_id": 42,
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"default_shipping": true,
"default_billing": true,
"extension_attributes": {},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
}
],
"disable_auto_group_change": 42,
"extension_attributes": {
"company_attributes": {
"customer_id": 42,
"company_id": 42,
"job_title": "string",
"status": 42,
"telephone": "string",
"extension_attributes": {}
},
"is_subscribed": true,
"assistance_allowed": 42
},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
},
"billing_address": {
"id": 42,
"region": "string",
"region_id": 42,
"region_code": "string",
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 42,
"email": "string",
"same_as_billing": 42,
"customer_address_id": 42,
"save_in_address_book": 42,
"extension_attributes": {
"discounts": [
{
"discount_data": {
"amount": 42.0,
"base_amount": 42.0,
"original_amount": 42.0,
"base_original_amount": 42.0
},
"rule_label": "string",
"rule_i_d": 42
}
],
"gift_registry_id": 42,
"pickup_location_code": "string"
},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
},
"reserved_order_id": "string",
"orig_order_id": 42,
"currency": {
"global_currency_code": "string",
"base_currency_code": "string",
"store_currency_code": "string",
"quote_currency_code": "string",
"store_to_base_rate": 42.0,
"store_to_quote_rate": 42.0,
"base_to_global_rate": 42.0,
"base_to_quote_rate": 42.0,
"extension_attributes": {}
},
"customer_is_guest": true,
"customer_note": "string",
"customer_note_notify": true,
"customer_tax_class_id": 42,
"store_id": 42,
"extension_attributes": {
"shipping_assignments": [
{
"shipping": {
"address": {
"id": 42,
"region": "string",
"region_id": 42,
"region_code": "string",
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 42,
"email": "string",
"same_as_billing": 42,
"customer_address_id": 42,
"save_in_address_book": 42,
"extension_attributes": {
"discounts": [
{
"discount_data": {
"amount": 42.0,
"base_amount": 42.0,
"original_amount": 42.0,
"base_original_amount": 42.0
},
"rule_label": "string",
"rule_i_d": 42
}
],
"gift_registry_id": 42,
"pickup_location_code": "string"
},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
},
"method": "string",
"extension_attributes": {}
},
"items": [
{
"item_id": 42,
"sku": "string",
"qty": 42.0,
"name": "string",
"price": 42.0,
"product_type": "string",
"quote_id": "string",
"product_option": {
"extension_attributes": {
"custom_options": [
{
"option_id": "string",
"option_value": "string",
"extension_attributes": {
"file_info": {
"base64_encoded_data": "string",
"type": "string",
"name": "string"
}
}
}
],
"bundle_options": [
{
"option_id": 42,
"option_qty": 42,
"option_selections": [
42
],
"extension_attributes": {}
}
],
"downloadable_option": {
"downloadable_links": [
42
]
},
"giftcard_item_option": {
"giftcard_amount": "string",
"custom_giftcard_amount": 42.0,
"giftcard_sender_name": "string",
"giftcard_recipient_name": "string",
"giftcard_sender_email": "string",
"giftcard_recipient_email": "string",
"giftcard_message": "string",
"extension_attributes": {
"giftcard_created_codes": [
"string"
]
}
},
"configurable_item_options": [
{
"option_id": "string",
"option_value": "string",
"extension_attributes": {}
}
],
"grouped_options": [
{
"id": 42,
"qty": 42,
"extension_attributes": {}
}
]
}
},
"extension_attributes": {
"discounts": [
{
"discount_data": {
"amount": 42.0,
"base_amount": 42.0,
"original_amount": 42.0,
"base_original_amount": 42.0
},
"rule_label": "string",
"rule_i_d": 42
}
],
"negotiable_quote_item": {
"item_id": 42,
"original_price": 42.0,
"original_tax_amount": 42.0,
"original_discount_amount": 42.0,
"extension_attributes": {
"negotiated_price_type": 42,
"negotiated_price_value": 42.0,
"last_item_notes": [
{
"note_id": 42,
"negotiable_quote_item_id": 42,
"creator_type": 42,
"creator_id": 42,
"note": "string",
"created_at": "string",
"extension_attributes": {}
}
]
}
},
"size": "string",
"color": "string",
"merchant_product_reference": "string",
"category_code": "string",
"image": "string",
"mpn": "string",
"msrp": 42.0,
"manufacturer_code": "string",
"manufacturer_name": "string",
"merchant_code": "string",
"merchant_name": "string",
"merchant_city": "string",
"parent_sku": "string",
"is_sale": true,
"return_item_fee": 42.0,
"base_return_item_fee": 42.0,
"is_outlet": true
}
}
],
"extension_attributes": {}
}
],
"negotiable_quote": {
"quote_id": 42,
"is_regular_quote": true,
"status": "string",
"negotiated_price_type": 42,
"negotiated_price_value": 42.0,
"shipping_price": 42.0,
"quote_name": "string",
"expiration_period": "string",
"email_notification_status": 42,
"has_unconfirmed_changes": true,
"is_shipping_tax_changed": true,
"is_customer_price_changed": true,
"notifications": 42,
"applied_rule_ids": "string",
"is_address_draft": true,
"deleted_sku": "string",
"creator_id": 42,
"creator_type": 42,
"original_total_price": 42.0,
"base_original_total_price": 42.0,
"negotiated_total_price": 42.0,
"base_negotiated_total_price": 42.0,
"extension_attributes": {}
},
"coupon_codes": [
"string"
],
"origin": "string",
"company_id": 42
}
}
Response examples (400)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}