# VIBAN Modify

## Virtual IBAN Modify - Request <a href="#virtual-iban-open" id="virtual-iban-open"></a>

<mark style="color:green;">`POST`</mark> <https://connect.lhv.com/viban/modify>

Service is used to:

* add Virtual IBAN holder data to nameless Virtual IBANs allocated with Virtual IBAN Bulk service
* modify existing Virtual IBAN data

Only one Virtual IBAN can be modified with one service request. It is mandatory to fill in minimal data set about Virtual IBAN owner and request message structure is slightly different for private and legal persons. After receiving the request, background check is done by LHV for Virtual IBAN owner.\
If check is OK, then Virtual IBAN is activated at once.\
If check is not OK, then Virtual IBAN will remain in status "ON\_HOLD" until decision about Virtual IBAN opening is made. CONNECT customer will be informed about the decision via service *Status notification*.

Rules when changing the data of already activated Virtual IBAN:

* Virtual IBAN must never be allocated to a different entity. Valid reasons are:\
  \
  \- Name change - marriage for private persons or company name change for corporates etc.\
  \
  \- Changes to address\
  \
  \- Any other case where corrections are needed, but the assigned customer stays the same
* If Virtual IBAN status is not "PENDING" you must provide the reason for change in the ModifyReason tag.
* Any modifications will trigger re-screening of the Virtual IBAN

#### **Headers**

| Name           | Value             |
| -------------- | ----------------- |
| Content-Type   | `application/xml` |
| Client-Code    | `customer value`  |
| Client-Country | `customer value`  |

#### **Body**

{% file src="/files/oSWgWa8Fw4e3Xk2yhlob" %}

XML structure description:

| MULT.   | MESSAGE ELEMENT        | XML TAG               | Description                                                                                            |
| ------- | ---------------------- | --------------------- | ------------------------------------------------------------------------------------------------------ |
| \[1..1] | +MessageRoot           | \<VibanModifyRequest> |                                                                                                        |
| \[1..1] | ++MasterAccount        | \<MasterAccount>      | Master account IBAN (must belong to PSP).                                                              |
| \[0..1] | ++ClientReference      | \<ClientReference>    | Customer reference defined by Payment Service Provider. Can be used to avoid opening duplicate VIBANs. |
| \[1..1] | ++VirtualIBAN          | \<VirtualIBAN>        | Virtual IBAN (must be nameless Virtual IBAN in PENDING status).                                        |
| \[1..1] | ++User                 | \<User>               |                                                                                                        |
| \[0..1] | +++Person              | \<Person>             | Element of choice, used if Virtual IBAN owner is private person.                                       |
| \[1..1] | ++++Name               | \<Name>               | First and last name of private person.                                                                 |
| \[1..1] | ++++BirthDate          | \<BirthDate>          | Birth date of private person (YYYY-MM-DD).                                                             |
| \[0..1] | ++++BirthCountry       | \<BirthCountry>       | Country of birth of private person (ISO 3166-1 alpha-2).                                               |
| \[1..1] | ++++Residency          | \<Residency>          | Country of residence of private person (ISO 3166-1 alpha-2).                                           |
| \[0..1] | ++++DocumentNumber     | \<DocumentNumber>     | Document number of private person.                                                                     |
| \[0..1] | +++Company             | \<Company>            | Element of choice, used if Virtual IBAN owner is legal person.                                         |
| \[1..1] | ++++Name               | \<Name>               | Name of company.                                                                                       |
| \[1..1] | ++++CountryOfOrigin    | \<CountryOfOrigin>    | Country of origin of legal person (ISO 3166-1 alpha-2).                                                |
| \[1..1] | ++++TaxResidency       | \<TaxResidency>       | Tax residency of legal person (ISO 3166-1 alpha-2).                                                    |
| \[1..1] | ++++RegistrationNumber | \<RegistrationNumber> | Registration number of legal person.                                                                   |
| \[1..1] | ++++Representative     | \<Representative>     |                                                                                                        |
| \[1..1] | +++++Name              | \<Name>               | First and last name of representative.                                                                 |
| \[1..1] | +++++BirthDate         | \<BirthDate>          | Birth date of representative, YYYY-MM-DD.                                                              |
| \[1..1] | +++++Residency         | \<Residency>          | Country of residence of representative (ISO 3166-1 alpha-2).                                           |
| \[1..1] | +++Address             | \<Address>            |                                                                                                        |
| \[1..1] | ++++Country            | \<Country>            | Address country (ISO 3166-1 alpha-2).                                                                  |
| \[1..1] | ++++StreetNo           | \<StreetNo>           | Street address.                                                                                        |
| \[1..1] | ++++CityCounty         | \<CityCounty>         | City, county.                                                                                          |
| \[0..1] | ++ModifyReason         | \<ModifyReason>       | Reason for modification (mandatory if Virtual IBAN is not in PENDING status).                          |

