Skip to main content
PUT
/
stores
/
company
/
{company_id}
/
offboard
Offboard Company
curl --request PUT \
  --url https://api-staging.luladelivery.store/stores/company/{company_id}/offboard
{
  "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.

What is Offboarding?

Offboarding is a structured process that:
  • 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.

Path Parameters

company_id
string
required
The unique identifier of the company to offboard

Offboarding Process

Status Update
process
Company status is automatically changed to “Off Boarding”
Store Management
process
All associated stores are marked for offboarding
Stores may be deactivated or marked as “Off Boarding” depending on configuration
Order Processing
process
System prevents new orders while allowing existing orders to complete
Inventory Freeze
process
Inventory updates are disabled to prevent new stock changes
User Access
process
User accounts are disabled or restricted to view-only access
Integration Cleanup
process
Third-party integrations are paused or disconnected safely
Data Preservation
process
All historical data, reports, and configurations are preserved

Post-Offboarding Effects

Company Status
changed
Status automatically set to “Off Boarding”
Store Operations
disabled
All stores become unavailable for new orders
API Access
restricted
Most write operations are disabled, read operations may be restricted
Customer Visibility
hidden
Company and stores are hidden from customer-facing applications
Admin Access
limited
Admin users get read-only access for reporting and data export
Billing
adjusted
Billing cycles may be adjusted or terminated based on configuration

Response

success
boolean
Indicates whether the offboarding process was successfully initiated

Response Example

{
    "success": true
}

Reactivation Process

Contact Support
required
Reactivation typically requires manual intervention from support team
Business Review
process
Business requirements and conditions may need to be reviewed
System Validation
process
System integrity and data consistency checks are performed
Gradual Restoration
process
Services are restored incrementally to ensure stability

Best Practices

Communication
best-practice
Notify all stakeholders before initiating offboarding
Send advance notice to customers, partners, and internal teams
Data Export
best-practice
Export critical business data before offboarding
Generate reports for sales, inventory, and customer data
Order Completion
best-practice
Allow time for pending orders to complete naturally
Offboarding with pending orders may affect customer experience
Financial Settlement
best-practice
Complete all financial transactions and settlements
Ensure all payments, refunds, and fees are properly processed
Integration Cleanup
best-practice
Properly disconnect third-party services and integrations
Update webhook URLs and disable API keys to prevent errors

Error Scenarios

Company Not Found
error
The specified company_id does not existStatus Code: 404
Already Offboarded
error
Company is already in “Off Boarding” or “Churned” statusStatus Code: 409
Active Orders
warning
Company has active orders that may be affectedStatus Code: 200 (Success with warning)Note: Process continues but active orders are flagged for attention
Insufficient Permissions
error
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.
I