Skip to content

Get current cart of user

GET
/users/{userId}/cartId
curl --request GET \
--url https://myshop.com/shopgate/v1/users/example/cartId \
--header 'Authorization: Bearer <token>'

Returns the given user’s cart ID.

userId
required
string
Media typeapplication/json
object
cartId
string
Examplegenerated
{
"cartId": "example"
}
Media typeapplication/json
object
message
string
name
string
Example
{
"message": "Invalid token: access token is invalid",
"name": "invalid_token"
}
Media typeapplication/json
object
message
string
Example
{
"message": "Not found"
}