Skip to main content
DELETE
/
stores
/
company
/
{company_id}
Delete Company
curl --request DELETE \
  --url https://api-staging.luladelivery.store/stores/company/{company_id}
{
  "success": true
}
This endpoint permanently removes a company from the system. This is an irreversible operation that will delete the company record and may cascade to associated entities like stores, orders, and customer data.
Destructive Operation: This action cannot be undone. All company data, associated stores, and related information will be permanently deleted from the system.

Path Parameters

company_id
string
required
The unique identifier of the company to delete

Prerequisites

Before deleting a company, ensure:
Backup Data
action
Export any important company data, reports, or configurations that you may need later
Store Management
action
Handle all associated stores - either delete them separately or transfer them to another company
Order Processing
action
Ensure all pending orders are completed or properly handled
Financial Settlement
action
Complete any outstanding payments, refunds, or billing processes
Customer Communication
action
Notify customers about service discontinuation if applicable
Integration Cleanup
action
Disconnect any third-party integrations and clean up API connections

Deletion Impact

Company Record
deleted
Complete company profile including business information and settings
Address Information
deleted
All associated address records
Store Associations
affected
All stores under this company may be affected (depending on system configuration)
User Access
affected
Admin and user accounts associated with this company will lose access
Order History
affected
Historical order data may be affected (check system retention policies)
Integration Data
affected
HubSpot connections and other CRM integrations will be severed

Response

success
boolean
Indicates whether the deletion operation was successful

Response Example

{
    "success": true
}

Error Scenarios

Company Not Found
error
The specified company_id does not exist in the systemStatus Code: 404
Active Stores
error
Company has active stores that must be handled firstStatus Code: 409Solution: Delete or transfer all stores before deleting the company
Pending Orders
error
Company has pending or processing ordersStatus Code: 409Solution: Wait for orders to complete or cancel them manually
Insufficient Permissions
error
User doesn’t have permission to delete companiesStatus Code: 403Solution: Ensure you have admin-level permissions

Alternative Approaches

Deactivation
alternative
Set the company’s active status to 0 instead of deletingBenefits: Preserves data while preventing new operations
Status Change
alternative
Change company status to “Off Boarding” or “Churned”Benefits: Maintains audit trail and historical data
Archive
alternative
Export company data before deletion for archival purposesBenefits: Retains important business information for compliance
Best Practice: Consider using the Update Company endpoint to set active: 0 or change status to “Churned” instead of permanent deletion. This preserves valuable business data while effectively removing the company from active operations.
Compliance: Ensure deletion complies with data retention policies, GDPR requirements, and any regulatory obligations in your jurisdiction.
I