Ir al contenido
UnoPagoDocumentación
Referencia de la APIAccountAccount payment methods

Create account payment method

POST
/v1/payment-methods

Un método con cuentas bancarias se confirma desde UnoPago con el código del dueño: por API responde 403. Los métodos sin cuentas se crean con una API key.

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
displayName*string
method*string

Any payment method but PAYROLL and LEDGER_FEE, which only their own endpoints record.

Valor en"BANK_TRANSFER""ZELLE""C2P""IMMEDIATE_DEBIT""P2P""CASH""POS""CUSTOMER_CREDIT""STRIPE_ACH""STRIPE_CARD""DEBIT_CARD""PAYROLL""BINANCE_PAY""LEDGER_FEE"
isDefault?boolean
Por defectofalse
bankAccountIds?array<string>
fee?number
Rango0 <= value
isPayerCharged?boolean
Por defectofalse
otpCode?string
Longitud6 <= length <= 6

Cuerpo de la respuesta

Successful response

application/json
  1. response
method*string
Valor en"BANK_TRANSFER""ZELLE""C2P""IMMEDIATE_DEBIT""P2P""CASH""POS""CUSTOMER_CREDIT""STRIPE_ACH""STRIPE_CARD""DEBIT_CARD""PAYROLL""BINANCE_PAY""LEDGER_FEE"
scopes*array<>
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
accountId*string
isDefault*boolean
displayName*string
enabled*boolean
isPayerCharged*boolean
fee*number|null
processorId*string|null
createdAt*string
updatedAt*string
Ejemplo de solicitud
curl -X POST 'https://api.unopago.com/v1/payment-methods' \  -H 'Content-Type: application/json' \  -d '{  "displayName": "string",  "method": "BANK_TRANSFER"}'
Ejemplo de respuesta
{  "method": "BANK_TRANSFER",  "scopes": [    "PORTAL"  ],  "id": "string",  "accountId": "string",  "isDefault": true,  "displayName": "string",  "enabled": true,  "isPayerCharged": true,  "fee": 0,  "processorId": "string",  "createdAt": "string",  "updatedAt": "string"}