The following two APIs are standards we expect for interacting with a client’s loyalty point system.
In our self-serve dashboard we will ask for the following:
Please build your APIs with API key access. Allow us to pass in the API key as a header
# we will send the following header on all requests
x-api-key: YOUR_API_KEY
GET <URL can be specified, e.g. https://api.domain.com/api/balances>
Query parameters:
{
walletAddress: string | string[], // case-insensitive
startingAfter?: string // optional, only if pagination is required.
}
// no pagination
Status code: 2**
Response body:
{
"data": [{
"id": string // optional, only if pagination is required
walletAddress: string
amount: string // important: amount must be a string
loyaltyCurrencyId: string
}],
hasNextPage: boolean // if pagination is required
}