Connect loyalty features into websites, applications, and business systems with simple API integration.
POST /api/v1/points/add
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"customer_id": "CUS00001",
"points": 100,
"reason": "Purchase"
}
Authenticate every API request with secure API keys. Manage access, rotate keys, and monitor usage from your dashboard.
# Header format
Authorization: Bearer YOUR_API_KEY
# Example request
curl https://api.aftersolves.com/v1/customers \
-H "Authorization: Bearer sk_live_abc123..."
Manage customers, points, rewards, memberships, and vouchers through a clean REST API.
/api/v1/points/add/api/v1/points/deduct/api/v1/customers/{id}/balance/api/v1/vouchers/generate/api/v1/rewards/redeem/api/v1/memberships/{id}/api/v1/memberships/upgrade/api/v1/customers/{id}Full reference at docs.aftersolves.com
Copy-paste examples in JavaScript, Python, PHP, Go, and more. Get started in minutes.
curl -X POST https://api.aftersolves.com/v1/points/add \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "CUS00001",
"points": 100,
"reason": "Purchase"
}'
const response = await fetch('https://api.aftersolves.com/v1/points/add', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customer_id: 'CUS00001',
points: 100,
reason: 'Purchase'
})
});
const data = await response.json();
console.log(data);
import requests
response = requests.post(
'https://api.aftersolves.com/v1/points/add',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'customer_id': 'CUS00001',
'points': 100,
'reason': 'Purchase'
}
)
print(response.json())
Start creating better customer experiences with AfterSolves Loyalty.