Cart
Create/Update Customer Information For Cart
Cart
Create/Update Customer Information For Cart
Create or update customer information for the cart
POST
/
cart
/
customerInfo
curl --request POST \
--url https://client-request-service-staging-wghsjlqnoa-uw.a.run.app/cart/customerInfo \
--header 'Content-Type: application/json' \
--data '{
"id": "<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>"
}
}'
{
"cart": {
"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
}
]
}
}
Body
application/json
The unique identifier for the cart
Response
200 - application/json
Successfully created or updated customer information
curl --request POST \
--url https://client-request-service-staging-wghsjlqnoa-uw.a.run.app/cart/customerInfo \
--header 'Content-Type: application/json' \
--data '{
"id": "<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>"
}
}'
{
"cart": {
"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
}
]
}
}