You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: oas/api/openapi.yaml
+9-22Lines changed: 9 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -9235,9 +9235,6 @@ paths:
9235
9235
- "manage_customers:{projectKey}"
9236
9236
operationId: ByProjectKeyCustomersPost
9237
9237
description: |-
9238
-
If the `anonymousCart` field is set on the [CustomerDraft](ctp:api:type:CustomerDraft), then the newly created Customer will be assigned to that [Cart](ctp:api:type:Cart).
9239
-
Similarly, if the `anonymousId` field is set, the Customer will be set on all [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [ShoppingLists](ctp:api:type:ShoppingList) and [Payments](ctp:api:type:Payment) with the same `anonymousId`.
9240
-
9241
9238
Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message. Simultaneously creating two Customers with the same email address can return a [LockedField](ctp:api:type:LockedFieldError) error.
9242
9239
parameters:
9243
9240
- name: expand
@@ -13865,10 +13862,10 @@ paths:
13865
13862
description: |-
13866
13863
When using this endpoint, if omitted, the Customer `stores` field is set to the [Store](ctp:api:type:Store) specified in the path parameter.
13867
13864
13868
-
If the `anonymousCart` field is set on the [CustomerDraft](ctp:api:type:CustomerDraft), then the newly created Customer will be assigned to that [Cart](ctp:api:type:Cart).
13869
-
Similarly, if the `anonymousId` field is set, the Customer will be set on all [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [ShoppingLists](ctp:api:type:ShoppingList) and [Payments](ctp:api:type:Payment) with the same `anonymousId`.
13870
13865
If a Cart with a `store` field specified, the `store` field must reference the same [Store](ctp:api:type:Store) specified in the `{storeKey}` path parameter.
13871
13866
13867
+
If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
13868
+
13872
13869
Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message. Simultaneously creating two Customers with the same email address can return a [LockedField](ctp:api:type:LockedFieldError) error.
Authenticates a Customer associated with a [Store](ctp:api:type:Store). For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers).
14715
-
14716
-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
14711
+
Authenticates a Customer associated with a [Store](ctp:api:type:Store).
14717
14712
14718
-
Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
14713
+
If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
14719
14714
14720
14715
If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error.
14721
14716
requestBody:
@@ -15508,8 +15503,6 @@ paths:
15508
15503
- If the Customer does not have a Cart, the most recently modified anonymous cart becomes the Customer's Cart.
15509
15504
- If the Customer already has a Cart, the most recently modified anonymous cart is handled according to [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
15510
15505
15511
-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
15512
-
15513
15506
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
15514
15507
requestBody:
15515
15508
content:
@@ -16675,7 +16668,7 @@ paths:
16675
16668
16676
16669
If omitted in the request body, the [Customer](ctp:api:type:Customer) `stores` field is set to the [Store](ctp:api:type:Store) specified in the path parameter.
16677
16670
16678
-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
16671
+
If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
16679
16672
16680
16673
Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message.
16681
16674
requestBody:
@@ -21363,13 +21356,9 @@ paths:
21363
21356
- "manage_customers:{projectKey}"
21364
21357
operationId: ByProjectKeyLoginPost
21365
21358
description: |-
21366
-
Authenticates a global Customer not associated with a Store.
21367
-
For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers).
21368
-
If the Customer is registered in a Store, use the [Authenticate (sign in) Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/login:POST) method.
21369
-
21370
-
Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
21359
+
Authenticates a global Customer.
21371
21360
21372
-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
21361
+
If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
21373
21362
21374
21363
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
21375
21364
requestBody:
@@ -22648,8 +22637,6 @@ paths:
22648
22637
- If the Customer does not have a Cart yet, the most recently modified anonymous cart becomes the Customer's Cart.
22649
22638
- If the Customer already has a Cart, the most recently modified anonymous cart is handled in accordance with [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
22650
22639
22651
-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
22652
-
22653
22640
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
22654
22641
requestBody:
22655
22642
content:
@@ -48023,8 +48010,8 @@ components:
48023
48010
x-annotation-package: "Customer"
48024
48011
x-annotation-enumDescriptions:
48025
48012
MergeWithExistingCustomerCart: "If set, the content of an anonymous [Cart is merged
48026
-
during sign-in](/../api/customers-overview#cart-merge-during-sign-in) with the
48027
-
Customer's most recently modified active Cart."
48013
+
during sign-in](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up)
48014
+
with the Customer's most recently modified active Cart."
48028
48015
UseAsNewActiveCustomerCart: "If set, an anonymous Cart is used as the new active Customer
48029
48016
Cart, and no [LineItems](ctp:api:type:LineItem) or [CustomLineItems](ctp:api:type:CustomLineItem)
0 commit comments