update_loyalty_points
Add or redeem customer loyalty points based on store spending - earn 1 point per $1 spent, redeem 100 points for $10 off purchases.
Instructions
Add or redeem loyalty points for a customer. Store policy: 1 point per $1 spent, 100 points = $10 off.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
customerId | Yes | Customer ID | |
points | Yes | Points to add (positive) or redeem (negative) | |
reason | Yes | Reason for point adjustment |
Input Schema (JSON Schema)
{
"properties": {
"customerId": {
"description": "Customer ID",
"type": "string"
},
"points": {
"description": "Points to add (positive) or redeem (negative)",
"type": "number"
},
"reason": {
"description": "Reason for point adjustment",
"type": "string"
}
},
"required": [
"customerId",
"points",
"reason"
],
"type": "object"
}