Soft deletes a customer by setting status to inactive.
inactive| Data | Status |
|---|---|
| Customer profile | Preserved, marked inactive |
| Order history | Preserved |
| Subscription history | Preserved |
| Payment history | Preserved |
| Addresses | Preserved |
| Error Code | Cause | Solution |
|---|---|---|
NOT_FOUND | Customer doesn’t exist | Verify customer ID |
CUSTOMER_HAS_ACTIVE_SUBSCRIPTIONS | Cannot delete with active subscriptions | Cancel subscriptions first |
CUSTOMER_HAS_PENDING_ORDERS | Cannot delete with pending orders | Complete or cancel orders first |
API key obtained from FlexPortal dashboard
Your tenant identifier
The customer ID