X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 5 (https://forum.x-cart.com/forumdisplay.php?f=64)
-   -   How can i pull loyalty points for the customer. (https://forum.x-cart.com/showthread.php?t=76426)

tparmar 07-24-2018 08:31 AM

How can i pull loyalty points for the customer.
 
I want to pull customer, order and loyalty point data via rest API. I know there is a API for the order and Customer. But how can i pull the Loyalty points associated with the customer?

qualiteam 07-24-2018 11:44 AM

Re: How can i pull loyalty points for the customer.
 
Quote:

Originally Posted by tparmar
I want to pull customer, order and loyalty point data via rest API. I know there is a API for the order and Customer. But how can i pull the Loyalty points associated with the customer?



Hi there.
Loyalty Program module does not support REST API by default, unfortunately.

tony_sologubov 07-25-2018 01:55 AM

Re: How can i pull loyalty points for the customer.
 
Hi Tanmay,

Thanks for your question and welcome to X-Cart forums!
You can pull reward points value using REST API, if you request particular user profile, e.g.
http://localhost/xcart/admin.php?target=RESTAPI&_key=KEY&_path=profile/7

Search for 'rewardPoints' field in the response and you will get needed info. You might also be interested in 'rewardEvents' field.

Please, let me know if it is any help for you.

Tony

Quote:

Originally Posted by tparmar
I want to pull customer, order and loyalty point data via rest API. I know there is a API for the order and Customer. But how can i pull the Loyalty points associated with the customer?



All times are GMT -8. The time now is 04:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.