addWebUser examples

Request

{
   "email":"test@test.nl",
   "merchantCodes":[
      "MerchantAccount.TestMerchant",
   ],
   "name":{
      "firstName":"Jane",
      "gender":"FEMALE",
      "lastName":"Doe"
   },
   "timeZoneCode":"UTC",
   "userName":"test"
}
<?xml version="1.0" encoding="UTF-8"?>
<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>
        <addWebUser xmlns="http://caaccount.services.adyen.com">
            <request>
                <email>test@test.nl</email>
                <merchantCodes>
                    <string>MerchantAccount.TestMerchant</string>
                </merchantCodes>
                <name>
                    <firstName xmlns="http://common.services.adyen.com">Jane</firstName>
                    <gender xmlns="http://common.services.adyen.com">FEMALE</gender>
                    <lastName xmlns="http://common.services.adyen.com">Doe</lastName>
                </name>
                <timeZoneCode>UTC</timeZoneCode>
                <userName>test</userName>
            </request>
        </addWebUser>
    </soap:Body>
</soap:Envelope>

Response

{
   "pspReference":"9914526950450289",
   "password": "*******",
   "userName": "testuser"
}
<?xml version="1.0" encoding="UTF-8"?>
<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" xmlns:ns0="http://caaccount.services.adyen.com">
    <soap:Body>
        <ns0:addWebUserResponse>
            <ns0:response>
                <ns0:pspReference>9914526950450289</ns0:pspReference>
                <ns0:password>*******</ns0:password>
                <ns0:userName>testuser</ns0:userName>
            </ns0:response>
        </ns0:addWebUserResponse>
    </soap:Body>
</soap:Envelope>

Response in case of an error

{  
  "pspReference":"9914368689030052",
  "errors":[  
    "8_008 lacks permission to merchant 'TestMerchantNotExists1'"
  ],
   "password": "*******",
   "userName": "testuser"
}
<?xml version="1.0" encoding="UTF-8"?>
<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" xmlns:ns0="http://caaccount.services.adyen.com">
    <soap:Body>
        <ns0:addWebUserResponse>
            <ns0:response>
                <ns0:errors>
                    <ns0:string>8_008 lacks permission to merchant 'TestMerchantNotExists1'</ns0:string>
                </ns0:errors>
                <ns0:pspReference>9914368689030052</ns0:pspReference>
                <ns0:password>*******</ns0:password>
                <ns0:userName>testuser</ns0:userName>
            </ns0:response>
        </ns0:addWebUserResponse>
    </soap:Body>
</soap:Envelope>