Get an MV in Sandbox Mode

102 views
Skip to first unread message

Sandeep R

unread,
Mar 24, 2016, 4:01:46 PM3/24/16
to LCP API Community
HI team,
I am trying out lcp in sandbox mode.
 When I hit the following request, 

curl -X GET -i -H 'Content-Type: application/json' -H 'Authorization: MAC id="88da2579ed4a40278447a3b8f3ff7e64", ts="1458849433", nonce="6XT9UO5N", ext="", mac="1MmV7SsQgNGSc9LrE67x3yX0erM="' https://sandbox.lcp.points.com/v1/lps/d23a3483-43e9-4198-808f-948fcf8f191e/mvs/metadata/sandbox-responses

I get response as 

{

  "links": {

    "self": {

      "href": "https://sandbox.lcp.points.com/v1/lps/d23a3483-43e9-4198-808f-948fcf8f191e/mvs/metadata/sandbox-responses"

    }

  },

  "sandboxResponses": [

    {

      "request": {

        "authenticatingFactors": {

          "password": "PASSWORD"

        },

        "identifyingFactors": {

          "memberId": "2300"

        }

      },

      "response": {

        "balance": 100000

      }

    }

  ]

}


..


But when I try to get the member details with the above member ID, I am getting an error


curl -X GET -i -H 'Content-Type: application/json' -H 'Authorization: MAC id="88da2579ed4a40278447a3b8f3ff7e64", ts="1458849615", nonce="PokSTvCJ", ext="", mac="mRuRO9nzW3Bi8AQsL3lXflhf2U8="' https://sandbox.lcp.points.com/v1/lps/d23a3483-43e9-4198-808f-948fcf8f191e/mvs/2300


I am getting 


      "description": "The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.",


I am refereing to 

http://points.github.io/Loyalty-Commerce-Platform/?doc=api-reference#get-a-mv

Sandeep R

unread,
Mar 25, 2016, 5:16:50 AM3/25/16
to LCP API Community
Sorry for posting the dumbest question :)
I went through the documentation and found the answer..Below are the steps to be followed to validate and a mv

Use debug tool to easily test the API

Steps to create mv user for AAdvantage

1. Get sandbox responses-dummy user for AAdvantage

GET

2. With the credentials, create MV
POST

Body

{
  "identifyingFactors": {
    "firstName": "FIRSTNAME",
    "lastName": "LASTNAME",
    "memberId": "0061"
  },
  "authenticatingFactors": {
    "password": "PASSWORD"
  }
}

3. then get mv details with that id
Reply all
Reply to author
Forward
0 new messages