Skip to main content
GET
/
points_transactions
List points transactions
curl --request GET \
  --url https://api.smile.io/v1/points_transactions \
  --header 'Authorization: Bearer <token>'
{
  "points_transactions": [
    {
      "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"
    }
  ],
  "metadata": {
    "next_cursor": "aWQ6MixkaXJlY3Rpb246bmV4dA==",
    "previous_cursor": ""
  }
}
This endpoint requires the scope.
Results are sorted by id in descending order. This endpoint is commonly used to display a customer’s points earning history.

Authorizations

Authorization
string
header
required

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

Query Parameters

customer_id
string

Filter results to only points transactions with the provided Smile customer ID.

updated_at_min
string<date-time>

Filter results to only points transactions updated at or after the provided date and time.

limit
integer
default:50

The maximum number of points transactions to retrieve.

Required range: 1 <= x <= 250
Example:

1

cursor
string

Cursor for the page of points transactions to retrieve.

Response

200 - application/json
points_transactions
object[]
metadata
object