PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

EbtRefundRequest

The following routes are available for this service:
POST/EbtRefund
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Paysecure.ServiceModel
Imports Paysecure.ServiceModel.Types

Namespace Global

    Namespace Paysecure.ServiceModel

        <DataContract>
        Public Partial Class EbtRefund
            Inherits PaysecureResponseInternal
            <DataMember>
            Public Overridable Property TranId As String

            <DataMember>
            Public Overridable Property ApprovalCode As String

            <DataMember>
            Public Overridable Property ResponseCode As String

            <DataMember>
            Public Overridable Property RemainingBalanceCash As Integer

            <DataMember>
            Public Overridable Property CashCurrencyCode As String

            <DataMember>
            Public Overridable Property RemainingBalanceSNAP As Integer

            <DataMember>
            Public Overridable Property SNAPCurrencyCode As String

            <DataMember>
            Public Overridable Property ErrorMessage As String

            <DataMember>
            Public Overridable Property ErrorCode As String
        End Class

        <DataContract>
        Public Partial Class EbtRefundRequest
            <DataMember>
            Public Overridable Property Credentials As RequestorCredentials

            <DataMember>
            Public Overridable Property TranId As String

            <DataMember>
            Public Overridable Property Amount As Integer

            <DataMember>
            Public Overridable Property ExpirationDate As String

            <DataMember>
            Public Overridable Property ReferenceKey As String

            <DataMember>
            Public Overridable Property MerchantDetails As MerchantDescriptor

            <DataMember>
            Public Overridable Property Custom1 As String

            <DataMember>
            Public Overridable Property Custom2 As String

            <DataMember>
            Public Overridable Property Custom3 As String

            <DataMember>
            Public Overridable Property Custom4 As String

            <DataMember>
            Public Overridable Property Custom5 As String

            <DataMember>
            Public Overridable Property SignatureHash As String

            <DataMember>
            Public Overridable Property ExtendedData As ExtendedData

            <DataMember>
            Public Overridable Property IntegratorID As String
        End Class

        Public Partial Class MerchantDescriptor
            Inherits MerchantDescriptorBase
            Public Overridable Property Name As String
            Public Overridable Property Address As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property Zip As String
            Public Overridable Property Country As String
            Public Overridable Property CustomerServiceNumber As String
            Public Overridable Property MCC As String
            Public Overridable Property FNSnum As String
            Public Overridable Property Email As String
        End Class

        Public Partial Class MerchantDescriptorBase
            Public Overridable Property DataElements As MerchantDataElements
        End Class
    End Namespace

    Namespace Paysecure.ServiceModel.Types

        Public Enum BillPayGroup
            [Default]
            Single
            Recurring
            Installment
            Deferred
        End Enum

        Public Partial Class BillPayGroupIndicator
            Public Overridable Property MITTotalPaymentCount As String
            Public Overridable Property MITAmountType As String
            Public Overridable Property MITAmount As String
            Public Overridable Property MITUniqueID As String
            Public Overridable Property MITFrequency As String
            Public Overridable Property MITValidationFlag As String
            Public Overridable Property MITValidationReference As String
            Public Overridable Property MITSequenceIndicator As String
        End Class

        Public Enum CardAccountUpdaterInfo
            [Default]
            Supported
            NotSupported
        End Enum

        Public Partial Class CardonFileIndicatorDescriptor
            Public Overridable Property CardonFile As CardonFileInfo
            Public Overridable Property StoredCredentialIndicator As StoredCredentialIndicatorInfo
            Public Overridable Property TransactionInitiate As TransactionInitiateInfo
            Public Overridable Property ScheduleIndicator As ScheduleIndicatorInfo
            Public Overridable Property NetworkTransactionId As String
        End Class

        Public Enum CardonFileInfo
            [Default]
            Supported
            NotSupported
        End Enum

        Public Enum ChargeTypeInfo
            [Default]
            PartialShipment
            Delayed
            NoShow
            Resubmission
        End Enum

        Public Enum DigitalWalletInfo
            [Default]
            Staged
            Passthrough
        End Enum

        <DataContract>
        Public Partial Class ExtendedData
            <DataMember>
            Public Overridable Property Track2DataForEMVTransaction As String

            <DataMember>
            Public Overridable Property SenderInfo As SenderInfo

            <DataMember>
            Public Overridable Property CashbackAmount As Integer

            <DataMember>
            Public Overridable Property Network As NetworkName

            <DataMember>
            Public Overridable Property ReceiverInfo As ReceiverInfo

            <DataMember>
            Public Overridable Property BillPayGroup As BillPayGroup

            <DataMember>
            Public Overridable Property WalletData As WalletDescriptor

            <DataMember>
            Public Overridable Property SecureData As SecureDescriptor

            <DataMember>
            Public Overridable Property Level2Data As Level2Descriptor

            <DataMember>
            Public Overridable Property PaymentFacilitatorData As PaymentFacilitatorDescriptor

            <DataMember>
            Public Overridable Property TokenData As TokenDescriptor

            <DataMember>
            Public Overridable Property OTPTranId As String

            <DataMember>
            Public Overridable Property CurrentShipment As Integer

            <DataMember>
            Public Overridable Property TotalShipments As Integer

            <DataMember>
            Public Overridable Property IsTokenRequested As Boolean

            <DataMember>
            Public Overridable Property CardonFileIndicator As CardonFileIndicatorDescriptor

            <DataMember>
            Public Overridable Property CardAccountUpdater As CardAccountUpdaterInfo

            <DataMember>
            Public Overridable Property RetryAttemptCount As Integer

            <DataMember>
            Public Overridable Property TotalAuthAmount As Integer

            <DataMember>
            Public Overridable Property SignatureHashVersion As String

            <DataMember>
            Public Overridable Property OrderTypeDetail As OrderTypeInfo

            <DataMember>
            Public Overridable Property BillPayGroupIndicator As BillPayGroupIndicator

            <DataMember>
            Public Overridable Property ChargeTypeDetail As ChargeTypeInfo

            <DataMember>
            Public Overridable Property SAFEligible As SAFEligibleFlag
        End Class

        Public Enum FundingSourceType
            DepositAccount
            Credit
            Debit
            Prepaid
        End Enum

        <DataContract>
        Public Partial Class InOutTimes
        End Class

        Public Partial Class Level2Descriptor
            Public Overridable Property TaxDetails As TaxIndicator
            Public Overridable Property MerchantReferenceNumber As String
            Public Overridable Property MerchantTaxId As String
            Public Overridable Property OrderNumber As String
            Public Overridable Property TaxAmount As Integer
            Public Overridable Property DestinationPostalCode As String
            Public Overridable Property ProductDescription As String
        End Class

        Public Partial Class MerchantDataElements
            Public Overridable Property RefundSettlementTypeDetails As Integer
            Public Overridable Property SendRecurringPOSEntryModeFeature As Boolean
            Public Overridable Property UseOrgPOSCode As Boolean
        End Class

        Public Enum NetworkName
            [Default]
            NYCE
            CU24
            XCEL
            STAR
            PULS
            SHZM
            VISA
            MAST
            DISC
            AMEX
            ALIP
            UPIN
            STAC
            STNE
            MAES
            INTL
        End Enum

        Public Enum OrderTypeInfo
            [Default]
            Standing
            Subscription
        End Enum

        Public Partial Class PaymentFacilitatorDescriptor
            Public Overridable Property PaymentFacilitatorIndicator As String
            Public Overridable Property PFPhoneNumber As String
            Public Overridable Property SubMerchID As String
            Public Overridable Property SellerID As String
        End Class

        <DataContract>
        Public Partial Class PaysecureResponseInternal
            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property Timestamps As RequestTimestamps
        End Class

        Public Partial Class ReceiverInfo
            Public Overridable Property ReferenceNumber As String
            Public Overridable Property AccountNumber As String
            '''<Summary>
            '''Name Format FirstName{Space}LastName. For Example :- Alvaro Morata
            '''</Summary>
            Public Overridable Property Name As String
            Public Overridable Property Address As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property Country As String
            Public Overridable Property Zip As String
            Public Overridable Property PhoneNumber As String
        End Class

        Public Partial Class RequestorCredentials
            <Required>
            Public Overridable Property MerchantId As String

            <Required>
            Public Overridable Property UserName As String

            <Required>
            Public Overridable Property Password As String

            <Required>
            Public Overridable Property Version As String
        End Class

        <DataContract>
        Public Partial Class RequestTimestamps
            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property AppLayer As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property ParentLookup As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property RetryLookup As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property GetCardData As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property CardTokenize As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property CardEncrypt As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property DBInsert As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property BackendProcess As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property DBUpdate As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property ParentUpdate As InOutTimes

            <DataMember(EmitDefaultValue:=false)>
            Public Overridable Property Network As InOutTimes
        End Class

        Public Enum SAFEligibleFlag
            [Default]
            [True]
            [False]
        End Enum

        Public Enum ScheduleIndicatorInfo
            [Default]
            Scheduled
            Unscheduled
        End Enum

        Public Partial Class SecureDescriptor
            Public Overridable Property CAVV As String
            Public Overridable Property SecureTransactionId As String
        End Class

        Public Partial Class SenderInfo
            Public Overridable Property ReferenceNumber As String
            Public Overridable Property AccountNumber As String
            '''<Summary>
            '''Name Format FirstName{Space}LastName. For Example :- Alvaro Morata
            '''</Summary>
            Public Overridable Property Name As String
            Public Overridable Property Address As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property Country As String
            '''<Summary>
            '''DateOfBirth Format MMDDYYYY. For Example :- 05051960
            '''</Summary>
            Public Overridable Property DateOfBirth As String
            Public Overridable Property Zip As String
            Public Overridable Property PhoneNumber As String
            Public Overridable Property FundingSource As FundingSourceType
        End Class

        Public Enum StoredCredentialIndicatorInfo
            [Default]
            Initial
            Subsequent
        End Enum

        Public Enum TaxIndicator
            [Default]
            NoTaxInfoProvided
            TaxInfoProvided
            TaxExemptItem
        End Enum

        Public Partial Class TokenDescriptor
            Public Overridable Property TokenType As TokenTypes
            Public Overridable Property TokenCryptogramData1 As String
            Public Overridable Property TokenCryptogramData2 As String
        End Class

        Public Enum TokenTypes
            [Default]
            UCAF
            DSRP
            UCAFDSRP
            VisaVerified
            DigitalWallet
            VisaVerifiedDigitalWallet
        End Enum

        Public Enum TransactionInitiateInfo
            [Default]
            Merchant
            Terminal
            Customer
        End Enum

        Public Partial Class WalletDescriptor
            Public Overridable Property Type As String
            Public Overridable Property EncryptedData As String
            Public Overridable Property ApplicationDataHash As String
            Public Overridable Property EphemeralPublicKey As String
            Public Overridable Property PublicKeyHash As String
            Public Overridable Property TransactionId As String
            Public Overridable Property Signature As String
            Public Overridable Property Version As String
            Public Overridable Property ApplicationData As String
            Public Overridable Property MerchantIdentifier As String
            Public Overridable Property SpecialPayment As String
            Public Overridable Property DigitalWalletIndicator As DigitalWalletInfo
        End Class
    End Namespace
End Namespace

VB.NET EbtRefundRequest DTOs

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.

POST /EbtRefund HTTP/1.1 
Host: api.paysecure.acculynk.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EbtRefundRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Amount>0</Amount>
  <Credentials>
    <MerchantId>String</MerchantId>
    <Password>String</Password>
    <UserName>String</UserName>
    <Version>String</Version>
  </Credentials>
  <Custom1>String</Custom1>
  <Custom2>String</Custom2>
  <Custom3>String</Custom3>
  <Custom4>String</Custom4>
  <Custom5>String</Custom5>
  <ExpirationDate>String</ExpirationDate>
  <ExtendedData>
    <BillPayGroup>Default</BillPayGroup>
    <BillPayGroupIndicator>
      <MITAmount>String</MITAmount>
      <MITAmountType>String</MITAmountType>
      <MITFrequency>String</MITFrequency>
      <MITSequenceIndicator>String</MITSequenceIndicator>
      <MITTotalPaymentCount>String</MITTotalPaymentCount>
      <MITUniqueID>String</MITUniqueID>
      <MITValidationFlag>String</MITValidationFlag>
      <MITValidationReference>String</MITValidationReference>
    </BillPayGroupIndicator>
    <CardAccountUpdater>Default</CardAccountUpdater>
    <CardonFileIndicator>
      <CardonFile>Default</CardonFile>
      <NetworkTransactionId>String</NetworkTransactionId>
      <ScheduleIndicator>Default</ScheduleIndicator>
      <StoredCredentialIndicator>Default</StoredCredentialIndicator>
      <TransactionInitiate>Default</TransactionInitiate>
    </CardonFileIndicator>
    <CashbackAmount>0</CashbackAmount>
    <ChargeTypeDetail>Default</ChargeTypeDetail>
    <CurrentShipment>0</CurrentShipment>
    <IsTokenRequested>false</IsTokenRequested>
    <Level2Data>
      <DestinationPostalCode>String</DestinationPostalCode>
      <MerchantReferenceNumber>String</MerchantReferenceNumber>
      <MerchantTaxId>String</MerchantTaxId>
      <OrderNumber>String</OrderNumber>
      <ProductDescription>String</ProductDescription>
      <TaxAmount>0</TaxAmount>
      <TaxDetails>Default</TaxDetails>
    </Level2Data>
    <Network>Default</Network>
    <OTPTranId>String</OTPTranId>
    <OrderTypeDetail>Default</OrderTypeDetail>
    <PaymentFacilitatorData>
      <PFPhoneNumber>String</PFPhoneNumber>
      <PaymentFacilitatorIndicator>String</PaymentFacilitatorIndicator>
      <SellerID>String</SellerID>
      <SubMerchID>String</SubMerchID>
    </PaymentFacilitatorData>
    <ReceiverInfo>
      <AccountNumber>String</AccountNumber>
      <Address>String</Address>
      <City>String</City>
      <Country>String</Country>
      <Name>String</Name>
      <PhoneNumber>String</PhoneNumber>
      <ReferenceNumber>String</ReferenceNumber>
      <State>String</State>
      <Zip>String</Zip>
    </ReceiverInfo>
    <RetryAttemptCount>0</RetryAttemptCount>
    <SAFEligible>Default</SAFEligible>
    <SecureData>
      <CAVV>String</CAVV>
      <SecureTransactionId>String</SecureTransactionId>
    </SecureData>
    <SenderInfo>
      <AccountNumber>String</AccountNumber>
      <Address>String</Address>
      <City>String</City>
      <Country>String</Country>
      <DateOfBirth>String</DateOfBirth>
      <FundingSource>DepositAccount</FundingSource>
      <Name>String</Name>
      <PhoneNumber>String</PhoneNumber>
      <ReferenceNumber>String</ReferenceNumber>
      <State>String</State>
      <Zip>String</Zip>
    </SenderInfo>
    <SignatureHashVersion>String</SignatureHashVersion>
    <TokenData>
      <TokenCryptogramData1>String</TokenCryptogramData1>
      <TokenCryptogramData2>String</TokenCryptogramData2>
      <TokenType>Default</TokenType>
    </TokenData>
    <TotalAuthAmount>0</TotalAuthAmount>
    <TotalShipments>0</TotalShipments>
    <Track2DataForEMVTransaction>String</Track2DataForEMVTransaction>
    <WalletData>
      <ApplicationData>String</ApplicationData>
      <ApplicationDataHash>String</ApplicationDataHash>
      <DigitalWalletIndicator>Default</DigitalWalletIndicator>
      <EncryptedData>String</EncryptedData>
      <EphemeralPublicKey>String</EphemeralPublicKey>
      <MerchantIdentifier>String</MerchantIdentifier>
      <PublicKeyHash>String</PublicKeyHash>
      <Signature>String</Signature>
      <SpecialPayment>String</SpecialPayment>
      <TransactionId>String</TransactionId>
      <Type>String</Type>
      <Version>String</Version>
    </WalletData>
  </ExtendedData>
  <IntegratorID>String</IntegratorID>
  <MerchantDetails>
    <DataElements>
      <RefundSettlementTypeDetails>0</RefundSettlementTypeDetails>
      <SendRecurringPOSEntryModeFeature>false</SendRecurringPOSEntryModeFeature>
      <UseOrgPOSCode>false</UseOrgPOSCode>
    </DataElements>
    <Address>String</Address>
    <City>String</City>
    <Country>String</Country>
    <CustomerServiceNumber>String</CustomerServiceNumber>
    <Email>String</Email>
    <FNSnum>String</FNSnum>
    <MCC>String</MCC>
    <Name>String</Name>
    <State>String</State>
    <Zip>String</Zip>
  </MerchantDetails>
  <ReferenceKey>String</ReferenceKey>
  <SignatureHash>String</SignatureHash>
  <TranId>String</TranId>
</EbtRefundRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EbtRefund xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Timestamps>
    <AppLayer>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </AppLayer>
    <BackendProcess>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </BackendProcess>
    <CardEncrypt>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </CardEncrypt>
    <CardTokenize>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </CardTokenize>
    <DBInsert>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </DBInsert>
    <DBUpdate>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </DBUpdate>
    <GetCardData>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </GetCardData>
    <Network>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </Network>
    <ParentLookup>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </ParentLookup>
    <ParentUpdate>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </ParentUpdate>
    <RetryLookup>
      <InTime>0001-01-01T00:00:00</InTime>
      <OutTime>0001-01-01T00:00:00</OutTime>
    </RetryLookup>
  </Timestamps>
  <ApprovalCode>String</ApprovalCode>
  <CashCurrencyCode>String</CashCurrencyCode>
  <ErrorCode>String</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
  <RemainingBalanceCash>0</RemainingBalanceCash>
  <RemainingBalanceSNAP>0</RemainingBalanceSNAP>
  <ResponseCode>String</ResponseCode>
  <SNAPCurrencyCode>String</SNAPCurrencyCode>
  <TranId>String</TranId>
</EbtRefund>