# DeleteTradingPartner

Deletes a trading partner using ID.

`DELETE /trading-partners/{id}`

**API:** Avalara E-Invoicing API
**Tag:** Trading Partners
**API Version:** 1.5
**Base URL:** https://api.sbx.avalara.com/einvoicing
**Authentication:** Bearer token

Source: https://developer.avalara.com/products/e-invoicing/api/v1.5/methods/Trading%20Partners/DeleteTradingPartner/

## Description

This endpoint deletes an existing trading partner identified by the provided ID.

## Parameters

| Name | Type | In | Required | Description |
|---|---|---|---|---|
| `avalara-version` | string | header | Yes | Header that specifies the API version to use (for example "1.5"). |
| `X-Avalara-Client` | string | header | No | Optional header for a client identifier string used for diagnostics (for example "Fingerprint"). |
| `X-Correlation-ID` | string | header | No | Optional correlation identifier provided by the caller to trace the call (for example "f3f0d19a-01a1-4748-8a58-f000d0424f43"). |
| `id` | string | path | Yes | Unique identifier of the trading partner. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 204 | Trading partner deleted successfully. |  |
| 401 | Unauthorized | `ErrorResponse` |
| 403 | Forbidden | `ErrorResponse` |
| 404 | NotFound | `ErrorResponse` |
| 500 | Internal server error | `ErrorResponse` |

## Example Request

```bash
curl -X DELETE "https://api.sbx.avalara.com/einvoicing/trading-partners/{id}" \
  -H "Authorization: Basic <credentials>" \
  -H "Accept: application/json"
```