docs/best-practices/urls-and-routing/checkout-urls.md
Custom checkout links automatically populate the cart with specific products and redirect customers straight to checkout with a unique session id.
The custom checkout link path is /checkout-link/ and is not customizable.
products=123:2,456:1
A comma-separated list of product IDs and quantities. For example, 123:2,456:1. This feature supports simple products with no additional options. Individual variations can also be added to cart by using the correct variation ID.
coupon=SPRING10
A coupon code to apply to the cart. For example, SPRING10.
https://yourstore.com/checkout-link/?products=123:2,456:1&coupon=SPRING10
In this link:
123 will be added with quantity 2456 with quantity 1SPRING10 will be appliedOnce the user is redirected to the checkout page, the cart is populated with the products and coupon code. The final URL includes a session parameter storing the ID of the session. Future changes to the checkout will be persisted in the session, enabling persistent and shareable carts.