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
Creates an Order from a [Cart](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit).
721
-
The Cart must have a shipping address set before creating an Order.
722
-
Creating an Order fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter.
721
+
722
+
The Cart must have a shipping address and an active Shipping Method set.
723
+
724
+
If the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter, an [InvalidOperation](ctp:api:type:InvalidOperationError) is returned.
723
725
724
726
Specific Error Codes:
725
727
@@ -5063,7 +5065,9 @@ $request = $builder
5063
5065
5064
5066
Creates an Order from a Cart in a [Store](ctp:api:type:Store) for the Customer or anonymous user. The `customerId` or `anonymousId` field on the Order is automatically set based on the [customer:{id}](/scopes#composable-commerce-oauth) or [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
5065
5067
5066
-
The Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction) for taxes to be calculated. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts`[Permission](ctp:api:type:Permission).
5068
+
The Cart must have a shipping address and an active Shipping Method set.
5069
+
5070
+
When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts`[Permission](ctp:api:type:Permission).
5067
5071
5068
5072
If the Cart's `customerId` does not match the [customer:{id}](/scopes#composable-commerce-oauth) scope, or the `anonymousId` does not match the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope, a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
Creates an Order from a Cart in a [Store](ctp:api:type:Store).
5510
-
Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
5514
+
The Cart must have a shipping address and an active Shipping Method set.
5515
+
5511
5516
The shipping address is used for tax calculation for a Cart with `Platform`[TaxMode](ctp:api:type:TaxMode).
5512
5517
5513
5518
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
5519
+
5514
5520
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned.
5515
5521
If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
5516
5522
@@ -7451,11 +7457,12 @@ $request = $builder
7451
7457
7452
7458
Creates an Order from a Cart for the Customer or anonymous user. The `customerId` or `anonymousId` field on the Order is automatically set based on the [customer:{id}](/scopes#composable-commerce-oauth) or [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
7453
7459
7454
-
The Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction) for taxes to be calculated. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts`[Permission](ctp:api:type:Permission).
7455
-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
7460
+
The Cart must have a shipping address and an active Shipping Method set. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts`[Permission](ctp:api:type:Permission).
7456
7461
7457
7462
If the Cart's `customerId` does not match the [customer:{id}](/scopes#composable-commerce-oauth) scope, or the `anonymousId` does not match the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope, a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
7458
7463
7464
+
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
7465
+
7459
7466
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned.
7460
7467
If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
8329
+
8330
+
The Cart must have a shipping address and an active Shipping Method set.
8331
+
8323
8332
The shipping address is used for tax calculation for a Cart with `Platform`[TaxMode](ctp:api:type:TaxMode).
8324
8333
8325
8334
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
8326
8335
8327
-
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned.
8328
-
If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
8336
+
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned.
8337
+
If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
23
+
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, 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/Cart/CartSetShippingMethodActionBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ final class CartSetShippingMethodActionBuilder implements Builder
37
37
/**
38
38
* <p>Value to set.
39
39
* If empty, any existing value is removed.</p>
40
-
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
40
+
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, 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/Cart/CartSetShippingMethodActionModel.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ public function getAction()
75
75
/**
76
76
* <p>Value to set.
77
77
* If empty, any existing value is removed.</p>
78
-
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
78
+
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
0 commit comments