Skip to content

Commit 0f1fe3a

Browse files
committed
updates and refinement
1 parent 4cf80e7 commit 0f1fe3a

1 file changed

Lines changed: 17 additions & 43 deletions

File tree

docs/api/admin/guides/external-checkout.md

Lines changed: 17 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -132,61 +132,23 @@ The `ordersAddLineItemsCreate` API requires that the order initial **payment met
132132
### Cart / Order / Upsell lines Detail
133133
Cart, Order, and Upsell line items represent the products the customer is purchasing. When an order is created, the product fulfillment location will be automatically chosen based on product stock records and inventory availability.
134134

135-
**Acceptable Line Combinations for a Product**
136-
137-
<Tabs>
138-
<TabItem value="parent" label="product_id + currency">
139-
140-
```json
135+
```json title="Specify Line Items and Currency"
141136

142137
{
143138
"lines": [
144139
{
145-
"product_id": 1,
140+
"product_id": 1, // ensure variant ID and not parent product ID
146141
"currency": "USD",
147142
"quantity": 1,
148143
"price": "33.44" // optional custom price
149144
}
150145
]
151146
}
152147
```
153-
</TabItem>
154-
<TabItem value="sku" label="sku + currency">
155-
156-
:::warning Deprecation Notice
157-
Using `sku` is deprecated and will be removed in the future, use `product_id` and `currency` instead.
158-
:::
159-
160-
```json
161-
"lines": [
162-
{
163-
"sku": "DEMO-SKU",
164-
"currency": "USD",
165-
"quantity": 1,
166-
"price": "33.44" // optional custom price
167-
}
168-
]
169-
```
170-
</TabItem>
171-
<TabItem value="stockrecord_id" label="stockrecord_id">
172-
173-
:::warning Deprecation Notice
174-
Using `stockrecord_id` is deprecated and will be removed in the future, use `product_id` and `currency` instead.
148+
:::tip
149+
Ensure you use the variant product ID for order line items. **Single variant products still contain a variant product future product management to add additional variants.**
175150
:::
176151

177-
```json
178-
"lines": [
179-
{
180-
"stockrecord_id": 23,
181-
"quantity": 1,
182-
"price": 33.44 // optional
183-
}
184-
]
185-
```
186-
</TabItem>
187-
</Tabs>
188-
189-
190152
#### Subscription Line Items
191153

192154
Lines also accept an optional `subscription` object to specify a subscription that will be automatically created after the initial order is successfully created.
@@ -298,4 +260,16 @@ The example below uses a [Test Card Token](/docs/api/admin/guides/testing-guide.
298260
},
299261
```
300262

301-
See our other guides on creating orders with [Card Tokens](/docs/api/admin/guides/iframe-payment-form.md) or payment methods that use a redirect flow: [3DS2](/docs/api/admin/guides/3ds2.md), [Apple Pay](/docs/api/admin/guides/apple-pay.md), [PayPal](/docs/api/admin/guides/paypal.md), [Klarna](/docs/api/admin/guides/klarna.md), [Twint](/docs/api/admin/guides/twint.md), [Bancontact](/docs/api/admin/guides/bancontact.md), and [SEPA](/docs/api/admin/guides/sepa-debit.md).
263+
See our other guides on creating orders below.
264+
265+
| Payment Method | Flow | Express | Upsells | Subscriptions |
266+
| --- | --- | --- | --- | --- |
267+
| [`card_token`](/docs/api/admin/guides/iframe-payment-form.md) | Direct | Yes | Yes | Yes |
268+
| [`apple_pay`](/docs/api/admin/guides/apple-pay.md) | Direct | Yes | Yes | Yes |
269+
| [`google_pay`](/docs/api/admin/guides/google_pay.md) | Direct | Yes | Yes | Yes |
270+
| [`paypal`](/docs/api/admin/guides/paypal.md) | Direct | Yes | Yes | Yes |
271+
| [`klarna`](/docs/api/admin/guides/klarna.md) | Direct | Yes | Yes | Yes |
272+
| [`twint`](/docs/api/admin/guides/twint.md) | Direct | Yes | Yes | Yes |
273+
| [`bancontact`](/docs/api/admin/guides/bancontact.md) | Direct | Yes | Yes | Yes |
274+
| [`ideal`](/docs/api/admin/guides/ideal.md) | Direct | Yes | Yes | Yes |
275+
| [`sepa_direct`](/docs/api/admin/guides/sepa-direct.md) | Direct | Yes | Yes | Yes |

0 commit comments

Comments
 (0)