Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ export class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnit
}
/**
* Creates an Order from a [Cart](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit).
* The Cart must have a shipping address set before creating an Order.
* 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.
*
* The Cart must have a shipping address and an active Shipping Method set.
*
* If the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter, an [InvalidOperation](ctp:api:type:InvalidOperationError) is returned.
*
* Specific Error Codes:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestBuilder {
*
* 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.
*
* 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).
* 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).
*
* 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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,12 @@ export class ByProjectKeyInStoreKeyByStoreKeyOrdersRequestBuilder {
}
/**
* Creates an Order from a Cart in a [Store](ctp:api:type:Store).
* Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
* The Cart must have a shipping address and an active Shipping Method set.
*
* The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
*
* Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
*
* 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.
* 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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ export class ByProjectKeyMeOrdersRequestBuilder {
*
* 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.
*
* 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).
* Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
* 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).
*
* 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.
*
* Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
*
* 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.
* 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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,15 @@ export class ByProjectKeyOrdersRequestBuilder {
}
/**
* Creates an Order from a Cart.
* Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
*
* The Cart must have a shipping address and an active Shipping Method set.
*
* The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
*
* Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
*
* 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.
* 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.
* 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.
* 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.
*
* Specific Error Codes:
*
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-sdk/src/generated/models/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3790,7 +3790,7 @@ export interface CartSetShippingMethodAction extends ICartUpdateAction {
* Value to set.
* If empty, any existing value is removed.
*
* If the referenced Shipping Method has a predicate that does not match the Cart, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
* If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
*
*
*/
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,4 @@ fcc6480a0c34dde0eb5c0a44b1b166a4fdc212fc
8f053b3f8730a47bc1257e09304a442d35356b9e
e68ca35e345e284ffc6281baa6fcfb56a3e93582
b1fc7dfd206272a7717ffe06bf9bdb40fc428a1d
2222db881c7a11c0c0e7a23d0b0165c1fe593281