curl --request POST \
--url https://dev-backend.thredfi.com/v1/platform/businesses/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"external_id": "customer-123",
"legal_name": "Acme Coffee Limited",
"entity_type": "limited",
"email": "accounting@acmecoffee.co.uk",
"country": "GB",
"base_currency": "GBP",
"phone_number": "+44 20 1234 5678",
"vat_number": "GB123456789",
"company_number": "12345678",
"province": "Greater London",
"accounting_method": "accrual",
"fiscal_year_end": "2024-03-31",
"metadata": {
"erp_id": "ERP-12345",
"industry": "hospitality"
}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "customer-123",
"legal_name": "Acme Coffee Limited",
"name": "Acme Coffee Ltd",
"entity_type": "limited",
"phone_number": "+44 20 1234 5678",
"tin": "1234567890",
"vat_number": "GB123456789",
"company_number": "12345678",
"country": "GB",
"province": "Greater London",
"eu_nace_industry_code": "56.30",
"email": "accounting@acmecoffee.co.uk",
"base_currency": "GBP",
"accounting_method": "accrual",
"fiscal_year_end": "2024-03-31",
"activation_at": "2024-01-15T10:30:00Z",
"is_active": true,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-03-20T14:22:00Z",
"metadata": {
"erp_id": "ERP-12345",
"industry": "hospitality"
}
}Create business (idempotent)
Create a new business with idempotency support via external_id.
Supported Markets: EU/UK, Nordic, and APAC countries (GB, DE, FR, NL, ES, BE, IT, IE, AT, PT, SE, NO, DK, FI, IS, MY, SG)
Entity Type Validation:
- GB, DE, NL, ES, BE, MY, SG: Must use country-specific entity types (see documentation)
- All other countries: Any entity type string is accepted
Idempotency: If a business with the same external_id already exists for your partner, this endpoint will return the existing business (HTTP 200) instead of creating a duplicate.
Response Metadata: Includes _meta field indicating creation vs idempotent return.
Required Fields: external_id, legal_name, entity_type, email
curl --request POST \
--url https://dev-backend.thredfi.com/v1/platform/businesses/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"external_id": "customer-123",
"legal_name": "Acme Coffee Limited",
"entity_type": "limited",
"email": "accounting@acmecoffee.co.uk",
"country": "GB",
"base_currency": "GBP",
"phone_number": "+44 20 1234 5678",
"vat_number": "GB123456789",
"company_number": "12345678",
"province": "Greater London",
"accounting_method": "accrual",
"fiscal_year_end": "2024-03-31",
"metadata": {
"erp_id": "ERP-12345",
"industry": "hospitality"
}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "customer-123",
"legal_name": "Acme Coffee Limited",
"name": "Acme Coffee Ltd",
"entity_type": "limited",
"phone_number": "+44 20 1234 5678",
"tin": "1234567890",
"vat_number": "GB123456789",
"company_number": "12345678",
"country": "GB",
"province": "Greater London",
"eu_nace_industry_code": "56.30",
"email": "accounting@acmecoffee.co.uk",
"base_currency": "GBP",
"accounting_method": "accrual",
"fiscal_year_end": "2024-03-31",
"activation_at": "2024-01-15T10:30:00Z",
"is_active": true,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-03-20T14:22:00Z",
"metadata": {
"erp_id": "ERP-12345",
"industry": "hospitality"
}
}Authorizations
Partner-level JWT token (unscoped). Token payload includes partner_id. Business access is validated via partner ownership. Format: Bearer <your-jwt-token>
Use this for: Multi-business operations where the business_id is specified in the URL and partner has access to multiple businesses.
Body
Serializer for creating new businesses
Response
Full business serializer for list and detail views
Was this page helpful?