Introduction
This section contains no articles.
Earning Rules
List Ways to Earn Retrieve the list of "ways to earn" (earning rule configurations) for the shop. GET /rest-api/v1/earningRules Query parameters Name Type Description page int Page number (required) pageSize int Number of results per page (required, max 250) Example request curl --request GET \ --url 'https://api.bloy.io/rest-api/v1/earningRules?page=1&pageSize=20' \ --header 'Authorization: Bearer YourApiKeyGoesHere' **ExampFew readersVIP
Get the VIP program Retrieve the shop's active VIP program, including its tiers, perks, entry rewards, and per-tier earning rules. GET /rest-api/v1/vip Example request curl --request GET \ --url https://api.bloy.io/rest-api/v1/vip \ --header 'Authorization: Bearer YourApiKeyGoesHere' Example response { "success": true, "message": "OK", "data": [ { "id": "664f1a2b3c4d5e6f7a8b9c50", "status": true, "startDate": "2025-01-01T00:00:0Few readersReferral
Get a customer's referral code Retrieve (or automatically generate, if not yet created) the customer's referral code. GET /rest-api/v1/referral Query parameters Name Type Description customerIdentifier string Shopify customer ID or email (required) Example request curl --request GET \ --url 'https://api.bloy.io/rest-api/v1/referral?customerIdentifier=customer@example.com' \ --header 'Authorization: Bearer YourApiKeyGoesHere' **ExampFew readers
