Ir al contenido
UnoPagoDocumentación
Referencia de la APIAccountVendors

Create a vendor

POST
/v1/vendors

Registers someone your account pays a part of its orders to: a name, a RIF and the bank account it is paid in. The 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 vendor, unique among your vendors.

Longitud1 <= length <= 255
name*string
Longitud1 <= length <= 255
nationalId*string

The vendor's RIF or cédula, e.g. J401234567. It is the holder of the bank account.

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

Where the vendor is paid, held by nationalId. 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 POST 'https://api.unopago.com/v1/vendors' \  -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",  "status": "ACTIVE",  "payoutsEnabled": true,  "pendingVes": "string",  "bankAccount": {    "id": "string",    "bankCode": "string",    "accountNumberLast4": "string",    "holderName": "string",    "status": "PENDING_CONFIRMATION",    "createdAt": "string"  },  "createdAt": "string"}