curl --request POST \ --url https://api.smile.io/v1/points_transactions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "points_transaction": { "customer_id": 304169228, "points_change": 100, "description": "Points correction", "internal_note": "Due to issue with order #6834" }}'
Copy
Ask AI
{ "points_transaction": { "id": 825673452, "customer_id": 304169228, "points_change": 100, "description": "Points correction", "internal_note": "Due to issue with order #6834", "created_at": "2024-12-07T20:15:27.893Z", "updated_at": "2024-12-07T20:15:27.893Z" }}
Points Transactions
Create a points transaction
Add or remove points from a customer’s points balance by creating a points transaction.
POST
/
points_transactions
Create a points transaction
Copy
Ask AI
curl --request POST \ --url https://api.smile.io/v1/points_transactions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "points_transaction": { "customer_id": 304169228, "points_change": 100, "description": "Points correction", "internal_note": "Due to issue with order #6834" }}'
Copy
Ask AI
{ "points_transaction": { "id": 825673452, "customer_id": 304169228, "points_change": 100, "description": "Points correction", "internal_note": "Due to issue with order #6834", "created_at": "2024-12-07T20:15:27.893Z", "updated_at": "2024-12-07T20:15:27.893Z" }}
This endpoint requires the scope.
Points transactions that would result in a negative points balance will be rejected. To issue points as a reward for completing an action, use the create an activity endpoint instead.