Skip to content
Developer Docs

Register client organisation​

POST
/business/v1/businesses/{businessUuid}/business-collaborators

Creates a client organisation in CREATED status, links it to the calling collaborator (the
organisation identified by the path parameter and the tenant header) with the declared
collaboratorType, contracts its initial products, and triggers an invitation for each
initial user. The link is fixed to the declared role. The caller does not become a
user or administrator of the created organisation.

The products field is mandatory, with at least one code, and selects which of the calling
collaborator's own active products are contracted for the client: every declared code must
be one of them, and exactly the products informed are contracted. The client holds them
once it completes its onboarding, so they are not yet listed by
GET /v1/businesses/{businessUuid}/products/held right after this call returns.

Security rules:

  • The x-tenant-id header must match the businessUuid path parameter.
  • The x-tenant-id header must match the tenant_id claim contained in the access token (JWT).

Autorizaciones​

OAuth2ClientCredentials

OAuth2 Client Credentials for machine-to-machine access. The access token must include scope API_INTERNAL (internal service-to-service) or API (external M2M integrations).

clientCredentials Flow
URL del token"/idp/oauth2/token"
Ámbitos:
  • "API_INTERNAL"Internal API scope
  • "API"External M2M API scope

Parámetros​

Header Parameters

x-tenant-id*

Tenant identifier that contains the organisation UUID

Tipo
string
Requerido
Ejemplo"1f56c928-7621-44fe-8cda-c211fda0a828"
Formato
"uuid"

Path Parameters

businessUuid*

Unique identifier of the organisation.

Tipo
string
Requerido
Ejemplo"1f56c928-7621-44fe-8cda-c211fda0a828"
Formato
"uuid"

Cuerpo de la petición​

application/json
JSON
{
  
"taxId": "B12345674",
  
"type": "COMPANY",
  
"legalName": "My company",
  
"tradeName": "My company trade name",
  
"name": "My name",
  
"lastName": "My last name",
  
"activityCode": "20",
  
"fiscalAddress": {
  
  
"street": "Calle Uría",
  
  
"additionalInformation": "Whatever additional information",
  
  
"postalCode": "33010",
  
  
"cityCode": "ES-AS-OVIEDO",
  
  
"stateCode": "ES-AS",
  
  
"countryCode": "ES"
  
},
  
"collaboratorType": "PARTNER",
  
"users": [
  
  
{
  
  
  
"name": "Jane",
  
  
  
"lastName": "Doe",
  
  
  
"email": "[email protected]",
  
  
  
"role": "ADMINISTRATOR"
  
  
}
  
],
  
"products": [
  
  
"pagafactu",
  
  
"zertipay"
  
]
}

Respuestas​

Organisation registered; invitations triggered.

application/json
JSON
{
  
"businessUuid": "1f56c928-7621-44fe-8cda-c211fda0a828",
  
"products": [
  
  
"pagafactu",
  
  
"zertipay"
  
]
}

Playground​

Servidor
Autorización
Headers
Variables
Key
Value
Cuerpo

Ejemplos​