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
Copy file name to clipboardExpand all lines: docs/api/admin/guides/order-management.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,7 +164,7 @@ Order editing APIs also do not affect order payment within each request. To remo
164
164
165
165
#### Line Item Quantities Explained
166
166
167
-
Order line items have 4 quanity attributes that represent quantities at differen't states in an order life cycle.
167
+
Order line items have 4 quantity attributes that represent quantities at different states in an order life cycle.
168
168
169
169
-`quantity` - Item quantity of items ever added to the order in this line item.
170
170
-`current_quantity` - Current item quantity that have not yet been removed.
@@ -186,7 +186,6 @@ Order line items have 4 quanity attributes that represent quantities at differen
186
186
187
187
#### Swap Items Flow
188
188
189
-
190
189
```mermaid
191
190
stateDiagram-v2
192
191
direction LR
@@ -197,8 +196,8 @@ stateDiagram-v2
197
196
removeLine --> addLine
198
197
```
199
198
200
-
Swaping Items on an order is a 3-step process:
201
-
1.Retreive order line items using the [ordersRetrieve](/docs/api/admin/reference/?v=2024-04-01#/operations/ordersRetrieve) endpoint to obtain line items and check `editable_quantity` is > 0.
199
+
Swapping Items on an order is a 3-step process:
200
+
1.Retrieve order line items using the [ordersRetrieve](/docs/api/admin/reference/?v=2024-04-01#/operations/ordersRetrieve) endpoint to obtain line items and check `editable_quantity` is > 0.
202
201
2. Update/Remove line items using the [ordersLinesPartialUpdate](/docs/api/admin/reference/?v=2024-04-01#/operations/ordersLinesPartialUpdate) or [ordersLinesDestroy](/docs/api/admin/reference/?v=2024-04-01#/operations/ordersLinesDestroy) endpoint.
203
202
3. Create new line item [ordersLinesCreate](/docs/api/admin/reference/?v=2024-04-01#/operations/ordersLinesCreate) endpoint.
204
203
@@ -262,7 +261,7 @@ Updating an order shipping address is a common task that can be done with a PATC
262
261
263
262
{
264
263
"shipping_address": {
265
-
"line1": "4765 Test Lane West", // new shipping adddress line 1
264
+
"line1": "4765 Test Lane West", // new shipping address line 1
266
265
"line4": "Mountain Pass", // new shipping address city
267
266
"state": "CA", // new shipping address state
268
267
"postcode": "92366", // new shipping address postcode
0 commit comments