updateBankAccount examples

Request

{  
   "merchantCode":"TestMerchant",
   "bankAccountData":{  
      "bic":"RABONL2U",
      "countryCode":"NL",
      "currency":"EUR",
      "iban":"NL39RABO123456789",
      "number":"123456789",
      "owner":"TestOwnerEUR"
   }
}
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <updateBankAccount xmlns="http://caaccount.services.adyen.com">
      <request>
        <bankAccountData>
          <bic>RABONL2U</bic>
          <countryCode xmlns="http://serviceobjects.caaccount.services.adyen.com">NL</countryCode>
          <currency xmlns="http://serviceobjects.caaccount.services.adyen.com">EUR</currency>
          <iban xmlns="http://serviceobjects.caaccount.services.adyen.com">NL39RABO123456789</iban>
          <number xmlns="http://serviceobjects.caaccount.services.adyen.com">123456789</number>
          <owner xmlns="http://serviceobjects.caaccount.services.adyen.com">TestOwnerEUR</owner>
        </bankAccountData>
        <merchantCode>TestMerchant</merchantCode>
      </request>
    </updateBankAccount>
  </soap:Body>
</soap:Envelope>

Response

{  
   "pspReference":"9914526949630181"
} 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://caaccount.services.adyen.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <ns0:updateBankAccountResponse>
      <ns0:response>
        <ns0:pspReference>9914526949630181</ns0:pspReference>
      </ns0:response>
    </ns0:updateBankAccountResponse>
  </soap:Body>
</soap:Envelope> 

Response in case of an error

{  
  "errors":  {  
    "string":"validation errors: branchCode=not present, iban=not valid for DE"
  },
  "pspReference":"9914140757570032"
}
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://caaccount.services.adyen.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <ns0:updateBankAccountResponse>
      <ns0:response>
        <ns0:errors>
          <ns0:string>validation errors: branchCode=not present, iban=not valid for DE</ns0:string>
        </ns0:errors>
        <ns0:pspReference>9914140757570032</ns0:pspReference>
      </ns0:response>
    </ns0:updateBankAccountResponse>
  </soap:Body>
</soap:Envelope>