Skip to content

Commit 3f56b36

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent cf0f702 commit 3f56b36

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

oas/api/openapi.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,8 +2399,9 @@ paths:
23992399
- "manage_quotes:{projectKey}"
24002400
operationId: ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersQuotesPost
24012401
description: |-
2402-
Creates an Order from a [Quote](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit).
2403-
Creating an Order fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the Quote does not reference the same BusinessUnit as the `businessUnitKey` path parameter.
2402+
Creates an Order from a [Quote](ctp:api:type:Quote) in a [BusinessUnit](ctp:api:type:BusinessUnit).
2403+
2404+
The Quote must reference the same Business Unit as the `businessUnitKey` path parameter, must have the `Pending` [state](ctp:api:type:QuoteState), and must be valid (not past the `validTo` date). If these criteria are not met, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
24042405

24052406
Specific Error Codes:
24062407

@@ -15691,12 +15692,13 @@ paths:
1569115692
- "manage_quotes:{projectKey}:{storeKey}"
1569215693
operationId: ByProjectKeyInStoreKeyByStoreKeyOrdersQuotesPost
1569315694
description: |-
15694-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
15695+
Creates an Order from a [Quote](ctp:api:type:Quote) in a [Store](ctp:api:type:Store). The referenced Quote must have the `Pending` [state](ctp:api:type:QuoteState) and must be valid (not past the `validTo` date); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
15696+
15697+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
1569515698

1569615699
Specific Error Codes:
1569715700

1569815701
- [OutOfStock](ctp:api:type:OutOfStockError)
15699-
- [PriceChanged](ctp:api:type:PriceChangedError)
1570015702
- [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
1570115703
- [InvalidOperation](ctp:api:type:InvalidOperationError)
1570215704
- [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
@@ -21413,14 +21415,15 @@ paths:
2141321415
- "customer_id:{id}"
2141421416
operationId: ByProjectKeyMeOrdersQuotesPost
2141521417
description: |-
21416-
When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyQuotes` [Permission](ctp:api:type:Permission).
21418+
Creates an Order from a [Quote](ctp:api:type:Quote). To create [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyQuotes` [Permission](ctp:api:type:Permission).
2141721419

21418-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
21420+
The referenced Quote must have the `Pending` [state](ctp:api:type:QuoteState) and must be valid (not past the `validTo` date); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
21421+
21422+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
2141921423

2142021424
Specific Error Codes:
2142121425

2142221426
- [OutOfStock](ctp:api:type:OutOfStockError)
21423-
- [PriceChanged](ctp:api:type:PriceChangedError)
2142421427
- [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
2142521428
- [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
2142621429
- [AssociateMissingPermission](ctp:api:type:AssociateMissingPermissionError)
@@ -24723,15 +24726,16 @@ paths:
2472324726
- "manage_quotes:{projectKey}"
2472424727
operationId: ByProjectKeyOrdersQuotesPost
2472524728
description: |-
24726-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
24729+
Creates an Order from a Quote. The referenced Quote must have the `Pending` [state](ctp:api:type:QuoteState) and must be valid (not past the `validTo` date); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
24730+
24731+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
2472724732

2472824733
Specific Error Codes:
2472924734

2473024735
- [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
2473124736
- [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
2473224737
- [InvalidOperation](ctp:api:type:InvalidOperationError)
2473324738
- [OutOfStock](ctp:api:type:OutOfStockError)
24734-
- [PriceChanged](ctp:api:type:PriceChangedError)
2473524739
requestBody:
2473624740
content:
2473724741
application/json:

0 commit comments

Comments
 (0)