Update a vendor
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.
bearerAuthAutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
vendorId*string^[cC][0-9a-z]{6,}$cuidapplication/json- body
externalId?string1 <= length <= 255name?string1 <= length <= 255nationalId?stringA new RIF, accepted only together with bankAccount and only while the vendor is not verified.
^[JVEGP]2 <= length <= 10bankAccount?A new bank account. It replaces the current one and is not paid until an owner of your account confirms it in UnoPago.
Successful response
application/json- response
id*stringexternalId*string|nullname*stringnationalId*stringstatus*stringINACTIVE is refused in new orders. What the vendor is already owed is still paid.
"ACTIVE""INACTIVE"payoutsEnabled*booleanWhether 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*stringWhat UnoPago owes the vendor and has not paid out yet, in bolívares.
bankAccount*|nullcreatedAt*stringcurl -X PATCH 'https://api.unopago.com/v1/vendors/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}
