FastAPI services to add coupons and loyalties to carts.
Project description
This module extends the functionality of Shopinvader to support Coupons and Promotions from sale_loyalty core module. It is the new version providing FastAPI services.
Not to be confused with shopinvader_promotion_rule, that implements promotion programs from OCA module sale_promotion_rule, an alternative to the core sale_loyalty module.
Available services:
/loyalty/{code} under the loyalty router, to get all rewards claimable with a given coupon code
/coupon under the cart router, to apply a given coupon to the cart. Allows to specify which reward and/or which free product to offer.
/reward under the cart router, to apply a given reward (automatic promotion). Note that automatic promotions are applied automatically at cart update, when possible (if no choice must be done). This service allows to apply an automatic promotion for which the reward/free product choice is mandatory.
Table of contents
Usage
Some routes are added to the cart_router. Please note that for this router, the /cart prefix is not automatically added, to allow to mount it as a nested app. But you must ensure that this prefix is added when using this router.
See the README of shopinvader_api_cart for more details on how to do it.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Iván Todorovich <ivan.todorovich@gmail.com>
-
Marie Lejeune <marie.lejeune@acsone.eu>
Maintainers
This module is part of the shopinvader/odoo-shopinvader project on GitHub.
You are welcome to contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for odoo_addon_shopinvader_api_sale_loyalty-16.0.1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c0b5d7a0e236d9ae3f2f93307b354b0fc2762cdd97a47b569ce1f4adac509fb |
|
MD5 | 3a59de9ceefc092d52755e18b17fadc5 |
|
BLAKE2b-256 | 0fa83eb7541c751b0b11e72397647230fb6c980037c3062542e59002a2f08ac8 |