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"
}
All API requests require an API key passed in the Authorization header as a Bearer token. Generate, rotate, and revoke keys from your dashboard at any time. Keys are scoped per-environment so you can keep production and sandbox traffic separate.
# Header format
Authorization: Bearer YOUR_API_KEY
# Example request
curl https://api.aftersolves.com/v1/customers \
-H "Authorization: Bearer sk_live_abc123..."
A simple, consistent REST API for every loyalty operation.
/api/v1/points/add/api/v1/points/deduct/api/v1/customers/{id}/balance/api/v1/vouchers/create/api/v1/vouchers/redeem/api/v1/memberships/{id}/api/v1/memberships/upgrade/api/v1/customers/{id}Full reference at docs.aftersolves.com
Add points to a customer with a single request — in cURL, JavaScript, and Python.
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())
Read the full API reference and integration guides at our documentation portal.