curl --request PUT \ --url https://api-staging.luladelivery.store/stores/company/{company_id}/offboard
Copy
{ "success": true}
Companies
Offboard Company
This endpoint initiates the offboarding process for a company. Offboarding is a controlled process that safely transitions a company out of active service while preserving important data and ensuring proper closure of operations.
PUT
https://api-staging.luladelivery.store
/
stores
/
company
/
{company_id}
/
offboard
Offboard Company
Copy
curl --request PUT \ --url https://api-staging.luladelivery.store/stores/company/{company_id}/offboard
Copy
{ "success": true}
This endpoint starts the offboarding process for a company, which is a safer alternative to permanent deletion. Offboarding allows for a controlled wind-down of operations while maintaining data integrity and compliance requirements.
Gracefully transitions the company out of active service
Preserves historical data for compliance and reporting
Ensures proper closure of ongoing operations
Maintains audit trails for business purposes
Allows for potential reactivation if needed
Offboarding vs Deletion: Unlike deletion, offboarding preserves all company data while marking the company as no longer active. This approach is recommended for compliance and business continuity.
Company has active orders that may be affectedStatus Code: 200 (Success with warning)Note: Process continues but active orders are flagged for attention
User lacks permission to offboard companiesStatus Code: 403
Timing Considerations: Plan offboarding during low-activity periods to minimize impact on customers and operations. Consider timezone differences if serving multiple regions.
Compliance: Offboarding maintains compliance with data retention requirements while safely removing companies from active service. This approach is preferred over deletion for regulated industries.