---
title: "Delete sale"
method: DELETE
path: "/sales"
---

# Delete sale

`DELETE /sales`

Permanently deletes a sale and the commissions that cascade from it. This cannot be undone.

The request succeeds with the same response even when no sale matched. Fires the `sale.deleted` webhook.

## Request body

- SaleDelete
  - `saleId` integer, required — The sale to delete

## Response `200`

The sale was deleted.

- DeleteMessage
  - `message` string — Confirmation message

## Other responses

- `400` — `saleId` was not supplied, or the delete failed.
- `401` — The `Authorization` header is missing, is not a `Bearer` header, or the token is not valid.
- `403` — API access is not enabled for this account.
- `404` — The affiliate program this token belongs to no longer exists.
- `429` — Too many requests for this token on this endpoint. Please slow down.

---

[API](https://skmtc.net/referly/apis/referly-api.md) · [All operations](https://skmtc.net/referly/apis/referly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/referly/referly-api/revisions/0f506d61b9c3/schema)
