Skip to content
Developer Docs

Request a collaboration with an existing organisation​

POST
/business/v1/businesses/{businessUuid}/business-collaborator-requests

Creates a collaboration request of the calling collaborator (the organisation identified by the
path parameter and the tenant header) on the ACTIVE organisation that holds the tax ID of the
body, and starts its acceptance. The request grants no permission
until an administrator of that organisation accepts it. It is the second call after
POST /v1/businesses/{businessUuid}/business-collaborators answers 409 because the tax ID
exists.

The body is the same as the one of POST /v1/businesses/{businessUuid}/business-collaborators.
The tax ID, the collaboratorType and the products are the data of the request; the rest of
the organisation data and the users are validated but ignored.

The products the organisation already holds through the same collaborator and figure are left
out of the request and listed in alreadyContractedProducts. If the caller already has a
pending request for that organisation and figure, the call answers 409 and changes nothing:
requests in flight are not extended or modified.

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​

Request created.

application/json
JSON
{
  
"uuid": "9d2a4b7e-1c3f-4a5b-8e6d-2f0a1b3c4d5e",
  
"businessUuid": "3b1f6c2a-5d84-4f7e-9a21-0c8e7d4b6a19",
  
"products": [
  
  
"zertipay"
  
],
  
"alreadyContractedProducts": [
  
  
"pagafactu"
  
]
}

Playground​

Servidor
Autorización
Headers
Variables
Key
Value
Cuerpo

Ejemplos​