Ir al contenido
UnoPagoDocumentación
Referencia de la APIAccountVendors

Update a vendor

PATCH
/v1/vendors/{vendorId}

Changes a vendor's name, externalId or bank account. A new bank account replaces the current one and is not paid out until an owner of your account confirms it. The RIF changes only together with the bank account, and not at all once the vendor is verified.

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

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

A new RIF, accepted only together with bankAccount and only while the vendor is not verified.

Patrón^[JVEGP]
Longitud2 <= length <= 10
bankAccount?

A new 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
status*string

INACTIVE is refused in new orders. What the vendor is already owed is still paid.

Valor en"ACTIVE""INACTIVE"
payoutsEnabled*boolean

Whether UnoPago pays the vendor at its next payout run: true once an owner of your account has confirmed its bank account. What it is owed before then waits.

pendingVes*string

What UnoPago owes the vendor and has not paid out yet, in bolívares.

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