Checkout URL
Apps or AI agents can use the Checkout URL format to create a new cart, add products, and direct a shopper to your BigCommerce storefront’s checkout. Multiple products/variants and their quantities can be added using a single URL. Optionally, you can specify the order source, and any applicable coupon code.
A new cart is created every time the URL is accessed.
Limitations
The following features are currently unavailable when the checkout URL is used:
- The “Edit cart” link on the checkout page
- Passwordless login
- Products with modifier options
Format
A checkout URL is formatted the following way:
store-url— This is your storefront domain (such as mystore.com, or mystore.mybigcommerce.com).id— That can be a Product ID or a SKU.quantity— This represents the quantity of the preceding Product ID or SKU.code— Optionally assign a coupon code.order_source— Optionally designate a source for the order. Supported order sources are:- facebookshop
- facebookmarketplace
- www
- buybutton
- mcp
Examples
The following URL will add quantity 2 of product SKU “BIGC-MUG”:
The following URL will:
- Add quantity 1 of Product ID 12.
- Add quantity 1 of Product ID 15.
- Apply coupon code “FREESHIPPING”.
- Attribute the order source to “www”.