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

# Archive partner

> Soft-delete a partner. Archived partners can be restored later.

## Endpoint

```
POST https://api.partnero.com/v1/partners/{id}/archive
```

Soft-deletes a partner. Unlike permanent deletion, archived partners can be [restored](/api-reference/partners/restore) later. The partner loses access to the portal while archived.

## Path parameters

| Parameter | Type   | Required | Description         |
| --------- | ------ | -------- | ------------------- |
| `id`      | string | Yes      | Partner's unique ID |

## Request

```bash cURL theme={null}
curl --location --request POST 'https://api.partnero.com/v1/partners/partner_123/archive' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "status": 1
  }
  ```
</ResponseExample>

## Error responses

| Status | Error             | Solution                        |
| ------ | ----------------- | ------------------------------- |
| 404    | Partner not found | Check the partner ID is correct |
| 400    | Action failed     | Partner may already be archived |

<Tip>
  Use archive instead of delete when you may need to reverse the action later. To undo an archive, use the [restore](/api-reference/partners/restore) endpoint.
</Tip>
