Order bumps
Create order bump
/ v1 / order-bumps Creates an order bump: an extra product that buyers add with one checkbox at the checkout of another product, like the order bump editor in the Tentary app. It is inactive unless you send status active.
price: left out ornullmeans the price of the product.0means free. Any other price must be at least 1.00, or 7.00 in an account with DKK.product_ids: left out ornullmeans the checkouts of all products.
Where an order bump shows:
- On the checkouts of
product_ids, or of all products, but not on the checkout of the offered product itself. - Only on products with one-time billing.
- Not when the buyer pays in installments, except with PayPal or Klarna.
The order of several order bumps on one checkout cannot be set.
The answer is the order bump, as in GET /v1/order-bumps.
Authorization
-
Authorizationstring header requiredBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Introduction
Body application/json
-
namestring requiredName in the Tentary app. Buyers do not see it.
min length
1max length255 -
product_idinteger requiredThe offered product (id from list_products): live, without variants, with one-time billing, not external.
min
1 -
product_idsarray of integer can be nullThe products whose checkout shows the order bump (live or draft, one-time billing; ids from list_products). null = all products. On create, left out = all products. On update, left out = no change; a list replaces the list.
max items
200 -
statusstringactive = buyers see the order bump at the checkouts of product_ids at once. inactive = it is hidden at every checkout; its settings, sales and revenue stay, and it can be made active again. On create, left out = inactive. Buyers see an active order bump at once, so ask the seller first.
Allowed values:
activeinactive -
pricenumber | string can be nullSpecial price for the order bump. Amount in the account currency, like 49 or 19.99. 0 = free. null or left out on create = the price of the product (it follows later changes of that price). A lower price shows the product price crossed out.
min
0max21474836.47pattern^[0-9]{1,9}(\.[0-9]{1,2})?$ -
titlestringTitle that buyers see. Empty = the product title.
max length
255 -
description_htmlstringShort text about the offer, HTML (p, h1-h3, strong, em, u, del, ul, ol, li, blockquote, a).
max length
65535 -
checkbox_textstringText next to the checkbox. Empty = "Yes, add to my order" (German: "Ja, zur Bestellung hinzufügen").
max length
255 -
hide_product_imagebooleanHide the product image in the order bump. Default false.
Response
Fields of the answer with status 200. Errors always have the same format, see Errors.
-
idintegerThe ID.
-
namestringName in the Tentary app. Buyers do not see it.
-
statusstringactive = buyers see it at the checkout. inactive = hidden at every checkout, kept with its settings and sales.
Allowed values:
activeinactive -
productobjectThe offered product.
Show 3 fields Hide fields
-
idintegerThe ID.
-
namestring can be nullThe name.
-
statusstringThe status.
Allowed values:
livedraftarchiveddeleted
-
-
pricestringDecimal string, like "19.90". What buyers pay for the order bump.
-
product_pricestringDecimal string, like "19.90". The price of the product. Shown crossed out when price is lower.
-
currencystringCurrency code, like EUR.
-
titlestring can be nullnull = the product title.
-
description_htmlstringShort text about the offer, HTML.
-
checkbox_textstring can be nullnull = "Yes, add to my order".
-
hide_product_imageboolean -
product_idsarray of integer can be nullThe products whose checkout shows it. null = all products.
-
admin_urlstring<uri>The page in the Tentary app.