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).
2194
-
The Cart must have a shipping address set before creating an Order.
2195
-
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.
2194
+
2195
+
The Cart must have a shipping address and an active Shipping Method set.
2196
+
2197
+
If the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter, an [InvalidOperation](ctp:api:type:InvalidOperationError) is returned.
2196
2198
2197
2199
Specific Error Codes:
2198
2200
@@ -15147,7 +15149,9 @@ paths:
15147
15149
description: |-
15148
15150
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.
15149
15151
15150
-
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).
15152
+
The Cart must have a shipping address and an active Shipping Method set.
15153
+
15154
+
When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).
15151
15155
15152
15156
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).
16297
-
Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
16301
+
The Cart must have a shipping address and an active Shipping Method set.
16302
+
16298
16303
The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
16299
16304
16300
16305
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
16306
+
16301
16307
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.
16302
16308
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.
16303
16309
@@ -22255,11 +22261,12 @@ paths:
22255
22261
description: |-
22256
22262
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.
22257
22263
22258
-
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).
22259
-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
22264
+
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).
22260
22265
22261
22266
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.
22262
22267
22268
+
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
22269
+
22263
22270
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.
22264
22271
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.
22265
22272
@@ -24772,13 +24779,15 @@ paths:
24772
24779
operationId: ByProjectKeyOrdersPost
24773
24780
description: |-
24774
24781
Creates an Order from a Cart.
24775
-
Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
24782
+
24783
+
The Cart must have a shipping address and an active Shipping Method set.
24784
+
24776
24785
The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
24777
24786
24778
24787
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
24779
24788
24780
-
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.
24781
-
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.
24789
+
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.
24790
+
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.
0 commit comments