Delete Country
Delete a country (soft delete). Requires authentication.
Endpoint
Authentication
Required
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | Country ID |
Response
Success (200 OK)
Error Responses
Not Found (404)
Missing ID Parameter (400)
Unauthorized (401)
Internal Server Error (500)
Example Request
curl -X DELETE "https://api.luxmart.site/v1/accounts/country/?id=1" \
-H "Authorization: Token your_access_token"
Notes
- This is a soft delete operation - the country is marked as deleted but not removed from the database
- Deleted countries will not appear in GET requests
- The
updatedtimestamp is automatically set by the system - Returns 404 if country is not found or has already been deleted