Skip to content

Commit 15f9d46

Browse files
committed
fix typos
1 parent 905c5a8 commit 15f9d46

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

docs/api/admin/guides/order-management.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Order editing APIs also do not affect order payment within each request. To remo
164164

165165
#### Line Item Quantities Explained
166166

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

169169
- `quantity` - Item quantity of items ever added to the order in this line item.
170170
- `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
186186

187187
#### Swap Items Flow
188188

189-
190189
```mermaid
191190
stateDiagram-v2
192191
direction LR
@@ -197,8 +196,8 @@ stateDiagram-v2
197196
removeLine --> addLine
198197
```
199198

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.
202201
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.
203202
3. Create new line item [ordersLinesCreate](/docs/api/admin/reference/?v=2024-04-01#/operations/ordersLinesCreate) endpoint.
204203

@@ -262,7 +261,7 @@ Updating an order shipping address is a common task that can be done with a PATC
262261

263262
{
264263
"shipping_address": {
265-
"line1": "4765 Test Lane West", // new shipping adddress line 1
264+
"line1": "4765 Test Lane West", // new shipping address line 1
266265
"line4": "Mountain Pass", // new shipping address city
267266
"state": "CA", // new shipping address state
268267
"postcode": "92366", // new shipping address postcode

0 commit comments

Comments
 (0)