Skip to content
Developer Docs

Set creditor account as default​

PATCH
/business-creditor-account/v1/business-creditor-accounts/{uuid}/default

Sets an existing creditor account as the default one for the owning
organisation. Any previously default creditor account in the same organisation is
automatically unset (isDefault = false). Only ACTIVE creditor accounts can be
set as default. An organisation always keeps one default account: to change it, set
another account as default.

A collaborator acting on behalf of an organisation with its delegated token can only set
as default a creditor account it registered itself; any other account is answered as not
found.

Autorizaciones​

OAuth2

OAuth2 security scheme

clientCredentials Flow
URL del token"/idp/oauth2/token"
Ámbitos:
  • "api"Access to the API

Parámetros​

Header Parameters

x-tenant-id

UUID of the consuming organisation in Zertiban. Required unless businessUuid is
provided in the request body.

Tipo
string
Formato
"uuid"

Path Parameters

uuid*

UUID of the creditor account to set as default.

Tipo
string
Requerido
Formato
"uuid"

Cuerpo de la petición​

application/json
JSON
{
  
"businessUuid": "c32de618-28cd-4799-9f5e-8e85ea7d645c"
}

Respuestas​

Creditor account set as default successfully (no content)

Playground​

Servidor
Autorización
Headers
Variables
Key
Value
Cuerpo

Ejemplos​