/{handle}/{siteSlug}/cart/add
Public · no auth
Link straight to a basket
Link straight to a basket on a Landing shop. Opening the link adds the items to the visitor's basket and lands them on the shop's basket page ({shop}/cart) with one sentence saying what happened. Anyone can write the link — there is no key or signature — because it can only ask for what the shop already sells to anyone, at today's price. Use it from an Instagram bio, a QR code, an influencer's post, a button on another site or an email you send from elsewhere. {shop} is the shop's own domain (https://acme.com/cart/add) or its platform address (https://landing.pivotal.digital/{handle}/{siteSlug}/cart/add).
The shop's rules always apply: live price and stock, the shop's own catalogue only (published products), the per-line maximum (99). Opening the same link twice tops the basket up to the link's quantities — it never doubles them, and the address bar is the plain basket afterwards, so a refresh adds nothing. Ids the shop doesn't sell, products that have sold out and codes that don't apply are skipped and named in the note; the rest of the basket still builds. It always answers with a redirect to the basket — never an error page, even past the rate limit (60 links a minute per visitor per shop).
Path parameters
|
handle
string
required
|
The tenant's handle (platform address only; on the shop's own domain the path is just /cart/add). pattern: [a-z0-9][a-z0-9\-]{1,49}|\d+ |
|
siteSlug
string
required
|
The site's slug (platform address only). pattern: [a-zA-Z0-9\-]+ |
Query parameters
|
items
string
optional
|
Comma-separated lines, each id:qty. The id is a variant id (a size or colour), or p followed by a product id for a product without variants (a plain number that is no variant of the shop is read as a product id too). qty defaults to 1. Up to 50 lines; the same id twice adds the quantities. Example: 48211:2,p1904 |
|
discount
string
optional
|
Optional discount code, applied as if typed in the basket's Discount code box (after the items are in, so a minimum spend counts them). A code that doesn't apply is noted; the basket is still built. |
|
to
string
optional
|
Optional. checkout = once everything in the link is in the basket, go straight on to the shop's secure checkout (when the basket has only card payment and nothing to fill in; otherwise the basket page shows, with its note). |
Responses
https://acme.com/cart/add?items=48211:2,p1904&discount=SPRING10
https://acme.com/cart/add?items=48211&to=checkout
<a href="https://acme.com/cart/add?items=48211:1,48212:1&discount=CREATOR15">Shop my look</a>
Location: https://acme.com/cart (the basket page shows e.g. "Added to your basket. Discount code SPRING10 applied.")
Landing Platform