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/external-checkout.md
+17-43Lines changed: 17 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,61 +132,23 @@ The `ordersAddLineItemsCreate` API requires that the order initial **payment met
132
132
### Cart / Order / Upsell lines Detail
133
133
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.
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.**
175
150
:::
176
151
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
-
190
152
#### Subscription Line Items
191
153
192
154
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.
298
260
},
299
261
```
300
262
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).
0 commit comments