SMAO API Documentation
Distributor API v1Partners

Delete partner

DELETE
/partners/{partnerId}

Deletes a partner only when it has no linked customer organizations and no internal MSP organization. Partners created through v1 normally have an internal organization, so this operation returns 409 PARTNER_HAS_ORGANIZATIONS until that organization has been removed outside this endpoint. There is no cascade delete.

Authorization

DistributorApiKey
AuthorizationBearer <token>

Long-lived distributor API key, scoped to your distributor account.

In: header

Path Parameters

partnerId*string

Partner (MSP) ID (24-character hex string).

Match^[a-fA-F0-9]{24}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/partners/665abc123def456789012345"
{  "status": "success",  "message": "Partner deleted."}