### POST /api/v4/exports/{id}/cancel

**Cancel an export** (`cancel_export`). Cancel an export; unspent reservations are refunded.

Free. API key required. Success: `200`. Accepts `Idempotency-Key`.

#### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Export UUID. |

#### Response

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object | yes | The result. |
| `data.id` | string | yes | UUID. |
| `data.type` | "export" | yes |  |
| `data.status` | "quoting" \| "awaiting_approval" \| "queued" \| "running" \| "canceling" \| "succeeded" \| "partially_succeeded" \| "failed" \| "canceled" | yes |  |
| `data.client_reference` | string \| null | yes |  |
| `data.created_at` | string \| null | yes |  |
| `data.finished_at` | string \| null | yes |  |
| `data.collection` | any | yes |  |
| `data.format` | any | yes |  |
| `data.quote` | object | yes |  |
| `data.quote.quote_id` | string | yes | UUID. |
| `data.quote.rows` | integer | yes |  |
| `data.quote.max_cost_usd_cents` | integer | yes | The most approval can charge. |
| `data.quote.expires_at` | string | yes | ISO 8601 timestamp (UTC). |
| `data.quote.lines` | array<object> | yes |  |
| `data.progress` | object | yes |  |
| `data.progress.rows` | integer | yes |  |
| `data.cost` | object | yes |  |
| `data.cost.reserved_usd_cents` | integer | yes | USD cents. |
| `data.cost.charged_usd_cents` | integer | yes | USD cents. |
| `data.cost.refunded_usd_cents` | integer | yes | USD cents. |
| `data.result` | object \| null | yes |  |
| `data.result.download_url` | string \| null | yes |  |
| `data.result.url_expires_at` | string \| null |  |  |
| `data.result.artifact_expires_at` | string \| null | yes |  |
| `data.result.filename` | string |  |  |
| `data.result.rows` | integer | yes |  |
| `data.result.truncated_to_quote` | boolean |  |  |
| `data.result.note` | string |  |  |
| `data.failure` | object \| null | yes |  |
| `data.failure.code` | string | yes |  |
| `data.failure.message` | string \| null | yes |  |
| `meta.request_id` | string | yes | Request id (also in X-Request-Id). |
| `meta.cost_usd_cents` | number | yes | Charged for this request, in USD cents. |

#### Errors

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | `VALIDATION_FAILED` | The request does not match the endpoint contract. |
| 401 | `UNAUTHORIZED` | The API key is missing, invalid or revoked. |
| 404 | `NOT_FOUND` | The record or resource does not exist for this account. |
| 409 | `IDEMPOTENCY_MISMATCH` | This Idempotency-Key was already used with a different request. |
| 409 | `IDEMPOTENCY_IN_PROGRESS` | A request with this Idempotency-Key is still running. |
| 429 | `RATE_LIMITED` | Too many requests in the current window. |
| 500 | `INTERNAL_ERROR` | An unexpected server error. |
| 503 | `SERVICE_UNAVAILABLE` | A dependency is temporarily unavailable. |

#### Example

```bash

curl -X POST 'https://startup-seeker.com/api/v4/exports/<id>/cancel' \
  -H "Authorization: Bearer $STARTUPSEEKER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

```