# List sales transactions

`GET https://api.cademi.com.br/api/v3/sales/transactions`

Operation ID: `sales_transactions.list` · API v3

Returns sales transactions. Each transaction aggregates the events of a single sale or subscription. A transaction's ID is derived from its first event and does not change when new events are received.

Required permissions: `sales_events.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `limit` | query | integer | no |  |
| `cursor` | query | string | no |  |
| `sort` | query | string, one of `id`, `-id` | no |  |
| `user_id` | query | string | no |  |
| `delivery_id` | query | string | no |  |
| `gateway` | query | string | no |  |
| `external_id` | query | string | no |  |
| `status` | query | string | no |  |
| `updated_after` | query | string (date-time) | no |  |

## Responses

### 200

Returns the collection of sales transactions.

Body: `data`: array of SalesTransaction.

Fields of SalesTransaction:

| Field | Type | Required | Description |
|---|---|---|---|
| `amount` | string or null | yes | Amount from the most recent event, exactly as sent by the gateway. |
| `currency` | string or null | yes | Currency of the transaction, or null when the gateway event does not include one. |
| `delivery_id` | string or null | yes |  |
| `enrollment_ids` | array of string | yes |  |
| `events_count` | integer | yes |  |
| `external_id` | string or null | yes |  |
| `external_product_id` | string or null | yes |  |
| `first_event_at` | string or null (date-time) | yes |  |
| `gateway` | string | yes |  |
| `id` | string | yes | Public ID, with the trx_ prefix. Derived from the first event of the transaction; it does not change when new events arrive. |
| `last_event_at` | string or null (date-time) | yes |  |
| `object` | string, one of `sales_transaction` | yes |  |
| `status` | string, one of `trial`, `approved`, `canceled`, `refunded`, `past_due`, `awaiting_payment`, `awaiting_review`, `expired`, `abandoned`, `ignored`, `unknown` | yes |  |
| `subscription_external_id` | string or null | yes |  |
| `user_id` | string or null | yes |  |

### 400

The cursor is invalid or the request contains an unsupported query parameter.

Body: Error.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
