Syntch Gateway API

<back to all web services

GetTransaction

Reporting - Transaction Detail
Requires Authentication
Requires any of the roles:Reseller, Merchant
The following routes are available for this service:
GET/reports/transactions/{pnRefs}Get details for one to ten transactions.
GetTransaction Parameters:
NameParameterData TypeRequiredDescription
PnRefspathList<int>YesA comma separated list of transaction reference numbers. Limit 10.
TransactionDetail Parameters:
NameParameterData TypeRequiredDescription
PnRefmodelintNoThe PnRef (unique identifier) of the transaction.
InvoiceNumbermodelstringNoThe invoice number submitted on the transaction.
SequenceNumbermodelstringNoThe transaction's Sequence Number.
TransactionTimestampmodelDateTime?NoThe timestamp of the transaction.
AuthorizationTimestampmodelDateTime?NoThe timestamp of the authorization.
MerchantKeymodelintNoMerchant key on the transaction.
UserNamemodelstringNoUsername that initiated the transaction.
RegisterNumbermodelstringNoRegister used in the transaction.
ResellerKeymodelint?NoReseller key on the transaction.
PaymentTypemodelstringNoPayment type used in the transaction.
TransactionTypemodelstringNoThe transaction type processed (sale, return, etc.).
ProcessormodelstringNoThe processor of the transaction.
ProcessorErrormodelstringNoThe error set by the processor.
SettlementMessagemodelstringNoSettlement message.
VoidFlagmodelstringNoIndicates if the transaction has been voided.
SettleFlagmodelstringNoIndicates if the transaction has been settled.
SettlementTimestampmodelDateTime?NoThe timestamp of the transaction's settlement
IPmodelstringNoIP address from which the transaction was processed.
CustomerIdmodelstringNoCustomer Id on the transaction.
CustomerKeymodelint?NoCustomer key on the transaction.
CustomerNamemodelstringNoCustomer Name on the transaction.
OriginalTransactionPnRefmodelint?NoThe PnRef of the original transaction (if this was a follow-on transaction).
CustomerReferencemodelstringNoAdditional customer reference.
BatchNumbermodelstringNoThe batch number to which the transaction belongs.
BatchSequenceNumbermodelstringNoSequence number of the batch.
AdjustedmodelstringNoIndicates if the transaction has been adjusted.
TransactionFinishTimestampmodelDateTime?NoThe timestamp for the completion of the transaction.
ProcessorRequestTimestampmodelDateTime?NoThe timestamp for beginning the processor communication.
ProcessorResponseTimestampmodelDateTime?NoThe timestamp for ending the processor communication.
BatchIdmodelstringNoThe Id for the batch this transaction was a member of.
ReversalFlagmodelstringNoIndicates if the transaction has been reversed.
EntryModemodelstringNoThe entry mode of the transaction.
CardDetailmodelCardDetailNoSelected details of the transaction's card data (if present).
CheckDetailmodelCheckDetailNoSelected details of the transaction's check data (if present).
CashDetailmodelCashDetailNoSelected details of the transaction's cash data (if present).
InvoiceDetailmodelInvoiceDetailNoSelected details of the transaction's invoice (if present).
CustomFieldsmodelList<CustomField>NoA collection of the transaction's custom field data (if present).
AssociatedTransactionsmodelList<FilteredTransactionDetail>NoThe collection of transactions related to the transaction.
TagsmodelList<string>NoA collection of the transaction's tag data (if present).
CardDetail Parameters:
NameParameterData TypeRequiredDescription
TokenmodelstringNoThe token stored as a result of the transaction.
MaskedPANmodelstringNoThe transaction's masked account number.
NameOnCardmodelstringNoThe cardholder's name.
AuthorizationAmountmodeldecimalNoThe amount of the authorization.
TipAmountmodeldecimalNoThe Amount of the tip.
TotalAmountmodeldecimalNoThe total amount of the transaction.
CashBackAmountmodeldecimalNoThe amount of cash returned on the transaction.
SurchargeAmountmodeldecimalNoThe surcharge amount.
AccountTypemodelstringNoThe type of card account.
ResultCodemodelstringNoThe transaction's result code.
ResultTextmodelstringNoThe transaction's result text.
ApprovalCodemodelstringNoThe transaction's approval code.
HostReferenceNumbermodelstringNoThe transaction's processor reference number.
AvsResponsemodelstringNoThe transaction's AVS response.
AvsResponseTextmodelstringNoThe transaction's AVS response message.
CvvResponsemodelstringNoThe transaction's CVV response.
CvvResponseTextmodelstringNoThe transaction's CVV response message.
Level3Amountmodeldecimal?NoThe transaction's level 3 amount.
CardExpirationmodelstringNoThe card's expiration date.
StreetmodelstringNoThe street address associated with the card.
ZipCodemodelstringNoThe zip code associated with the card.
ThreeDSPaayDetailmodelThreeDSPaayDetailNoThe 3D Secure results, if any, on the card transaction.
ThreeDSPaayDetail Parameters:
NameParameterData TypeRequiredDescription
StatusmodelstringNoThe 3D Secure status, Y (yes, authenticated), A (attempted but protected), N (not authenticated, U (unavailable).
AcsTransIdmodelstringNoACS/Issuing Banks ID.
AuthValuemodelstringNoThe 3D Secure Cardholder authentication verification value.
CardTokenmodelstringNoThe 3D Secure results, if any, on the card transaction.
DsTransIdmodelstringNo3DS/Directory Server Transaction ID.
EcimodelstringNoThe 3D Secure E-commerce indicator. Values: '0', '1', '2', '5', '6', or '7'.
ProtocolVersionmodelstringNoThe 3D Secure protocol version.
CheckDetail Parameters:
NameParameterData TypeRequiredDescription
TokenmodelstringNoThe token stored as a result of the transaction.
CheckNumbermodelstringNoUniquely identifies an individual’s check.
AccountNumbermodelstringNoUniquely identifies the check owner’s bank account.
RoutingNumbermodelstringNoUniquely identifies the bank holding funds.
DriversLicenseNumbermodelstringNoCheck owner’s driver’s license number.
SocialSecurityNumbermodelstringNoCheck owner's social security numbe.r
DateOfBirthmodelstringNoCheck owner's date of birth.
StateCodemodelstringNoCheck owner’s two-character state code.
NameOnCheckmodelstringNoName of the check owner.
EmailAddressmodelstringNoEmail address of the check owner.
PhoneNumbermodelstringNoPhone number provided as check verification data.
CheckAmountmodeldecimalNoTotal amount of the transaction.
ResultCodemodelstringNoGateway result code.
ResultTextmodelstringNoDescription of the gateway result.
HostApprovalmodelstringNoApproval code or host error.
HostReferenceNumbermodelstringNoReference number provided by the processor.
ResultMessagemodelstringNoProcessor result message.
SecondaryResultMessagemodelstringNoAdditional result message detail (optional).
TertiaryResultMessagemodelstringNoAdditional result message detail (optional).
AccountTypemodelstringNoType of account (checking/savings).
CheckTypemodelstringNoThe type of check used for the transaction.
SECCodemodelstringNoThe Standard Entry Class code used for the transaction (if any).
CashDetail Parameters:
NameParameterData TypeRequiredDescription
CashAmountmodeldecimalNoThe amount of the cash transaction.
InvoiceDetail Parameters:
NameParameterData TypeRequiredDescription
PurchaseOrderNumbermodelstringNoPurchase order number for the transaction.
ShippingAmountmodeldecimalNoShipping amount for the transaction.
TaxAmountmodeldecimalNoTax amount for the transaction.
DutyAmountmodeldecimalNoDuty amount for the transaction.
ConvenienceAmountmodeldecimalNoConvenience fee for the transaction.
CustomField Parameters:
NameParameterData TypeRequiredDescription
Keymodelint?NoGateway key for the custom field
NamemodelstringNoName of the custom field as set by the merchant
ValuemodelstringNoValue (if applicable) to store in the custom field
FilteredTransactionDetail Parameters:
NameParameterData TypeRequiredDescription
TransactionIdformintNo
MerchantKeyformintNo
TimestampformDateTimeNo
PaymentTypeformstringNo
TransactionTypeformstringNo
AmountformdecimalNo
UsernameformstringNo
CustomerIdformstringNo
CustomerKeyformint?No
PayerformstringNo
ResultformstringNo
SettleFlagformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /reports/transactions/{pnRefs} HTTP/1.1 
Host: syntch.simpay.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TransactionDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Reporting.Responses">
  <Adjusted>String</Adjusted>
  <AssociatedTransactions xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Reporting.Responses.Statistics">
    <d2p1:FilteredTransactionDetail>
      <d2p1:Amount>0</d2p1:Amount>
      <d2p1:CustomerId>String</d2p1:CustomerId>
      <d2p1:CustomerKey>0</d2p1:CustomerKey>
      <d2p1:MerchantKey>0</d2p1:MerchantKey>
      <d2p1:Payer>String</d2p1:Payer>
      <d2p1:PaymentType>String</d2p1:PaymentType>
      <d2p1:Result>String</d2p1:Result>
      <d2p1:SettleFlag>String</d2p1:SettleFlag>
      <d2p1:Timestamp>0001-01-01T00:00:00</d2p1:Timestamp>
      <d2p1:TransactionId>0</d2p1:TransactionId>
      <d2p1:TransactionType>String</d2p1:TransactionType>
      <d2p1:Username>String</d2p1:Username>
    </d2p1:FilteredTransactionDetail>
  </AssociatedTransactions>
  <AuthorizationTimestamp>0001-01-01T00:00:00</AuthorizationTimestamp>
  <BatchId>String</BatchId>
  <BatchNumber>String</BatchNumber>
  <BatchSequenceNumber>String</BatchSequenceNumber>
  <CardDetail>
    <AccountType>String</AccountType>
    <ApprovalCode>String</ApprovalCode>
    <AuthorizationAmount>0</AuthorizationAmount>
    <AvsResponse>String</AvsResponse>
    <AvsResponseText>String</AvsResponseText>
    <CardExpiration>String</CardExpiration>
    <CashBackAmount>0</CashBackAmount>
    <CvvResponse>String</CvvResponse>
    <CvvResponseText>String</CvvResponseText>
    <HostReferenceNumber>String</HostReferenceNumber>
    <Level3Amount>0</Level3Amount>
    <MaskedPAN>String</MaskedPAN>
    <NameOnCard>String</NameOnCard>
    <ResultCode>String</ResultCode>
    <ResultText>String</ResultText>
    <Street>String</Street>
    <SurchargeAmount>0</SurchargeAmount>
    <ThreeDSPaayDetail>
      <AcsTransId>String</AcsTransId>
      <AuthValue>String</AuthValue>
      <CardToken>String</CardToken>
      <DsTransId>String</DsTransId>
      <Eci>String</Eci>
      <ProtocolVersion>String</ProtocolVersion>
      <Status>String</Status>
    </ThreeDSPaayDetail>
    <TipAmount>0</TipAmount>
    <Token>String</Token>
    <TotalAmount>0</TotalAmount>
    <ZipCode>String</ZipCode>
  </CardDetail>
  <CashDetail>
    <CashAmount>0</CashAmount>
  </CashDetail>
  <CheckDetail>
    <AccountNumber>String</AccountNumber>
    <AccountType>String</AccountType>
    <CheckAmount>0</CheckAmount>
    <CheckNumber>String</CheckNumber>
    <CheckType>String</CheckType>
    <DateOfBirth>String</DateOfBirth>
    <DriversLicenseNumber>String</DriversLicenseNumber>
    <EmailAddress>String</EmailAddress>
    <HostApproval>String</HostApproval>
    <HostReferenceNumber>String</HostReferenceNumber>
    <NameOnCheck>String</NameOnCheck>
    <PhoneNumber>String</PhoneNumber>
    <ResultCode>String</ResultCode>
    <ResultMessage>String</ResultMessage>
    <ResultText>String</ResultText>
    <RoutingNumber>String</RoutingNumber>
    <SECCode>String</SECCode>
    <SecondaryResultMessage>String</SecondaryResultMessage>
    <SocialSecurityNumber>String</SocialSecurityNumber>
    <StateCode>String</StateCode>
    <TertiaryResultMessage>String</TertiaryResultMessage>
    <Token>String</Token>
  </CheckDetail>
  <CustomFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Common.DTO">
    <d2p1:CustomField>
      <d2p1:Key>0</d2p1:Key>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:CustomField>
  </CustomFields>
  <CustomerId>String</CustomerId>
  <CustomerKey>0</CustomerKey>
  <CustomerName>String</CustomerName>
  <CustomerReference>String</CustomerReference>
  <EntryMode>String</EntryMode>
  <IP>String</IP>
  <InvoiceDetail>
    <ConvenienceAmount>0</ConvenienceAmount>
    <DutyAmount>0</DutyAmount>
    <PurchaseOrderNumber>String</PurchaseOrderNumber>
    <ShippingAmount>0</ShippingAmount>
    <TaxAmount>0</TaxAmount>
  </InvoiceDetail>
  <InvoiceNumber>String</InvoiceNumber>
  <MerchantKey>0</MerchantKey>
  <OriginalTransactionPnRef>0</OriginalTransactionPnRef>
  <PaymentType>String</PaymentType>
  <PnRef>0</PnRef>
  <Processor>String</Processor>
  <ProcessorError>String</ProcessorError>
  <ProcessorRequestTimestamp>0001-01-01T00:00:00</ProcessorRequestTimestamp>
  <ProcessorResponseTimestamp>0001-01-01T00:00:00</ProcessorResponseTimestamp>
  <RegisterNumber>String</RegisterNumber>
  <ResellerKey>0</ResellerKey>
  <ReversalFlag>String</ReversalFlag>
  <SequenceNumber>String</SequenceNumber>
  <SettleFlag>String</SettleFlag>
  <SettlementMessage>String</SettlementMessage>
  <SettlementTimestamp>0001-01-01T00:00:00</SettlementTimestamp>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Tags>
  <TransactionFinishTimestamp>0001-01-01T00:00:00</TransactionFinishTimestamp>
  <TransactionTimestamp>0001-01-01T00:00:00</TransactionTimestamp>
  <TransactionType>String</TransactionType>
  <UserName>String</UserName>
  <VoidFlag>String</VoidFlag>
</TransactionDetail>