# Create a processing attempt

`POST https://api.cademi.com.br/api/v3/sales/events/{event_id}/processing-attempts`

Operation ID: `sales_events.processing_attempts.create` · API v3

Requests that the sales event be processed again. The event is queued for reprocessing; no access is granted directly by this request, and the event status changes once processing completes.

Requires an `Idempotency-Key` header.

Required permissions: `sales_events.reprocess`.

## Parameters

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

## Responses

### 202

The request was accepted. Returns the new processing attempt.

Body: `data`: ProcessingAttempt.

Fields of ProcessingAttempt:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `effects` | object | no | Effects of the attempt on the lead. Present in Diamond membership attempts. |
| `error` | object or null | yes |  |
| `event_id` | string | no | Public ID of the sales event, with the sev_ prefix. Present in sales event attempts. |
| `id` | string | yes | Public ID, with the pat_ prefix. |
| `import_id` | string | no | Public ID of the import, with the imp_ prefix. Present in import attempts. |
| `membership_id` | string | no | Public ID of the lead's Diamond membership, with the mbr_ prefix. Present in Diamond membership attempts. |
| `object` | string, one of `processing_attempt` | yes |  |
| `operation_id` | string | yes | Public ID of the operation, with the op_ prefix. |
| `requested_by` | object | yes |  |
| `selection` | object | no | Spreadsheet rows selected by the attempt. Present in import attempts. |
| `status` | string, one of `queued`, `succeeded`, `failed` | 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.

### 422

The Idempotency-Key header is missing.

Body: Error.

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