mi.com
Add to Xiaomi UK cart
TL;DR
About
Give it the variant's item id from Get Xiaomi UK product, when the product has more than one. It adds the product as the buy page's button does, and lines already in the cart stay. A sold-out variant or an unknown product fails with an error. Nothing is paid or ordered. No account is needed.
Inputs
product requiredThe product's slug (e.g. redmi-buds-5-pro) or a mi.com/uk product link.
item_id optionalThe variant's item_id from Get Xiaomi UK product. Needed when the product has several variants.
Output
slug requiredcount requiredlines requireditem_id requiredline_id requiredquantity_in_cart requiredtotal optionalcurrency optionaldelivery optionalsubtotal optional