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 [Quote](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit).
863
-
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.
862
+
863
+
Creates an Order from a [Quote](ctp:api:type:Quote) in a [BusinessUnit](ctp:api:type:BusinessUnit).
864
+
865
+
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.
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
5331
+
5332
+
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.
5333
+
5334
+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyQuotes`[Permission](ctp:api:type:Permission).
7158
7161
7159
-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
7162
+
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).
7163
+
7164
+
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.
7165
+
7166
+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
8318
+
8319
+
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.
8320
+
8321
+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.
29
-
* If the referenced <a href="ctp:api:type:Quote">Quote</a> has expired (<code>validTo</code> check) or its <code>quoteState</code> is <code>Accepted</code>, <code>Declined</code>, or <code>Withdrawn</code>, the Order creation will fail.</p>
28
+
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.</p>
29
+
* <p>The <a href="ctp:api:type:Quote">Quote</a> must have the <code>Pending</code> <a href="ctp:api:type:QuoteState">state</a> and must be valid (not past the <code>validTo</code> date).</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Order/OrderFromQuoteDraftBuilder.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,8 +73,8 @@ final class OrderFromQuoteDraftBuilder implements Builder
73
73
private$state;
74
74
75
75
/**
76
-
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.
77
-
* If the referenced <a href="ctp:api:type:Quote">Quote</a> has expired (<code>validTo</code> check) or its <code>quoteState</code> is <code>Accepted</code>, <code>Declined</code>, or <code>Withdrawn</code>, the Order creation will fail.</p>
76
+
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.</p>
77
+
* <p>The <a href="ctp:api:type:Quote">Quote</a> must have the <code>Pending</code> <a href="ctp:api:type:QuoteState">state</a> and must be valid (not past the <code>validTo</code> date).</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Order/OrderFromQuoteDraftModel.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -96,8 +96,8 @@ public function __construct(
96
96
}
97
97
98
98
/**
99
-
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.
100
-
* If the referenced <a href="ctp:api:type:Quote">Quote</a> has expired (<code>validTo</code> check) or its <code>quoteState</code> is <code>Accepted</code>, <code>Declined</code>, or <code>Withdrawn</code>, the Order creation will fail.</p>
99
+
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.</p>
100
+
* <p>The <a href="ctp:api:type:Quote">Quote</a> must have the <code>Pending</code> <a href="ctp:api:type:QuoteState">state</a> and must be valid (not past the <code>validTo</code> date).</p>
* <p>New state to be set for the Quote, except <code>DeclinedForRenegotiation</code>. The <code>DeclinedForRenegotiation</code> state can be set only when performing a <a href="ctp:api:type:QuoteRequestQuoteRenegotiationAction">renegotiation request</a>.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Quote/QuoteChangeQuoteStateActionBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ final class QuoteChangeQuoteStateActionBuilder implements Builder
27
27
private$quoteState;
28
28
29
29
/**
30
-
* <p>New state to be set for the Quote.</p>
30
+
* <p>New state to be set for the Quote, except <code>DeclinedForRenegotiation</code>. The <code>DeclinedForRenegotiation</code> state can be set only when performing a <a href="ctp:api:type:QuoteRequestQuoteRenegotiationAction">renegotiation request</a>.</p>
Copy file name to clipboardExpand all lines: lib/commercetools-api/src/Models/Quote/QuoteChangeQuoteStateActionModel.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ public function getAction()
63
63
}
64
64
65
65
/**
66
-
* <p>New state to be set for the Quote.</p>
66
+
* <p>New state to be set for the Quote, except <code>DeclinedForRenegotiation</code>. The <code>DeclinedForRenegotiation</code> state can be set only when performing a <a href="ctp:api:type:QuoteRequestQuoteRenegotiationAction">renegotiation request</a>.</p>
0 commit comments