User
Create an owned company for a user
Creates (or claims by identifier) a company and makes the user its owner. If a company with the given identifier already has memberships, the request fails with 422 (identifier already taken).
post/v1/users/{id}/companies
Path parameters
idstring required
The id of the resource. This is a UUID for most resources, but for user endpoints it is the user's Firebase UID (an opaque string), so no uuid format is asserted here.
Parameters
#/paths/~1v1~1users/get/parameters/0 — unresolved $ref
Request body
Response
The created/claimed company.
Example response
{
"type": "Company",
"identifier": "770000001",
"name": "Mi Empresa SpA",
"fantasy_name": "Mi Empresa",
"country": "CL",
"preferred_currency": "clp",
"verification_status": "approved"
}