UpdateApplicationData

Description

This method is used to update existing application data and requires the use of the ApplicationId or ApplicationDataInternalId.

Syntax

ApplicationDataResponse UpdateApplicationData(string applicationId, string lookupKey, string applicationDataInternalId, ApplicationData ApplicationData applicationData).

Arguments

TypeNameDescription
StringapplicationIdApplication ID. (required)
StringlookupKeyLook up key. (required)
StringapplicationDataInternalIdUnique internal application ID assigned by EBizCharge. (required)
ApplicationData ApplicationDataapplicationDataApplication data. (required)

Return Values

TypeDescription
ApplicationData ApplicationDataReturns result of ApplicationData request.

Example

public function UpdateApplicationData()
{
    $client = new SoapClient('End point URL');
    $securityToken = array(
        'SecurityId' => '******-454757-4567457-********',
        'UserId' => 'merchant1',
        'Password' => 'merchant1'
    );
    $response = $this->soapClient->UpdateApplicationData(array(
        'applicationId' => '3453-4354-4354',
        'lookupKey' => '3453-4354-4354-3454',
        'applicationDataInternalId' => '4544-45435-45435-454',
        'applicationData' => array(
            'securityToken' => $securityToken
        )
    ));
    $result = $response->UpdateApplicationDataResult;
}
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header />
   <soapenv:Body>
      <ebiz:UpdateApplicationData>
         <ebiz:applicationId>********-7ec3-4951-b1de-********</ebiz:applicationId>
         <ebiz:lookupKey>salesforce</ebiz:lookupKey>
         <ebiz:applicationDataInternalId>********-e1b0-4022-ac9c-********</ebiz:applicationDataInternalId>
         <ebiz:applicationData>
            <ebiz:ApplicationId>********-6ba4-4198-a8a6-********</ebiz:ApplicationId>
            <ebiz:LookupKey>salesforce</ebiz:LookupKey>
            <ebiz:Base64ParametersString>f050411055f********f0504110551112</ebiz:Base64ParametersString>
            <ebiz:securityToken>
               <ebiz:SecurityId>********-7ec3-4951-b1de-********</ebiz:SecurityId>
               <ebiz:UserId>sfbridge1</ebiz:UserId>
               <ebiz:Password>sfbridge1</ebiz:Password>
            </ebiz:securityToken>
            <ebiz:ApplicationDataInternalId>********-e1b0-4022-ac9c-********</ebiz:ApplicationDataInternalId>
         </ebiz:applicationData>
      </ebiz:UpdateApplicationData>
   </soapenv:Body>
</soapenv:Envelope>

Response: 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <UpdateApplicationDataResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <UpdateApplicationDataResult>
            <ApplicationDataInternalId />
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error />
            <ErrorCode>0</ErrorCode>
         </UpdateApplicationDataResult>
      </UpdateApplicationDataResponse>
   </s:Body>
</s:Envelope>
public void UpdateApplicationData()
        {
            eBizService apiClient = new eBizService();
            SecurityToken securityToken = new SecurityToken
            {
                SecurityId = "*******-c870-41b8-aa5c-********",
                UserId = "",
                Password = ""
            };
            var applicationId = "********-c2d7-4c37-80c7-********";
            var lookupKey = "Country";
            var applicationData = apiClient.GetApplicationData(applicationId, lookupKey, "");
            var applicationDataInternalId = "********-c2d7-4c37-80c7-********";
            var response = apiClient.UpdateApplicationData(applicationId, lookupKey, applicationDataInternalId, applicationData);
            Console.WriteLine(response.ApplicationDataInternalId);
            Console.ReadLine();
        }