> ## Documentation Index
> Fetch the complete documentation index at: https://developers.mageloyalty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List earning history

> List a customer's point earning history.

List a customer's point earning history. The `identifier` can be a Shopify customer ID or email.

## Query parameters

| Parameter        | Type    | Description                                                                                                            |
| ---------------- | ------- | ---------------------------------------------------------------------------------------------------------------------- |
| `filter[status]` | string  | Filter by status: `pending`, `approved`, `rejected`                                                                    |
| `sort`           | string  | Sort field. Prefix with `-` for descending. Options: `created_at`, `points`, `points_given_at`. Default: `-created_at` |
| `page[number]`   | integer | Page number (default: `1`)                                                                                             |
| `page[size]`     | integer | Results per page (default: `20`, max: `100`)                                                                           |

## Response

```json theme={null}
{
  "data": [
    {
      "type": "earning_history_entry",
      "id": "entry_abc",
      "attributes": {
        "earning_rule_id": "rule_abc",
        "action": "place_order",
        "points": 150,
        "base_points": 100,
        "points_multiplier": 1.5,
        "status": "approved",
        "order_id": "5678901234",
        "order_number": "#1042",
        "shopify_date": "2024-06-01T12:00:00.000Z",
        "points_due_at": null,
        "points_given_at": "2024-06-01T12:05:00.000Z",
        "points_expiry_at": null,
        "manual_intervention": false,
        "created_at": "2024-06-01T12:00:00.000Z",
        "updated_at": "2024-06-01T12:05:00.000Z"
      }
    }
  ],
  "meta": {
    "total": 12,
    "page": 1,
    "per_page": 20,
    "total_pages": 1
  }
}
```
