Cart

cart_create

Open an empty cart at one shop.

View as Markdown

Use it when the buyer picks items one by one instead of giving a list.

TypeWrite: changes a cart or an order
Needs a cart the buyer approvedNo
Moves moneyNo
Tool description (what the assistant sees)
Opens a cart for one buyer and one shop. Idempotent: returns the existing open cart when one is already open for this pair. Nothing is reserved or charged.

#Parameters

NameTypeRequiredDescription
merchant_iduuidYesThe shop, from a search result.
nearobjectNoWhere the buyer is right now, in the same form as product_search's near. The approval box shows the shop's distance from it. Left out: distance is measured from the buyer's saved home address.

#What to call next

cart_add, one call per item.