# Retrieve a sales event

`GET https://api.cademi.com.br/api/v3/sales/events/{event_id}`

Operation ID: `sales_events.get` · API v3

Retrieves a sales event received from a payment gateway.

The original request headers sent by the gateway are never returned. The raw gateway payload is included only for credentials with the `sales_events.read_payload` permission, and is returned with sensitive data masked.

Imported data is not available through this operation; use the imports resource instead.

Required permissions: `sales_events.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `event_id` | path | string | yes |  |

## Responses

### 200

Returns the requested sales event.

Body: `data`: SalesEvent.

Fields of SalesEvent:

| Field | Type | Required | Description |
|---|---|---|---|
| `delivery_id` | string or null | yes |  |
| `external_id` | string or null | yes | Identifier of the sale in the gateway. |
| `external_product_id` | string or null | yes | Product code in the gateway, exactly as sent by the gateway. |
| `gateway` | string | yes |  |
| `id` | string | yes | Public ID, with the sev_ prefix. |
| `object` | string, one of `sales_event` | yes |  |
| `payload` | object or null | no | Raw body sent by the gateway, with card and document fields masked. Included only when the credentials have the salesevents.readpayload permission. |
| `processing` | object | yes | Processing state of the event. Processing is asynchronous; this object reports the latest known state. |
| `received_at` | string or null (date-time) | 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 |  |
| `transaction_id` | string | yes | Public ID of the transaction that groups the events of the same sale or subscription. |
| `user_id` | string or null | yes |  |

### 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.

### 404

The sales event was not found or is not accessible with the current credentials.

Body: Error.

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