Copy curl --location 'https://sandbox.chainrewardz.com/auth/login' \
--header 'Api-Key: {{api_key}}' \
--header 'Api-Secret: {{api_secret}}' \
--data '{
"userId": "user12345",
"membershipId": "membership67890"
}
Copy curl --location 'https://sandbox.chainrewardz.com/auth/v1/crypto/login' \
--header 'Api-Key: {{api_key}}' \
--header 'Api-Secret: {{api_secret}}' \
--data '{
"publicAdress": "xxxxxx",
"Smartcontractaddress": "xxxxxxxx"
"Chain": "ETH"
}
Copy jsonCopy code{
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1YjFkODhhZi0wZDJjLTQyMzEtOTExMi1lMGMxODA0MjhjZmEiLCJkYXRhIjp7InNpZGUiOiJDVVNUT01FUiIsInR5cGUiOiJBQ0NFU1NfVE9LRU4iLCJ1c2VySWQiOjUsImJ1c2luZXNzSWQiOjMsInJvbGUiOiJjdXN0b21lciIsInBsYXRmb3JtIjoiV0VCMyIsImNoYWluIjoiRVRIIiwicHVibGljQWRkcmVzcyI6IjB4YWM4ZjRDODBmOTg1MzU1NDY1NTZhOWJhYjRhNzk4RDgwNjRFMTBGRSJ9LCJpc3MiOiJodHRwczovL2NoYWlucmV3YXJkei5jb20iLCJleHAiOjE2OTg0NjcwMTl9.PMgcVzEBNMcOrnIsFR-C-NXX0Kq4EVsqVjzLWP2ve-8",
"refreshToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1YjFkODhhZi0wZDJjLTQyMzEtOTExMi1lMGMxODA0MjhjZmEiLCJkYXRhIjp7InNpZGUiOiJDVVNUT01FUiIsInR5cGUiOiJSRUZSRVNIX1RPS0VOIiwidXNlcklkIjo1LCJidXNpbmVzc0lkIjozLCJyb2xlIjoiY3VzdG9tZXIiLCJwbGF0Zm9ybSI6IldFQjMiLCJjaGFpbiI6IkVUSCIsInB1YmxpY0FkZHJlc3MiOiIweGFjOGY0QzgwZjk4NTM1NTQ2NTU2YTliYWI0YTc5OEQ4MDY0RTEwRkUifSwiaXNzIjoiaHR0cHM6Ly9jaGFpbnJld2FyZHouY29tIiwiZXhwIjozMTcwMjYwNjcwMjB9.JOJDRYCoe7ECYsW4OfmU68XDwBvWgCqJ_4NrFj3iMUE",
"accessUrl" : "https://app.chainrewardz.com/access?token=xyz123"
}
Hosted Mode - Quick Access
Copy jsonCopy code{
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1YjFkODhhZi0wZDJjLTQyMzEtOTExMi1lMGMxODA0MjhjZmEiLCJkYXRhIjp7InNpZGUiOiJDVVNUT01FUiIsInR5cGUiOiJBQ0NFU1NfVE9LRU4iLCJ1c2VySWQiOjUsImJ1c2luZXNzSWQiOjMsInJvbGUiOiJjdXN0b21lciIsInBsYXRmb3JtIjoiV0VCMyIsImNoYWluIjoiRVRIIiwicHVibGljQWRkcmVzcyI6IjB4YWM4ZjRDODBmOTg1MzU1NDY1NTZhOWJhYjRhNzk4RDgwNjRFMTBGRSJ9LCJpc3MiOiJodHRwczovL2NoYWlucmV3YXJkei5jb20iLCJleHAiOjE2OTg0NjcwMTl9.PMgcVzEBNMcOrnIsFR-C-NXX0Kq4EVsqVjzLWP2ve-8",
"refreshToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1YjFkODhhZi0wZDJjLTQyMzEtOTExMi1lMGMxODA0MjhjZmEiLCJkYXRhIjp7InNpZGUiOiJDVVNUT01FUiIsInR5cGUiOiJSRUZSRVNIX1RPS0VOIiwidXNlcklkIjo1LCJidXNpbmVzc0lkIjozLCJyb2xlIjoiY3VzdG9tZXIiLCJwbGF0Zm9ybSI6IldFQjMiLCJjaGFpbiI6IkVUSCIsInB1YmxpY0FkZHJlc3MiOiIweGFjOGY0QzgwZjk4NTM1NTQ2NTU2YTliYWI0YTc5OEQ4MDY0RTEwRkUifSwiaXNzIjoiaHR0cHM6Ly9jaGFpbnJld2FyZHouY29tIiwiZXhwIjozMTcwMjYwNjcwMjB9.JOJDRYCoe7ECYsW4OfmU68XDwBvWgCqJ_4NrFj3iMUE",
"accessUrl" : "https://app.chainrewardz.com/access?token=xyz123"
}
You can add pathway at the end of the access url to direct your users to specific pages.
Copy https://app.chainrewardz.com/access?token=xyz123/hotel-search