Save a product or a digital plan to favourites
save_favoriteAdds a product (kind product, id = slug) or a digital plan (kind digital, id = plan id from compare_digital or compare_mobile) to the signed-in person's favourites. For a product its total for deliver_to_country today is kept as saved_total (for "the price changed since you saved it", as the website's heart does); a plan keeps no saved price. Saving twice changes nothing (the first saved price stays). Adding it to a named list (add_to_list) or deleting that list leaves the favourite as it is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| deliver_to_country | No | ISO 3166-1 alpha-2 country code, e.g. "CZ". Optional: normally derived from the address. |