Skip to main content

Validation Logic

Thred validates entity_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).
Valid business entity types:Example:

Validation Behavior

Cross-Field Validation

The API validates entity_type against country in create operations, and against the business’s existing country in update operations: Create Business:
Update Business:

Error Response

Invalid business entity types return HTTP 400 with details:

Edge Cases

The entity_type field is optional (blank=True). Omitting it or passing an empty string is valid for all countries.
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"
Recommendation: Use lowercase for consistency, but any case will work.
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.