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
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).
3010
-
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`.
3011
-
3012
3009
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.
3013
3010
3014
3011
@@ -4573,10 +4570,10 @@ $request = $builder
4573
4570
4574
4571
When using this endpoint, if omitted, the Customer `stores` field is set to the [Store](ctp:api:type:Store) specified in the path parameter.
4575
4572
4576
-
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).
4577
-
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`.
4578
4573
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.
4579
4574
4575
+
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.
4576
+
4580
4577
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).
4880
+
Authenticates a Customer associated with a [Store](ctp:api:type:Store).
4884
4881
4885
-
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).
4886
-
4887
-
Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
4882
+
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.
4888
4883
4889
4884
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.
4890
4885
@@ -5197,8 +5192,6 @@ If used with an optional [access token for an anonymous session](ctp:api:type:An
5197
5192
- If the Customer does not have a Cart, the most recently modified anonymous cart becomes the Customer's Cart.
5198
5193
- If the Customer already has a Cart, the most recently modified anonymous cart is handled according to [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
5199
5194
5200
-
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).
5201
-
5202
5195
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
If used with an optional [access token for an anonymous session](ctp:api:type:AnonymousSession), all Orders and Carts that belong to the `anonymousId` are assigned to the newly created Customer.
5660
5652
5661
5653
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.
5662
5654
5663
-
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).
5655
+
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.
5664
5656
5665
5657
Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message.
Authenticates a global Customer not associated with a Store.
7140
-
For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers).
7141
-
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.
7142
-
7143
-
Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
7131
+
Authenticates a global Customer.
7144
7132
7145
-
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).
7133
+
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.
7146
7134
7147
7135
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
7148
7136
@@ -7599,8 +7587,6 @@ If used with an optional [access token for an anonymous session](ctp:api:type:An
7599
7587
- If the Customer does not have a Cart yet, the most recently modified anonymous cart becomes the Customer's Cart.
7600
7588
- If the Customer already has a Cart, the most recently modified anonymous cart is handled in accordance with [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
7601
7589
7602
-
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).
7603
-
7604
7590
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Customer/CustomerDraft.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -135,15 +135,16 @@ public function getTitle();
135
135
publicfunctiongetAnonymousCartId();
136
136
137
137
/**
138
-
* <p>Identifies a <a href="ctp:api:type:Cart">Cart</a> that will be assigned to the new Customer.</p>
138
+
* <p>Assigns the Customer to the specified Cart.</p>
139
139
*
140
140
141
141
* @return null|CartResourceIdentifier
142
142
*/
143
143
publicfunctiongetAnonymousCart();
144
144
145
145
/**
146
-
* <p>Identifies Carts and Orders belonging to an anonymous session that will be assigned to the new Customer.</p>
146
+
* <p>Assigns the Customer to all <a href="ctp:api:type:Cart">Carts</a>, <a href="ctp:api:type:Order">Orders</a>, <a href="ctp:api:type:ShoppingList">ShoppingLists</a>, and <a href="ctp:api:type:Payment">Payments</a> with the same <code>anonymousId</code>.</p>
147
+
* <p>If <code>anonymousCart</code> is provided, this value must match the <code>anonymousId</code> of the anonymous <a href="ctp:api:type:Cart">Cart</a>; otherwise, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Customer/CustomerDraftBuilder.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -314,7 +314,7 @@ public function getAnonymousCartId()
314
314
}
315
315
316
316
/**
317
-
* <p>Identifies a <a href="ctp:api:type:Cart">Cart</a> that will be assigned to the new Customer.</p>
317
+
* <p>Assigns the Customer to the specified Cart.</p>
318
318
*
319
319
320
320
* @return null|CartResourceIdentifier
@@ -325,7 +325,8 @@ public function getAnonymousCart()
325
325
}
326
326
327
327
/**
328
-
* <p>Identifies Carts and Orders belonging to an anonymous session that will be assigned to the new Customer.</p>
328
+
* <p>Assigns the Customer to all <a href="ctp:api:type:Cart">Carts</a>, <a href="ctp:api:type:Order">Orders</a>, <a href="ctp:api:type:ShoppingList">ShoppingLists</a>, and <a href="ctp:api:type:Payment">Payments</a> with the same <code>anonymousId</code>.</p>
329
+
* <p>If <code>anonymousCart</code> is provided, this value must match the <code>anonymousId</code> of the anonymous <a href="ctp:api:type:Cart">Cart</a>; otherwise, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Customer/CustomerDraftModel.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -467,7 +467,7 @@ public function getAnonymousCartId()
467
467
}
468
468
469
469
/**
470
-
* <p>Identifies a <a href="ctp:api:type:Cart">Cart</a> that will be assigned to the new Customer.</p>
470
+
* <p>Assigns the Customer to the specified Cart.</p>
471
471
*
472
472
*
473
473
* @return null|CartResourceIdentifier
@@ -488,7 +488,8 @@ public function getAnonymousCart()
488
488
}
489
489
490
490
/**
491
-
* <p>Identifies Carts and Orders belonging to an anonymous session that will be assigned to the new Customer.</p>
491
+
* <p>Assigns the Customer to all <a href="ctp:api:type:Cart">Carts</a>, <a href="ctp:api:type:Order">Orders</a>, <a href="ctp:api:type:ShoppingList">ShoppingLists</a>, and <a href="ctp:api:type:Payment">Payments</a> with the same <code>anonymousId</code>.</p>
492
+
* <p>If <code>anonymousCart</code> is provided, this value must match the <code>anonymousId</code> of the anonymous <a href="ctp:api:type:Cart">Cart</a>; otherwise, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
* If empty, the Customer does not have a Cart assigned.</p>
29
+
* <p>Cart associated with the Customer.</p>
30
+
* <p>The Cart is recalculated to remove invalid Line Items and apply the latest prices, taxes, and discounts.
31
+
* During these updates, the following errors can be returned: <a href="ctp:api:type:MatchingPriceNotFoundError">MatchingPriceNotFound</a> and <a href="ctp:api:type:MissingTaxRateForCountryError">MissingTaxRateForCountry</a>.</p>
32
+
* <p>For more information, see <a href="/../api/carts-orders-overview#update-a-cart">Cart updates</a>.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Customer/CustomerSignInResultBuilder.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,10 @@ public function getCustomer()
46
46
}
47
47
48
48
/**
49
-
* <p>Cart associated with the Customer.
50
-
* If empty, the Customer does not have a Cart assigned.</p>
49
+
* <p>Cart associated with the Customer.</p>
50
+
* <p>The Cart is recalculated to remove invalid Line Items and apply the latest prices, taxes, and discounts.
51
+
* During these updates, the following errors can be returned: <a href="ctp:api:type:MatchingPriceNotFoundError">MatchingPriceNotFound</a> and <a href="ctp:api:type:MissingTaxRateForCountryError">MissingTaxRateForCountry</a>.</p>
52
+
* <p>For more information, see <a href="/../api/carts-orders-overview#update-a-cart">Cart updates</a>.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Customer/CustomerSignInResultModel.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -67,8 +67,10 @@ public function getCustomer()
67
67
}
68
68
69
69
/**
70
-
* <p>Cart associated with the Customer.
71
-
* If empty, the Customer does not have a Cart assigned.</p>
70
+
* <p>Cart associated with the Customer.</p>
71
+
* <p>The Cart is recalculated to remove invalid Line Items and apply the latest prices, taxes, and discounts.
72
+
* During these updates, the following errors can be returned: <a href="ctp:api:type:MatchingPriceNotFoundError">MatchingPriceNotFound</a> and <a href="ctp:api:type:MissingTaxRateForCountryError">MissingTaxRateForCountry</a>.</p>
73
+
* <p>For more information, see <a href="/../api/carts-orders-overview#update-a-cart">Cart updates</a>.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Customer/CustomerSignin.php
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ public function getPassword();
47
47
publicfunctiongetAnonymousCartId();
48
48
49
49
/**
50
-
* <p>Identifies a <a href="ctp:api:type:Cart">Cart</a> that will be assigned to the Customer.</p>
50
+
* <p>Assigns the Customer to the specified Cart.</p>
51
51
*
52
52
53
53
* @return null|CartResourceIdentifier
@@ -66,9 +66,8 @@ public function getAnonymousCart();
66
66
publicfunctiongetAnonymousCartSignInMode();
67
67
68
68
/**
69
-
* <p>If both <code>anonymousCart</code> and <code>anonymousId</code> are provided, the <code>anonymousId</code> on the CustomerSignin must match that of the anonymous <a href="ctp:api:type:Cart">Cart</a>.
70
-
* Otherwise a <a href="ctp:api:type:InvalidOperationError">400 Bad Request</a> <code>Invalid Operation</code> error is returned with the message:
71
-
* "Cart with the ID cart-id does not have the expected anonymousId.".</p>
69
+
* <p>Assigns the Customer to all <a href="ctp:api:type:Cart">Carts</a>, <a href="ctp:api:type:Order">Orders</a>, <a href="ctp:api:type:ShoppingList">ShoppingLists</a>, and <a href="ctp:api:type:Payment">Payments</a> with the same <code>anonymousId</code>.</p>
70
+
* <p>If <code>anonymousCart</code> is provided, this value must match the <code>anonymousId</code> of the anonymous <a href="ctp:api:type:Cart">Cart</a>; otherwise, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Customer/CustomerSigninBuilder.php
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ public function getAnonymousCartId()
98
98
}
99
99
100
100
/**
101
-
* <p>Identifies a <a href="ctp:api:type:Cart">Cart</a> that will be assigned to the Customer.</p>
101
+
* <p>Assigns the Customer to the specified Cart.</p>
102
102
*
103
103
104
104
* @return null|CartResourceIdentifier
@@ -123,9 +123,8 @@ public function getAnonymousCartSignInMode()
123
123
}
124
124
125
125
/**
126
-
* <p>If both <code>anonymousCart</code> and <code>anonymousId</code> are provided, the <code>anonymousId</code> on the CustomerSignin must match that of the anonymous <a href="ctp:api:type:Cart">Cart</a>.
127
-
* Otherwise a <a href="ctp:api:type:InvalidOperationError">400 Bad Request</a> <code>Invalid Operation</code> error is returned with the message:
128
-
* "Cart with the ID cart-id does not have the expected anonymousId.".</p>
126
+
* <p>Assigns the Customer to all <a href="ctp:api:type:Cart">Carts</a>, <a href="ctp:api:type:Order">Orders</a>, <a href="ctp:api:type:ShoppingList">ShoppingLists</a>, and <a href="ctp:api:type:Payment">Payments</a> with the same <code>anonymousId</code>.</p>
127
+
* <p>If <code>anonymousCart</code> is provided, this value must match the <code>anonymousId</code> of the anonymous <a href="ctp:api:type:Cart">Cart</a>; otherwise, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Customer/CustomerSigninModel.php
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ public function getAnonymousCartId()
146
146
}
147
147
148
148
/**
149
-
* <p>Identifies a <a href="ctp:api:type:Cart">Cart</a> that will be assigned to the Customer.</p>
149
+
* <p>Assigns the Customer to the specified Cart.</p>
150
150
*
151
151
*
152
152
* @return null|CartResourceIdentifier
@@ -190,9 +190,8 @@ public function getAnonymousCartSignInMode()
190
190
}
191
191
192
192
/**
193
-
* <p>If both <code>anonymousCart</code> and <code>anonymousId</code> are provided, the <code>anonymousId</code> on the CustomerSignin must match that of the anonymous <a href="ctp:api:type:Cart">Cart</a>.
194
-
* Otherwise a <a href="ctp:api:type:InvalidOperationError">400 Bad Request</a> <code>Invalid Operation</code> error is returned with the message:
195
-
* "Cart with the ID cart-id does not have the expected anonymousId.".</p>
193
+
* <p>Assigns the Customer to all <a href="ctp:api:type:Cart">Carts</a>, <a href="ctp:api:type:Order">Orders</a>, <a href="ctp:api:type:ShoppingList">ShoppingLists</a>, and <a href="ctp:api:type:Payment">Payments</a> with the same <code>anonymousId</code>.</p>
194
+
* <p>If <code>anonymousCart</code> is provided, this value must match the <code>anonymousId</code> of the anonymous <a href="ctp:api:type:Cart">Cart</a>; otherwise, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
0 commit comments