Cart
Get Cart By ID
Cart
Get Cart By ID
Fetches the details of a cart, including items, buyer identity, and costs.
GET
/
cart
/
{id}
curl --request GET \
--url https://client-request-service-staging-wghsjlqnoa-uw.a.run.app/cart/{id}
{
"id": "<string>",
"cost": {
"is_estimated": true,
"subtotal": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"tax": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"shipping": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"total": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
},
"buyer_identity": {
"first_name": "<string>",
"last_name": "<string>",
"address_1": "<string>",
"address_2": "<string>",
"city": "<string>",
"province_code": "<string>",
"country_code": "<string>",
"postal_code": "<string>",
"email": "<string>",
"phone": "<string>"
},
"stores": [
{
"store": "<string>",
"request_id": "<string>",
"cart_lines": [
{
"quantity": 123,
"variant": {
"id": "<string>",
"title": "<string>",
"marketplace": "<string>",
"description": "<string>",
"is_available": true,
"price": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
},
"product": {
"id": "<string>",
"title": "<string>",
"marketplace": "<string>",
"description": "<string>",
"is_available": true,
"price": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
}
}
],
"offer": {
"subtotal": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"margin": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"not_available_ids": [
"<string>"
],
"shipping_methods": [
{
"id": "<string>",
"label": "<string>",
"price": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"taxes": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"total": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
}
],
"selected_shipping_method": {
"id": "<string>",
"label": "<string>",
"price": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"taxes": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"total": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
}
},
"is_submitted": true
}
]
}
Path Parameters
Response
200
application/json
Successfully retrieved cart details
Unique identifier for the cart
curl --request GET \
--url https://client-request-service-staging-wghsjlqnoa-uw.a.run.app/cart/{id}
{
"id": "<string>",
"cost": {
"is_estimated": true,
"subtotal": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"tax": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"shipping": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"total": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
},
"buyer_identity": {
"first_name": "<string>",
"last_name": "<string>",
"address_1": "<string>",
"address_2": "<string>",
"city": "<string>",
"province_code": "<string>",
"country_code": "<string>",
"postal_code": "<string>",
"email": "<string>",
"phone": "<string>"
},
"stores": [
{
"store": "<string>",
"request_id": "<string>",
"cart_lines": [
{
"quantity": 123,
"variant": {
"id": "<string>",
"title": "<string>",
"marketplace": "<string>",
"description": "<string>",
"is_available": true,
"price": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
},
"product": {
"id": "<string>",
"title": "<string>",
"marketplace": "<string>",
"description": "<string>",
"is_available": true,
"price": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
}
}
],
"offer": {
"subtotal": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"margin": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"not_available_ids": [
"<string>"
],
"shipping_methods": [
{
"id": "<string>",
"label": "<string>",
"price": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"taxes": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"total": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
}
],
"selected_shipping_method": {
"id": "<string>",
"label": "<string>",
"price": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"taxes": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
},
"total": {
"value": 123,
"display_value": "<string>",
"currency": "<string>"
}
}
},
"is_submitted": true
}
]
}