#### Samples

{% tabs %}
{% tab title="Private person" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<VibanModifyRequest>
  <MasterAccount>GB88LHVB01020000000001</MasterAccount>
  <ClientReference>12345678</ClientReference>
  <VirtualIBAN>GB88LHVB01020000000002</VirtualIBAN>
  <User>
    <Person>
      <Name>Donald Mouse</Name>
      <BirthDate>1908-11-29</BirthDate>
      <BirthCountry>DE</BirthCountry>
      <Residency>DE</Residency>
      <DocumentNumber>A942819</DocumentNumber>
    </Person>
    <Address>
      <Country>GB</Country>
      <StreetNo>88 High Holborn</StreetNo>
      <CityCounty>London</CityCounty>
    </Address>
  </User>
  <ModifyReason>Name legally changed to Donald Mouse</ModifyReason>
</VibanModifyRequest>
```

{% endtab %}

{% tab title="Legal person" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<VibanModifyRequest>
  <MasterAccount>GB88LHVB01020000000001</MasterAccount>
  <ClientReference>12345678</ClientReference>
  <VirtualIBAN>GB88LHVB01020000000002</VirtualIBAN>
  <User>
    <Company>
      <Name>UK Ltd Version 2.0</Name>
      <CountryOfOrigin>GB</CountryOfOrigin>
      <TaxResidency>GB</TaxResidency>
      <RegistrationNumber>1849203</RegistrationNumber>
      <Representative>
        <Name>John Connor</Name>
        <BirthDate>2010-01-01</BirthDate>
        <Residency>GB</Residency>
      </Representative>
    </Company>
    <Address>
      <Country>GB</Country>
      <StreetNo>Waterloo Bridge 13</StreetNo>
      <CityCounty>London, Cold</CityCounty>
    </Address>
  </User>
  <ModifyReason>New company representative</ModifyReason>
</VibanModifyRequest>
```

{% endtab %}
{% endtabs %}

### **Response**

**Headers**

| Name         | Value             |
| ------------ | ----------------- |
| Content-Type | `application/xml` |
| X-Bank-Code  | `LHVUK`, `LHVEE`  |

#### Body

{% tabs %}
{% tab title="202" %}
{% hint style="success" %}
Request accepted - no content
{% endhint %}
{% endtab %}

{% tab title="403" %}
{% hint style="danger" %}
Error code and description
{% endhint %}

<pre><code>&#x3C;Errors>
<strong>    &#x3C;Error>
</strong>        &#x3C;ErrorCode>FORBIDDEN&#x3C;/ErrorCode>
        &#x3C;Description>User doesn't exist&#x3C;/Description>
    &#x3C;/Error>
&#x3C;/Errors>
</code></pre>

{% endtab %}
{% endtabs %}

## Response message

Response message is created and can be requests by the Messages services - [Messages Services](/home/connect/services/messages.md)

{% hint style="info" %}
HTTP Header Message-Response-Type: VIBAN\_MODIFY
{% endhint %}

#### Body

{% file src="/files/HY22biccAfXWJ97vqHLw" %}

XML structure description:

<table><thead><tr><th width="107">MULT.</th><th>MESSAGE ELEMENT</th><th>XML TAG</th><th>Description</th></tr></thead><tbody><tr><td>[1..1]</td><td>+MessageRoot</td><td>&#x3C;VibanModifyResponse></td><td></td></tr><tr><td>[0..1]</td><td>++ClientReference</td><td>&#x3C;ClientReference></td><td>Customer reference defined by Payment Service Provider.</td></tr><tr><td>[1..1]</td><td>++VirtualIBAN</td><td>&#x3C;VirtualIBAN></td><td></td></tr><tr><td>[1..1]</td><td>++User</td><td>&#x3C;User></td><td></td></tr><tr><td>[0..1]</td><td>+++Person</td><td>&#x3C;Person></td><td>Element of choice, used if Virtual IBAN owner is private person.</td></tr><tr><td>[1..1]</td><td>++++Name</td><td>&#x3C;Name></td><td>First and last name of private person.</td></tr><tr><td>[1..1]</td><td>++++BirthDate</td><td>&#x3C;BirthDate></td><td>Birth date of private person (YYYY-MM-DD).</td></tr><tr><td>[0..1]</td><td>++++BirthCountry</td><td>&#x3C;BirthCountry></td><td>Country of birth of private person (ISO 3166-1 alpha-2).</td></tr><tr><td>[1..1]</td><td>++++Residency</td><td>&#x3C;Residency></td><td>Country of residence of private person (ISO 3166-1 alpha-2).</td></tr><tr><td>[0..1]</td><td>++++DocumentNumber</td><td>&#x3C;DocumentNumber></td><td>Document number of private person.</td></tr><tr><td>[0..1]</td><td>+++Company</td><td>&#x3C;Company></td><td>Element of choice, used if Virtual IBAN owner is legal person.</td></tr><tr><td>[1..1]</td><td>++++Name</td><td>&#x3C;Name></td><td>Name of company.</td></tr><tr><td>[1..1]</td><td>++++CountryOfOrigin</td><td>&#x3C;CountryOfOrigin></td><td>Country of origin of legal person (ISO 3166-1 alpha-2).</td></tr><tr><td>[1..1]</td><td>++++TaxResidency</td><td>&#x3C;TaxResidency></td><td>Tax residency of legal person (ISO 3166-1 alpha-2).</td></tr><tr><td>[1..1]</td><td>++++RegistrationNumber</td><td>&#x3C;RegistrationNumber></td><td>Registration number of legal person.</td></tr><tr><td>[1..1]</td><td>++++Representative</td><td>&#x3C;Representative></td><td></td></tr><tr><td>[1..1]</td><td>+++++Name</td><td>&#x3C;Name></td><td>First and last name of representative.</td></tr><tr><td>[1..1]</td><td>+++++BirthDate</td><td>&#x3C;BirthDate></td><td>Birth date of representative, YYYY-MM-DD.</td></tr><tr><td>[1..1]</td><td>+++++Residency</td><td>&#x3C;Residency></td><td>Country of residence of representative (ISO 3166-1 alpha-2).</td></tr><tr><td>[1..1]</td><td>+++Address</td><td>&#x3C;Address></td><td></td></tr><tr><td>[1..1]</td><td>++++Country</td><td>&#x3C;Country></td><td>Address country (ISO 3166-1 alpha-2).</td></tr><tr><td>[1..1]</td><td>++++StreetNo</td><td>&#x3C;StreetNo></td><td>Street address.</td></tr><tr><td>[1..1]</td><td>++++CityCounty</td><td>&#x3C;CityCounty></td><td>City, county.</td></tr><tr><td>[1..1]</td><td>++Status</td><td>&#x3C;Status></td><td>Status of Virtual IBAN: 'ACTIVE' or 'ON_HOLD'.</td></tr></tbody></table>

#### Samples

{% tabs %}
{% tab title="Private person" %}

```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VibanModifyResponse>
  <ClientReference>12345678</ClientReference>
  <VirtualIBAN>GB88LHVB01020000000002</VirtualIBAN>
    <User>
        <Person>
          <Name>Donald Duck</Name>
          <BirthDate>1908-11-29</BirthDate>
          <BirthCountry>DE</BirthCountry>
          <Residency>DE</Residency>
          <DocumentNumber>A942819</DocumentNumber>
        </Person>
        <Address>
            <Country>GB</Country>
            <StreetNo>88 High Holborn</StreetNo>
            <CityCounty>London</CityCounty>
        </Address>
    </User>
  <Status>ACTIVE</Status>
</VibanModifyResponse>
```

{% endtab %}

{% tab title="Legal person" %}

```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VibanOpenResponse>
    <MasterAccount>GB88LHVB01020000000001</MasterAccount>
    <ClientReference>12345678</ClientReference>
    <VirtualIBAN>GB88LHVB01020000000002</VirtualIBAN>
    <User>
        <Company>
            <Name>UK Ltd Version 2.0</Name>
            <CountryOfOrigin>GB</CountryOfOrigin>
            <TaxResidency>GB</TaxResidency>
            <RegistrationNumber>1849203</RegistrationNumber>
            <Representative>
                <Name>Harry Potter</Name>
                <BirthDate>2001-01-01</BirthDate>
                <Residency>GB</Residency>
            </Representative>
        </Company>
        <Address>
            <Country>GB</Country>
            <StreetNo>Waterloo Bridge 13</StreetNo>
            <CityCounty>London, Cold</CityCounty>
        </Address>
    </User>
    <Status>ACTIVE</Status>
</VibanOpenResponse>
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lhv.com/home/connect/services/viban/open-a-viban-1-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
