Assign a specified customer to a specified shopping cart
Assign a specified customer to a specified shopping cart.
Path parameters
-
The cart ID.
Body
-
The customer ID.
PUT /V1/guest-carts/{cartId}
curl \
-X PUT https://magento2.winkelstraat.mac/rest/all/V1/guest-carts/{cartId} \
-d '{"customerId":42,"storeId":42}'
Request examples
{
"customerId": 42,
"storeId": 42
}
Response examples (200)
true
Response examples (401)
{
"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"
}