amasty-extended / store-credit
APIs related to amasty store credit.
Installs: 4 438
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- amasty/store-credit: 1.2.3
This package is not auto-updated.
Last update: 2025-06-27 11:38:40 UTC
README
Amasty-Store-Credit-Extended is an extension of Amasty Store Credit that has additional APIs. This extension helps you to add/remove store credit to the customer through REST API without the need of Magento Admin UI. All you need is an admin token to use this API.
1. How to install
Run the following command in Magento 2 root folder:
composer require amasty-extended/store-credit
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Note: Amasty-Store-Credit-Extended requires installing Amasty Store Credit in your Magento installation.
2. How to use
After installing, the package. And running the commands mentioned above. You can use the below API to add/remove store credit for the customer.
- Set REST API endpoint as
http://<magento2-server>/rest/V1/storecredit/addorsubtract
in url box and method asPOST
. - Use Admin Token.
- Example:
{ "customerId": 1, "amount": 10.0, // to remove 10 store credit => -10.0 "action": 13, "message": "Message" }
4. Contribute to this module
Feel free to Fork and contribute to this module and create a pull request so we will merge your changes main branch.
5. Get Support
- Feel free to mail to anushaakumarr@gmail.com if you have any further questions.