addContactDetail examples

Request

{  
  "contact":{  
    "address":{  
      "city":"Amsterdam",
      "country":"NL",
      "houseNumberOrName":"1",
      "postalCode":"1111",
      "stateOrProvince":"AA",
      "street":"Erstestraat"
    },
    "email":"john.doe@testshop.nl",
    "name":{  
      "firstName":"John",
      "gender":"MALE",
      "lastName":"Doe"
    },
    "personalData":{  
      "dateOfBirth":"1920-02-20",
      "idNumber":"NL987654321",
      "nationality":"NL"
    },
    "phoneNumber":{  
      "phoneCountryCode":"NL",
      "phoneNumber":"11 22 33 44",
      "phoneType":"Landline"
    },
    "webAddress":"http:\/\/testshop.nl"
  },
  "contactType":"shareHolder4",
  "merchantCode":"TestMerchant"
}
<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>
    <addContactDetail xmlns="http://caaccount.services.adyen.com">
      <request>
        <contact>
          <address xmlns="http://common.services.adyen.com">
            <city>Amsterdam</city>
            <country>NL</country>
            <houseNumberOrName>1</houseNumberOrName>
            <postalCode>1111</postalCode>
            <stateOrProvince>AA</stateOrProvince>
            <street>Erstestraat</street>
          </address>
          <email xmlns="http://common.services.adyen.com">john.doe@testshop.nl</email>
          <name xmlns="http://common.services.adyen.com">
            <firstName>John</firstName>
            <gender>MALE</gender>
            <lastName>Doe</lastName>
          </name>
          <personalData xmlns="http://common.services.adyen.com">
            <dateOfBirth>1920-02-20</dateOfBirth>
            <nationality>NL</nationality>
            <idNumber>NL987654321</idNumber>
          </personalData>
          <phoneNumber xmlns="http://common.services.adyen.com">
            <phoneCountryCode>NL</phoneCountryCode>
            <phoneNumber>11 22 33 44</phoneNumber>
            <phoneType>Landline</phoneType>
          </phoneNumber>
          <webAddress xmlns="http://common.services.adyen.com">http://testshop.nl</webAddress>
        </contact>
        <contactType>shareHolder4</contactType>
        <merchantCode>TestMerchant</merchantCode>
      </request>
    </addContactDetail>
  </soap:Body>
</soap:Envelope>

Response

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

Response in case of an error or warning

{  
  "pspReference":"9914140680120319",
  "warnings":{  
    "string":"contact.webAddress is not required for contactType financialContact, ignoring"
  }
}
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://caaccount.services.adyen.com" xmlns:ns1="http://common.services.adyen.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <ns0:addContactDetailResponse>
      <ns0:response>
        <ns0:pspReference>9914140680120319</ns0:pspReference>
        <ns0:warnings>
          <ns0:string>contact.webAddress is not required for contactType financialContact, ignoring</ns0:string>
        </ns0:warnings>
      </ns0:response>
    </ns0:addContactDetailResponse>
  </soap:Body>
</soap:Envelope>