UpdateApplicationData

Description

The UpdateApplicationData method updates the Base64ParametersString field for an existing ApplicationData object.

Syntax

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

Arguments

Type

Name

Req.

Description

string

applicationId

R

Identifies the ApplicationData object to update.

string

lookupKey

R

Identifies the ApplicationData object to update with the key created by the user.

string

applicationDataInternalId

R

Identifies the ApplicationData object to update with the internal ID.

ApplicationData

applicationData

R

Application data.

Required Fields
  • Base64ParametersString
  • SecurityId

Note: The securityToken object is used for authentication. Its fields cannot be modified in this request.

Return Values

TypeDescription
ApplicationDataResponseIndicates whether the ApplicationData object is successfully updated. Otherwise, a fault is returned.

Example 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>*************-4255-a28b-************</ebiz:applicationId>
      <ebiz:lookupKey>***************</ebiz:lookupKey>
      <ebiz:applicationDataInternalId>*************-4a09-bce3-************</ebiz:applicationDataInternalId>
      <ebiz:applicationData>
         <ebiz:Base64ParametersString>***************jb29s</ebiz:Base64ParametersString>
         <ebiz:securityToken>
            <ebiz:SecurityId>*************-4621-b899-************</ebiz:SecurityId>
            <ebiz:UserId/>
            <ebiz:Password/>
         </ebiz:securityToken>
      </ebiz:applicationData>
    </ebiz:UpdateApplicationData>
  </soapenv:Body>
</soapenv: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();
}
public function UpdateApplicationData()
{
  $client = new SoapClient('End point URL');
  $securityToken = array(
    'SecurityId' => '******-454757-4567457-********',
    'UserId' => 'merchant1',
    'Password' => 'merchant1'
  );
  $response = $this->soapClient->UpdateApplicationData(array(
    'applicationId' => '****-4354-****',
    'lookupKey' => '****-4354-4354-****',
    'applicationDataInternalId' => '****-45435-*********',
    'applicationData' => array(
      'securityToken' => $securityToken
    )
  ));
  $result = $response->UpdateApplicationDataResult;
}

Example Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <UpdateApplicationDataResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <UpdateApplicationDataResult>
            <ApplicationDataInternalId/>
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error/>
            <ErrorCode>0</ErrorCode>
         </UpdateApplicationDataResult>
      </UpdateApplicationDataResponse>
   </s:Body>
</s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault>
         <faultcode>s:InvalidCredentials</faultcode>
         <faultstring xml:lang="en-US">Invalid Credentials</faultstring>
      </s:Fault>
   </s:Body>
</s:Envelope>