---
title: "Withdraw an attributed client"
method: POST
path: "/clients/{externalTenantId}/withdraw"
tags: ["Clients"]
---

# Withdraw an attributed client

`POST /clients/{externalTenantId}/withdraw`

Withdraws a client that never completed onboarding. Archives the referral partner link and closes all pending cases with close code CaseNeverStartedInternal.

The same externalTenantId can be re-submitted via POST /clients after withdrawal.

Path Parameter
- **externalTenantId** - Your internal identifier for the client

Business Rules
- Only attributed clients (IsAttributedClient = true) can be withdrawn
- All cases for this client must be in PendingContractSigning status

What Happens
- The referral partner client link is archived
- All pending cases are closed with close code CaseNeverStartedInternal

After Withdrawal
- The same externalTenantId can be re-submitted via POST /clients
- A new client record will be created on re-submission

Error Cases
- **404 Not Found** - No active client link exists for this externalTenantId and your partner account
- **409 Conflict** - Client cannot be withdrawn because:
  - IsAttributedClient = false (non-attributed clients cannot be withdrawn)
  - One or more cases have progressed beyond PendingContractSigning

## Path parameters

- `externalTenantId` string, required

## Response `204`

Client withdrawn successfully

## Other responses

- `404` — No active client link found for this externalTenantId
- `409` — Cannot withdraw — client not attributed or cases have progressed beyond onboarding
- `500` — Internal server error

---

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