Ir al contenido
UnoPagoDocumentación
Referencia de la APIAccountConnected accounts

Create a connected account

POST
/v1/accounts

Creates an account that sells through yours, with C2P and immediate debit on. Act for it with your API key and the UnoPago-Account header. Its bank account is not paid out until an owner of your account confirms it in UnoPago.

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.

application/json
  1. body
externalId?string

Your own id for the account, unique among your connected accounts.

Longitud1 <= length <= 255
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*

Where the account's sales are paid out, held by nationalId. Not paid until an owner of your account confirms it in UnoPago.

paymentMethods?

Whether the buyer pays UnoPago's fee on top of the price, per method. Both methods are created enabled; isPayerCharged defaults to false.

Por defecto{}

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 POST 'https://api.unopago.com/v1/accounts' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "nationalId": "string",  "bankAccount": {    "bankCode": "string",    "accountNumber": "string",    "holderName": "string"  }}'
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"  }}