# Atualizar Conta Virtual

## Atualizar Conta Virtual

> Este endpoint atualiza a configuração de uma conta virtual existente, permitindo modificar a conta bancária de destino para pagamentos automáticos de vendas.\
> \
> scope: \*\*virtual-accounts.write\*\*\\

```json
{"openapi":"3.0.0","info":{"title":"📄 API External - Aurix Pay","version":"1.0.0"},"tags":[{"name":"Atualizar Conta Virtual"}],"servers":[{"url":"https://api.aurixpay.ws"},{"url":"https://sandbox.api.aurixpay.ws"}],"paths":{"/banking/v1/virtual-accounts/{virtual_account_id}":{"put":{"summary":"Atualizar Conta Virtual","description":"Este endpoint atualiza a configuração de uma conta virtual existente, permitindo modificar a conta bancária de destino para pagamentos automáticos de vendas.\n\nscope: **virtual-accounts.write**\n","tags":["Atualizar Conta Virtual"],"parameters":[{"name":"virtual_account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Content-Type","in":"header","required":false,"schema":{"type":"string"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"headers":{"Host":{"schema":{"type":"string"}},"Connection":{"schema":{"type":"string"}},"X-Powered-By":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string"}},"Date":{"schema":{"type":"string"}},"Content-Type":{"schema":{"type":"string"}},"Vary":{"schema":{"type":"string"}}},"description":"Sucesso","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"merchant_id":{"type":"string"},"currency":{"type":"string"},"balance":{"type":"integer"},"type":{"type":"string"},"bank_account_id":{"type":"string"},"label":{"type":"string"},"status":{"type":"string"},"is_default":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"deleted_at":{"nullable":true},"merchant":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"bank_account":{"type":"object","properties":{"id":{"type":"string"},"account_number":{"type":"string","format":"color"},"bank_code":{"type":"string","format":"color"}}}}}}}},"400":{"description":"Não Encontrado","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"403":{"description":"Proibido","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"422":{"description":"Validation","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","properties":{"label":{"type":"array","items":{"type":"string"}}}}}}}}},"500":{"description":"Erro Interno do Servidor","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"string"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"}}}}}}}}}}
```
