Skip to main content
POST
/
points_transactions
Create a points transaction
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"
  }
}
'
{
  "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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
points_transaction
object
required

Response

201 - application/json

The points transaction was successfully created.

points_transaction
object