Hi Sandeep,
Sandbox mode does not actually connect with the loyalty program itself, rather it is configured to return certain pre-determined responses for different accounts, you can read more about that in our documentation here. You'll need to do a GET on the following endpoint to find the sandbox responses set up for this loyalty program:
Jeff ByrneProduct Manager, Loyalty Commerce Platform
On Wednesday, March 23, 2016 at 2:26:20 PM UTC-4, Sandeep R wrote:
Thanks Jeff for updating,I again tried with the same.. NOw getting a error that member is not found.. But I am able to login with the same credentials in AmericanAdvantage website.Also AAdvantage does not require first name. However if I skip firstName parameter, its giving an error.
{"identifyingFactors": {"memberId": "857AWL2", "firstName":"Kofi","lastName":"Ampadu"}, "authenticatingFactors": {"password": "xxxx123"}}
Response{"errors": [{"code": "UNKNOWN_MEMBER","description": "No member could be found with the given credentials."}]}
On Wednesday, March 23, 2016 at 11:02:44 PM UTC+5:30, Jeff Byrne wrote:
Hi Sandeep,Apologies, I gave an invalid URL in my earlier response that was missing a forward slash at the end. You should be POSTing to the following:Additionally, your recent attempts are being rejected again due to an invalid timestamp on the request header; some of the requests have been out of sync by over five minutes. Please ensure that your system clock is synced properly as mentioned in my previous response.
Jeff ByrneProduct Manager, Loyalty Commerce Platform
On Wednesday, March 23, 2016 at 12:54:17 PM UTC-4, Sandeep R wrote:
HI Jeff,I synced the clock as per instruction and again tried with the same request.
curl-X POST -i
-H 'Content-Type: application/json'
-H 'Authorization: MAC id="2a8e2820e77e4ed9aa9a8c9c3ea9069a", ts="1458751999", nonce="u5X9drT5", ext="a8598e267dbba7c29c9e0a43f1ac96378d0bff5a", mac="TP24EaHxCGec0MtdT9ejs6KU40g="'
-d '{"identifyingFactors": {"memberId": "857AWL2"}, "authenticatingFactors": {"password": "xxxx123"}}'
https://sandbox.lcp.points.com/v1/lps/4680392e-6479-4c6b-916a-cdf21a9e1337/mvs