Loyalty3 enables customized loyalty point experiences by integrating with your points query service.You need to implement the API for querying points in the following instructions to facilitate queries by Loyalty3.
After integration of your points query service, you can set the corresponding points threshold in the allow list of NFTs. Only when users meet this condition will they be allowed to mint/claim NFTs.
Business-side configuration: set points threshold Customer-side page: verify points eligibility Next, let's take a look at the preparatory work that needs to be done, including API development and API configuration.
API Development
Request Parameters
Parameters
Type
Example
Description
0x6183b0e158e5e591b1d634E64861B8700F90ecb3
User unique identifier, corresponding to a single user and is immutable.
Type of account, currently only supports EVM_ADDRESS.
Request source, fixed as "loyalty3d" for this interface.
Current second-level Unix timestamp.
0x6dabcd2a80311b138fa0855ef02e8faf7ff9c8031909d25635d725e3b661eae30c47edbb09d88c9ecab571077337bec3325058a5a5321e0f59e31b16974f1ad201
Hex format of the signature by the Loyalty3 backend for the request parameters.
Example:
Response Parameters
Parameters
Type
Example
Description
0x6183b0e158e5e591b1d634E64861B8700F90ecb3
User unique identifier, corresponding to a single user and is immutable.
Example:
API Configuration
After completing the API development, please perform the following 3 steps in the Loyalty3 business management dashboard. Otherwise, you will not be able to set the points allowlist.
Specify the API URL and test address:
After clicking "Test," it will return the Request and Response.
When the response successfully returns the balance, you can click "Confirm" to save the settings:
🎉 Congratulations, you have successfully integrated your points system into Loyalty3! Now you can use points as a eligibility in the NFT allow list.
Frequently Asked Questions
How to ensure that API requests from Loyalty3?
You can verify the sig in the request parameters to confirm that the request is from Loyalty3.
Loyalty3 address: 0xd7f3dbc9d18b6257fe188fa7decb689e665817
Sample code: