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

# List points transactions

Retrieves a paginated list of point transactions for a customer. Results are sorted by `created_at` in descending order.

**GET /public/customers/transactions**

#### **Authorizations**

**Authorization**

**string**

**header**

**required**

Bearer authentication header of the form `Bearer <token>`, where `<token>` is your REST API token.

#### **Required Scope**

**`transactions:read`**

This endpoint requires the `transactions` scope with **Read Access**. Configure token scopes in Settings → Integrations → REST API.

#### **Query Parameters**

**customer\_id**

**string**

**required**

The platform customer ID (e.g. Shopify customer ID)

Example:

`"9049402769586"`

#### **Query Parameters**

**entry\_type**

**enum\<string>**

Filter results to only transactions of the given type.

Available options:

`credit`,

`debit`

**per\_page**

**integer**

**default: 20**

The number of results per page.

Required range: `1 <= x <= 100`

**page**

**integer**

**default: 1**

The page number to retrieve.

#### **Response**

**200 - application/json**

**data**

**object\[]**

Hide child attributes

**data.id**

**string\<uuid>**

Unique UUID identifier for the transaction.

Example:

`"d4e5f6a7-b8c9-0123-defa-b01234567890"`

**data.customer\_id**

**string\<uuid>**

The UUID of the customer this transaction belongs to.

Example:

`"63a2c89a-9936-4bc0-9d5f-93db46110b76"`

**data.entry\_type**

**enum\<string>**

Whether points were added or removed.

Available options:

`credit`,

`debit`

Example:

`"credit"`

**data.points**

**integer**

The number of points added or removed. Always a positive number — use `entry_type` to determine direction.

Example:

`100`

**data.action\_type**

**string**

The internal action that generated this transaction.

Example:

`"purchase"`

**data.status**

**enum\<string>**

The current status of the transaction.

Available options:

`active`,

`on_hold`,

`used`,

`failed`

Example:

`"active"`

**data.description**

**string | null**

A human-readable description of the transaction, if provided.

Example:

`"Points for completing a purchase"`

**data.source**

**string | null**

The source that created this transaction.

Example:

`"rest_api"`

**data.transacted\_at**

**string\<date-time>**

The date and time the transaction occurred.

Example:

`"2026-02-15T08:30:00.000Z"`

**data.created\_at**

**string\<date-time>**

The date and time when the transaction record was created.

Example:

`"2026-02-15T08:30:00.000Z"`

**meta**

**object**

Hide child attributes

**meta.pagination**

**object**

Pagination details for the result set.

Hide child attributes

**meta.pagination.current\_page**

**integer**

The current page number.

Example:

`1`

**meta.pagination.per\_page**

**integer**

The number of results per page.

Example:

`20`

**meta.pagination.total**

**integer**

The total number of transactions.

Example:

`43`

**meta.pagination.last\_page**

**integer**

The last available page number.

Example:

`3`

**meta.pagination.has\_more**

**boolean**

Whether there are more pages to retrieve.

Example:

`true`

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url "https://api.yukoapp.com/api/v1/public/customers/transactions?customer_id=9049402769586?entry_type=credit&per_page=20" \
    --header "Authorization: Bearer py_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  ```

  ```javascript JavaScript theme={null}
  const customerId = "9049402769586";
  const params = new URLSearchParams({ entry_type: "credit", per_page: 20 });

  const response = await fetch(
    `https://api.yukoapp.com/api/v1/public/customers/transactions?customer_id=${customerId}?${params}`,
    {
      method: "GET",
      headers: {
        Authorization: "Bearer py_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      },
    }
  );

  const data = await response.json();
  ```

  ```php PHP theme={null}
  $customerId = "9049402769586";
  $query = http_build_query(["entry_type" => "credit", "per_page" => 20]);

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "https://api.yukoapp.com/api/v1/public/customers/transactions?customer_id={$customerId}?{$query}");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, [
      "Authorization: Bearer py_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  ]);

  $response = curl_exec($ch);
  curl_close($ch);

  $data = json_decode($response, true);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": [
      {
        "id": "d4e5f6a7-b8c9-0123-defa-b01234567890",
        "customer_id": "63a2c89a-9936-4bc0-9d5f-93db46110b76",
        "entry_type": "credit",
        "points": 100,
        "action_type": "purchase",
        "status": "active",
        "description": null,
        "source": null,
        "transacted_at": "2026-02-15T08:30:00.000Z",
        "created_at": "2026-02-15T08:30:00.000Z"
      },
      {
        "id": "e5f6a7b8-c9d0-1234-efab-c01234567890",
        "customer_id": "63a2c89a-9936-4bc0-9d5f-93db46110b76",
        "entry_type": "credit",
        "points": 50,
        "action_type": "signup",
        "status": "active",
        "description": null,
        "source": null,
        "transacted_at": "2024-06-01T10:00:00.000Z",
        "created_at": "2024-06-01T10:00:00.000Z"
      }
    ],
    "meta": {
      "pagination": {
        "current_page": 1,
        "per_page": 20,
        "total": 2,
        "last_page": 1,
        "has_more": false
      }
    }
  }
  ```

  ```json 404 theme={null}
  {
    "error": {
      "code": "not_found",
      "message": "Customer not found"
    }
  }
  ```

  ```json 401 theme={null}
  {
    "error": {
      "code": "invalid_token",
      "message": "Invalid or revoked API token"
    }
  }
  ```
</ResponseExample>
