cURL
curl --request POST \ --url https://api.zupy.com/api/v2/customers/{id}/points/add/ \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "amount": 2, "reason": "" } '
{ "data": { "customer_id": "<string>", "operation": "<string>", "amount": 123, "balance_before": 123, "balance_after": 123, "activity_id": "<string>", "created_at": "2023-11-07T05:31:56Z" }, "meta": { "cursor": "<string>", "has_next": true, "count": 123 } }
Add loyalty points to a customer’s balance. Delegates to LoyaltyUser.add_points(). All async side effects (Z$ distribution, RFM, wallet push) preserved.
API key for partner access via APISIX key-auth plugin
Unique identifier for this customer.
Request parameters for adding points to a customer's loyalty balance.
x >= 1
255
Result of a points operation (add or reduce) with updated balance.
Show child attributes
Cursor-based pagination metadata matching envelope middleware output.