Ir al contenido
UnoPagoDocumentación
Referencia de la APIAccountConnected accounts

Update a connected account

PATCH
/v1/accounts/{accountId}

Where a connected account's details are changed: name, RIF, phone, address, description and bank account (PUT /v1/settings is refused for it). Name and RIF are fixed once UnoPago verifies the account; a new RIF comes with its bank account. A new bank account replaces the current one and is not paid out until an owner of your account confirms it.

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

Parámetros de ruta

accountId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
application/json
  1. body
name?string
Longitud1 <= length
nationalId?string
Patrón^[JVEGP]
Longitud2 <= length <= 10
phoneNumber?string

The business's phone, e.g. +584241234567.

Patrón^(?:[01]\d{3}-?\d{7}|\+58(?!0)\d{3}-?\d{7}|\+(?!58)\d{1,3}\d{3}-?\d{7})$
address?string
Longitudlength <= 500
description?string
Longitudlength <= 500
bankAccount?

A new payout bank account. It replaces the current one and is not paid until an owner of your account confirms it in UnoPago.

Cuerpo de la respuesta

Successful response

application/json
  1. response
id*string
externalId*string|null
name*string
nationalId*string|null
phoneNumber*string|null
address*string|null
description*string
status*string
Valor en"ACTIVE""MAINTENANCE""SUSPENDED""DEACTIVATED"
verified*boolean

Verified by UnoPago. Sales are collected before, but paid out only after. The review's status is in GET /v1/accounts/{accountId}/verification.

createdAt*string
bankAccount*|null
Ejemplo de solicitud
curl -X PATCH 'https://api.unopago.com/v1/accounts/string' \  -H 'Content-Type: application/json' \  -d '{}'
Ejemplo de respuesta
{  "id": "string",  "externalId": "string",  "name": "string",  "nationalId": "string",  "phoneNumber": "string",  "address": "string",  "description": "string",  "status": "ACTIVE",  "verified": true,  "createdAt": "string",  "bankAccount": {    "id": "string",    "bankCode": "string",    "accountNumberLast4": "string",    "holderName": "string",    "status": "PENDING_CONFIRMATION",    "createdAt": "string"  }}