Create an upsell
Adds an upsell of one kind. What it needs depends on the kind: see each field. A store holds up to 200.
Needs the upsells.write permission (Change Upsells).
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Headers
A word of your own for this one change, up to 180 letters, digits, dots, dashes, underscores and colons. Sent again with the same key, the request is not carried out twice: the first answer comes back, with Idempotent-Replay: true.
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
Query Parameters
The time zone startsAt and endsAt are read in when they name none, as an IANA name. Left out, UTC.
"Europe/Berlin"
Body
What kind of upsell it is. Set when it is made, and never changes.
addon, cart, checkout, together, upgrade Up to 80 characters. An add-on that is a plain extra needs one: it is what the buyer reads.
"Priority Setup"
An add-on only: a plain extra, or one of the store's products.
extra, product What it sells, or for together what is shown. Not for a plain extra.
Which of the product's variants. Optional for together.
An add-on's price as an add-on, in the store's currency.
4.99
A plain extra's cost for one, for Finance.
A plain extra's message to the buyer after payment, up to 2,000 characters.
An add-on: the buyer ticks it, it is ticked for them, or it is always in the order.
optional, ticked, included An add-on: once an order, or for each unit of its line.
order, item A cart or checkout offer: what it asks for in the cart.
product, category, amount With trigger amount: the cart total it asks for.
A cart, checkout or upgrade offer: what it takes off its product, on that order only.
none, percent, amount How much: above 0 and up to 100 for percent, an amount for amount.
Up to 100. What an add-on is offered with (products or categories), what a cart or checkout offer asks for, what together is shown under and what an upgrade replaces (products).
The line over it where the buyer meets it, up to 80 characters. Left out, the buyer's language's own words.
When it starts, as a date and time. Left out, now.
When it ends, as a date and time. Left out, never.
A checkout offer only, since the checkout is where the buyer is known: offered only to a buyer who has never paid at the store.
A checkout offer only: not offered to a buyer who has bought it before.
Whether it is offered.

