docs: add clarification for set cart's customer API route (#13506)

This commit is contained in:
Shahed Nasser
2025-09-15 14:32:36 +03:00
committed by GitHub
parent 2ceed66b4d
commit 9f7df88c84
33 changed files with 92 additions and 32 deletions

View File

@@ -1,15 +1,16 @@
post:
operationId: PostCartsIdCustomer
summary: Set Cart's Customer
x-sidebar-summary: Set Customer
summary: Change Cart's Customer to Logged-in Customer
x-sidebar-summary: Change Customer
description: >-
Set the customer of the cart. This is useful when you create the cart for a
guest customer, then they log in with their account.
Change the cart's customer to the currently logged-in customer. This is
useful when you create the cart for a guest customer, then they log in with
their account.
externalDocs:
url: >-
https://docs.medusajs.com/resources/storefront-development/cart/update#set-carts-customer
description: 'Storefront guide: How to set the cart''s customer.'
x-authenticated: false
x-authenticated: true
parameters:
- name: id
in: path
@@ -88,3 +89,6 @@ post:
description: Emitted when the customer in the cart is transferred.
deprecated: false
since: 2.8.0
security:
- cookie_auth: []
- jwt_token: []