data-src=../../../includes/paas-only.md

Step 4. Create a quote

When a customer adds an item to their shopping cart for the first time, Adobe Commerce creates a quote. Commerce uses a quote to perform tasks such as

Types of carts

Commerce identifies three types of users that can create a shopping cart:

Create a cart for a logged-in customer

All calls for a logged in customer must specify customer's token q0u66k8h42yaevtchv09uyy3y9gaj2ap in the header.

data-variant=info
data-slots=text
Use the V1/guest-carts endpoint to create a cart on behalf of a guest. Do not include an authorization token. The quoteId for the guest customer quote will be masked.

Endpoint:

POST <host>/rest/<store_code>/V1/carts/mine

Headers:

Content-Type: application/json

Authorization: Bearer <customer token>

Payload:

None

Response:

The response is the quoteId: 4

data-variant=success
data-slots=text
Some calls refer to this parameter as the cartId.

Verify this step

There are no additional verification steps.quoteId values are not displayed on the website or in Admin.