Find

substitution_suggest

Suggest alternatives for an item that is unavailable.

View as Markdown

Use it when an item the buyer wanted is out of stock or was removed. It suggests; it never adds anything to a cart.

TypeRead: looks things up, changes nothing
Needs a cart the buyer approvedNo
Moves moneyNo
Tool description (what the assistant sees)
Suggests alternatives for an unavailable SKU or a free-text query from the same live shop catalogs product search reads. Optional filters: merchant_id, in_stock_only, max_unit_price_cents and limit (max 5). Returns suggestions only; nothing is added to a cart, and the buyer's substitution policy decides what may be substituted. Read-only.

#Parameters

NameTypeRequiredDescription
unavailable_skustringNoThe SKU that cannot be bought.
querystringNoFree text describing what the buyer wanted, when there is no SKU.
merchant_iduuidNoOnly suggest from this shop.
in_stock_onlybooleanNoLeave out offers that are not in stock.
max_unit_price_centsintegerNoOnly suggest items at or under this unit price, in cents.
limitintegerNoHow many suggestions, 1 to 5.