Validation Logic
Thred validatesentity_type based on the business’s country:
- Restricted countries (GB, DE, NL, ES, BE): Must use predefined business entity type codes
- All other countries: Accept any string value for
entity_type
Business Entity Types by Country
For these countries, the API will reject requests with invalid business entity types (HTTP 400).- United Kingdom (GB)
- Germany (DE)
- Netherlands (NL)
- Spain (ES)
- Belgium (BE)
Valid business entity types:
Example:
| Code | Description |
|---|---|
limited | Ltd (Private Limited Company) |
sole_trader | Sole Trader |
llp | Limited Liability Partnership |
partnership | Partnership |
plc | Public Limited Company |
Validation Behavior
Cross-Field Validation
The API validatesentity_type against country in create operations, and against the business’s existing country in update operations:
Create Business:
Error Response
Invalid business entity types return HTTP 400 with details:Edge Cases
Blank entity_type
Blank entity_type
The
entity_type field is optional (blank=True). Omitting it or passing an empty string is valid for all countries.Case sensitivity
Case sensitivity
Business entity type codes are case-insensitive. The API automatically normalizes them to lowercase:
- ✅
"limited"→ stored as"limited" - ✅
"Limited"→ stored as"limited" - ✅
"LIMITED"→ stored as"limited" - ✅
"GMBH"→ stored as"gmbh"
Updating country
Updating country
country is not a partner-mutable field on PATCH /v1/platform/businesses/{id}/.To change the legal country for an existing business, contact Thred support or create a new business record with a new external_id if the change represents a new legal entity.