Ir al contenido
UnoPagoDocumentación
Referencia de la APIAccountConnected accounts

Deactivate a connected account

POST
/v1/accounts/{accountId}/deactivate

Stops the account from collecting, at once and for good. A connected account is never deleted or moved to another platform.

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

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
Ejemplo de solicitud
curl -X POST 'https://api.unopago.com/v1/accounts/string/deactivate'
Ejemplo de respuesta
{  "id": "string",  "externalId": "string",  "name": "string",  "nationalId": "string",  "phoneNumber": "string",  "address": "string",  "description": "string",  "status": "ACTIVE",  "verified": true,  "createdAt": "string"}