---
title: "Deactivate an affiliate."
method: POST
path: "/api/v1/affiliate-program/affiliates/{membershipId}/deactivate"
tags: ["Affiliate Program"]
---

# Deactivate an affiliate.

`POST /api/v1/affiliate-program/affiliates/{membershipId}/deactivate`

## Request

- Base URL: `https://api-dev.fusehealth.com`
- URL: `https://api-dev.fusehealth.com/api/v1/affiliate-program/affiliates/{membershipId}/deactivate`
- Auth: API key in header `x-api-key`

Suspend one affiliate's membership: their referral link stops crediting new orders to them. Commissions already recorded and payouts are not changed; pending commissions are still paid. By default they earn no commission on new or renewal orders from now on; send keepCommission true to let renewals of customers they already referred keep earning them commission. Deactivating an affiliate who is already deactivated changes only that choice.

## Path parameters

- `membershipId` string, required

## Request body

- object
  - `keepCommission` boolean: Keep paying commission on renewals of customers this affiliate already referred while they are deactivated. Default false.

## Response `200`

Success

- object
  - `success` boolean
  - `message` string
  - `data` unknown

## Other responses

- `401`: Missing, invalid, inactive, or expired API key (or JWT)
- `403`: Authenticated but not permitted (insufficient scope, wrong role, or FUSE feature not enabled)
- `404`: Resource not found (or not owned by the key's clinic)

---

[API](https://skmtc.dev/fusehealth/apis/fuse-brand-api-external.md) · [All operations](https://skmtc.dev/fusehealth/apis/fuse-brand-api-external/llms.txt) · [OpenAPI document](https://skmtc.dev/fusehealth/apis/fuse-brand-api-external/revisions/50821832728c?raw)
