Shopinvader API Sale Loyalty
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
This addons provides 2 new routers: loyalty_router and sale_loyalty_cart_router. The sale_loyalty_cart_router is declared with the same tags as the one defined in the shopinvader_api_cart addon. As this one, no prefix is added to the router, to allow to mount it as a nested app. See the README of shopinvader_api_cart for more details on how to do it.
As all api addons, installing this addon will not have any effect on the existing fastapi app. You must add the routers to the app by yourself by editing your fastapi.endpoint where you want to add the routes.
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.
Metadata
Release files for odoo-addon-shopinvader-api-sale-loyalty 18.0.1.0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odoo_addon_shopinvader_api_sale_loyalty-18.0.1.0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / odoo_addon_shopinvader_api_sale_loyalty-18.0.1.0.0.2-py3-none-any.whl
| Download URL | odoo_addon_shopinvader_api_sale_loyalty-18.0.1.0.0.2-py3-none-any.whl |
|---|---|
| Size | 34.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
309b973f53ae846cf4203c153697f6d3efcfe92d17ca2b5bd45c85dce45e1813
|
|
BLAKE2b-256 checksum How to use checksums |
db9e0dc1a7ddeea438baed4e27a7c6a6dcf8d548c55ef931a6c9569799f9755f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|