GetMerchantTransactionData
Description
The GetMerchantTransactionData method retrieves a MerchantTransactionData object from the EBizCharge platform.
Syntax
MerchantTransactionData GetMerchantTransactionData(SecurityToken securityToken)
Arguments
| Type | Name | Req. | Description |
|---|---|---|---|
| SecurityToken | securityToken | R | A unique token that is used to identify a merchant and authenticate the API request. |
Return Value
| Type | Description |
|---|---|
| MerchantTransactionData | On success, returns the transaction data for the specified merchant. 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:GetMerchantTransactionData>
<ebiz:securityToken>
<ebiz:SecurityId>***********4621-b899***********</ebiz:SecurityId>
<ebiz:UserId/>
<ebiz:Password/>
</ebiz:securityToken>
</ebiz:GetMerchantTransactionData>
</soapenv:Body>
</soapenv:Envelope>//Create EBizCharge SOAP client
var client = new IeBizServiceClient();
//SharbelSB security token
SecurityToken securityToken = new SecurityToken();
securityToken.UserId = "";
securityToken.SecurityId = "***********421b-86ce***********";
securityToken.Password = "";
MerchantTransactionData data = client.GetMerchantTransactionData(securityToken);function getMerchantTransactionData(){
$client = new SoapClient('End point URL');
$securityToken = array(
'SecurityId' => '******4757-4745********',
'UserId' => 'merchant1',
'Password' => 'merchant1'
);
$getMerchantTransactionData = array(
'securityToken' => $securityToken
);
$getMerchantTransactionDataResponse = $client->GetMerchantTransactionData($getMerchantTransactionData);
$getMerchantTransactionDataResponseResult = $getMerchantTransactionDataResponse->GetMerchantTransactionDataResult;
}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">
<GetMerchantTransactionDataResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
<GetMerchantTransactionDataResult>
<ItemSKU>BH-4cc9-****</ItemSKU>
<ItemCommodityCode>100001</ItemCommodityCode>
<ItemName>Item Name</ItemName>
<ItemDescription>Item Description</ItemDescription>
<ItemDiscountAmount>0.0000</ItemDiscountAmount>
<ItemDiscountRate>0.0000</ItemDiscountRate>
<ItemUnitOfMeasure>EA</ItemUnitOfMeasure>
<ItemUnitPrice>0.0000</ItemUnitPrice>
<ItemQty>1.0000</ItemQty>
<ItemTaxable>false</ItemTaxable>
<ItemTaxAmount>0.0000</ItemTaxAmount>
<ItemTaxRate>0.0000</ItemTaxRate>
<DutyAmount>0.0000</DutyAmount>
<ShipFromZip>92618</ShipFromZip>
<ShippingAmount>0.0000</ShippingAmount>
<DiscountAmount>0.0000</DiscountAmount>
<AvsStreet>20 pacifica</AvsStreet>
<AvsZip>92618</AvsZip>
<AutoTax>true</AutoTax>
<TaxPercentage>2.0000</TaxPercentage>
<AutoTip>false</AutoTip>
<TipPercentage>0.0000</TipPercentage>
<PreAuthPercentage>0.0000</PreAuthPercentage>
<ExpireAuthAfter>2</ExpireAuthAfter>
<AutoDiscount>false</AutoDiscount>
<AutoItemDiscount>false</AutoItemDiscount>
<DiscountPercentage>0.0000</DiscountPercentage>
<UseCaptureEnhancement>true</UseCaptureEnhancement>
<IsEMVEnabled>false</IsEMVEnabled>
<EnableAVSWarnings>true</EnableAVSWarnings>
<EnableCVVWarnings>true</EnableCVVWarnings>
<UseFullAmountForAVS>true</UseFullAmountForAVS>
<DeclineTransactionIfAVSWarningsAreDisabled>false</DeclineTransactionIfAVSWarningsAreDisabled>
<VerifyCreditCardBeforeSaving>false</VerifyCreditCardBeforeSaving>
<AllowACHPayments>false</AllowACHPayments>
<AllowCreditCardPayments>true</AllowCreditCardPayments>
<IsSurchargeEnabled>false</IsSurchargeEnabled>
<SurchargePercentage>0</SurchargePercentage>
<SurchargeCaption/>
<SurchargeTypeId/>
</GetMerchantTransactionDataResult>
</GetMerchantTransactionDataResponse>
</s:Body>
</s:Envelope><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring xml:lang="en-US">Error retrieving data</faultstring>
</s:Fault>
</s:Body>
</s:Envelope>