updateWebUser examples

Request

{  
   "active":"true",
   "addMerchantCodes":[  
      "MerchantAccount.TestMerchant"
   ],
   "deleteMerchantCodes":[  
      "TestMerchantDelete"
   ],
   "email":"test@email.ad",
   "grantRoles":[  
      "Merchant_change_risk_settings"
   ],
   "name":{  
      "firstName":"Jane",
      "gender":"FEMALE",
      "lastName":"Doe"
   },
   "revokeRoles":[  
      "Merchant_technical_integrator",
      "Merchant_dispute_management"
   ],
   "timeZoneCode":"UTC",
   "userName":"merchant1"
}
<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>
    <updateWebUser xmlns="http://caaccount.services.adyen.com">
      <request>
        <active>true</active>
        <email>test@email.ad</email>
        <addMerchantCodes>
          <string>MerchantAccount.TestMerchant</string>
        </addMerchantCodes>
        <deleteMerchantCodes>
          <string>TestMerchantDelete</string>
        </deleteMerchantCodes>
        <grantRoles>
          <RoleType>Merchant_change_risk_settings</RoleType>
        </grantRoles>
        <name>
          <firstName>Jane</firstName>
          <gender>FEMALE</gender>
          <lastName>Doe</lastName>
        </name>
        <revokeRoles>
          <RoleType>Merchant_technical_integrator</RoleType>
          <RoleType>Merchant_dispute_management</RoleType>
        </revokeRoles>
        <timeZoneCode>UTC</timeZoneCode>
        <userName>merchant1</userName>
      </request>
    </updateWebUser>
  </soap:Body>
</soap:Envelope>

Response

{
   "pspReference":"9914140700917468"
}
<?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:updateWebUserResponse>
            <ns0:response>
                <ns0:pspReference>9914140700917468</ns0:pspReference>
            </ns0:response>
        </ns0:updateWebUserResponse>
    </soap:Body>
</soap:Envelope>

Response in case of an error or warning

{
   "pspReference":"9914140700710438",
   "warnings":[
      "8_041 failed revokeRoles 'Merchant_dispute_management': not even granted"
   ]
}
<?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:updateWebUserResponse>
            <ns0:response>
                <ns0:pspReference>9914140700710438</ns0:pspReference>
                <ns0:warnings>
                    <ns0:string>8_041 failed revokeRoles 'Merchant_dispute_management': not even granted</ns0:string>
                </ns0:warnings>
            </ns0:response>
        </ns0:updateWebUserResponse>
    </soap:Body>
</soap:Envelope>