Skip to content

Commit dc0c0f1

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent 2222db8 commit dc0c0f1

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

oas/api/openapi.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,8 +2191,10 @@ paths:
21912191
operationId: ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersPost
21922192
description: |-
21932193
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.
21962198

21972199
Specific Error Codes:
21982200

@@ -15147,7 +15149,9 @@ paths:
1514715149
description: |-
1514815150
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.
1514915151

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).
1515115155

1515215156
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.
1515315157

@@ -16294,10 +16298,12 @@ paths:
1629416298
operationId: ByProjectKeyInStoreKeyByStoreKeyOrdersPost
1629516299
description: |-
1629616300
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+
1629816303
The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
1629916304

1630016305
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
16306+
1630116307
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.
1630216308
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.
1630316309

@@ -22255,11 +22261,12 @@ paths:
2225522261
description: |-
2225622262
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.
2225722263

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).
2226022265

2226122266
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.
2226222267

22268+
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
22269+
2226322270
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.
2226422271
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.
2226522272

@@ -24772,13 +24779,15 @@ paths:
2477224779
operationId: ByProjectKeyOrdersPost
2477324780
description: |-
2477424781
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+
2477624785
The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
2477724786

2477824787
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
2477924788

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.
2478224791

2478324792
Specific Error Codes:
2478424793

0 commit comments

Comments
 (0)