Create a tenant
POST/v2/organizations/:organization_id/tenants
Create a new tenant and an associated organization for the specified owner organization. The request body uses a type discriminator with exclusive routes: tenant (END CUSTOMER) and organization (PARTNER/WHOLESALER).
Request
Responses
- 201
- 400
- 401
- 404
- 422
- 429
- 500
Tenant and associated organization successfully created. Returns the created tenant resource.
Bad Request
Unauthorized
Not Found
Unprocessable entity - Business logic validation error. Common causes: - Product config not found - Organization not eligible to create tenants - Organization does not exist in build - Organization has no eligible products - Invalid partner relationship - Organization and parent organization are end customers - Referenced entity not found
Too Many Requests
Internal Server Error