addCostContracts examples

Request

{  
  "accountKeys":[  
    "MerchantAccount.TestMerchant",
    "MerchantAccount.TestMerchantNotExists",
    "MerchantAccount.TestMerchantOwnedByOthers",
    "TestMerchant",
    "MerchantAccount.TestMerchant"
  ],
  "costContractName":"merchantDemoContract",
  "startMonth":"10",
  "startYear":"2015"
}
<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>
    <addCostContracts xmlns="http://caaccount.services.adyen.com">
      <request>
        <accountKeys>
          <string>MerchantAccount.TestMerchant</string>
          <string>MerchantAccount.TestMerchantNotExists</string>
          <string>MerchantAccount.TestMerchantOwnedByOthers</string>
          <string>TestMerchant</string>
          <string>MerchantAccount.TestMerchant</string>
        </accountKeys>
        <costContractName>merchantDemoContract</costContractName>
        <startMonth>10</startMonth>
        <startYear>2015</startYear>
      </request>
    </addCostContracts>
  </soap:Body>
</soap:Envelope>

Response

{  
   "pspReference":"9914526910170142"
}
 <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:addCostContractsResponse>
      <ns0:response>
        <ns0:pspReference>9914526910170142</ns0:pspReference>
      </ns0:response>
    </ns0:addCostContractsResponse>
  </soap:Body>
</soap:Envelope>

 Response in case of an error

{  
   "pspReference":"9914386732540034"
}
<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:addCostContractsResponse>
         <ns0:response>
            <ns0:errors>
               <ns0:string>8_009 incorrect accountKey '', should be in the form of 'Company.companyCode' or 'MerchantAccount.merchantCode'</ns0:string>
               <ns0:string>failed 'MerchantAccount.TestMerchantNotExists': could not retrieve account 'MerchantAccount.TestMerchantNotExists'</ns0:string>
               <ns0:string>8_007 lacks permission to account 'MerchantAccount.TestMerchantOwnedByOthers'</ns0:string>
               <ns0:string>8_009 incorrect accountKey 'TestMerchant', should be in the form of 'Company.companyCode' or 'MerchantAccount.merchantCode'</ns0:string>
            </ns0:errors>
            <ns0:pspReference>9914386732540034</ns0:pspReference>
         </ns0:response>
      </ns0:addCostContractsResponse>
   </soap:Body>
</soap:Envelope>