Skip to main content

FastAPI services to add coupons and loyalties to carts.

Project description

Beta License: AGPL-3 shopinvader/odoo-shopinvader

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

Authors

  • ACSONE SA/NV

Contributors

Maintainers

This module is part of the shopinvader/odoo-shopinvader project on GitHub.

You are welcome to contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_shopinvader_api_sale_loyalty-16.0.1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_shopinvader_api_sale_loyalty-16.0.1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8394d58d22b6196cf9c6ba11f672316b6552f2e1989f2695948e73dd65097b8b
MD5 663b7ebc83a9503b5f028359c88394b6
BLAKE2b-256 2dc6b8340955c0343c817ebb5071c9c160cbaaec45d9f223b55bd9ef7efe99c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page