PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

TransactionStatusRequest

The following routes are available for this service:
POST/TransactionStatus
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class TransactionStatusRequest
    {
        @DataMember
        public RequestorCredentials Credentials = null;

        @DataMember
        public OriginalTransaction OriginalData = null;
        
        public RequestorCredentials getCredentials() { return Credentials; }
        public TransactionStatusRequest setCredentials(RequestorCredentials value) { this.Credentials = value; return this; }
        public OriginalTransaction getOriginalData() { return OriginalData; }
        public TransactionStatusRequest setOriginalData(OriginalTransaction value) { this.OriginalData = value; return this; }
    }

    public static class RequestorCredentials
    {
        @Required()
        public String MerchantId = null;

        @Required()
        public String UserName = null;

        @Required()
        public String Password = null;

        @Required()
        public String Version = null;
        
        public String getMerchantId() { return MerchantId; }
        public RequestorCredentials setMerchantId(String value) { this.MerchantId = value; return this; }
        public String getUserName() { return UserName; }
        public RequestorCredentials setUserName(String value) { this.UserName = value; return this; }
        public String getPassword() { return Password; }
        public RequestorCredentials setPassword(String value) { this.Password = value; return this; }
        public String getVersion() { return Version; }
        public RequestorCredentials setVersion(String value) { this.Version = value; return this; }
    }

    public static class OriginalTransaction
    {
        public OriginalDataType OriginalIdentifierType = null;
        public String OriginalDataIdentifier = null;
        
        public OriginalDataType getOriginalIdentifierType() { return OriginalIdentifierType; }
        public OriginalTransaction setOriginalIdentifierType(OriginalDataType value) { this.OriginalIdentifierType = value; return this; }
        public String getOriginalDataIdentifier() { return OriginalDataIdentifier; }
        public OriginalTransaction setOriginalDataIdentifier(String value) { this.OriginalDataIdentifier = value; return this; }
    }

    public static enum OriginalDataType
    {
        TransactionId(1),
        ReferenceKey(2),
        ExternalId(3),
        InternalTransactionId(4);

        private final int value;
        OriginalDataType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    @DataContract
    public static class TransactionStatus extends PaysecureResponseInternal
    {
        @DataMember
        public Transaction History = null;

        @DataMember
        public String ErrorMessage = null;

        @DataMember
        public String ErrorCode = null;
        
        public Transaction getHistory() { return History; }
        public TransactionStatus setHistory(Transaction value) { this.History = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public TransactionStatus setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public String getErrorCode() { return ErrorCode; }
        public TransactionStatus setErrorCode(String value) { this.ErrorCode = value; return this; }
    }

    @DataContract
    public static class PaysecureResponseInternal
    {
        @DataMember(EmitDefaultValue=false)
        public RequestTimestamps Timestamps = null;
        
        public RequestTimestamps getTimestamps() { return Timestamps; }
        public PaysecureResponseInternal setTimestamps(RequestTimestamps value) { this.Timestamps = value; return this; }
    }

    @DataContract
    public static class RequestTimestamps
    {
        @DataMember(EmitDefaultValue=false)
        public InOutTimes AppLayer = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes ParentLookup = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes RetryLookup = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes GetCardData = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes CardTokenize = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes CardEncrypt = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes DBInsert = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes BackendProcess = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes DBUpdate = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes ParentUpdate = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes Network = null;
        
        public InOutTimes getAppLayer() { return AppLayer; }
        public RequestTimestamps setAppLayer(InOutTimes value) { this.AppLayer = value; return this; }
        public InOutTimes getParentLookup() { return ParentLookup; }
        public RequestTimestamps setParentLookup(InOutTimes value) { this.ParentLookup = value; return this; }
        public InOutTimes getRetryLookup() { return RetryLookup; }
        public RequestTimestamps setRetryLookup(InOutTimes value) { this.RetryLookup = value; return this; }
        public InOutTimes getGetCardData() { return GetCardData; }
        public RequestTimestamps setGetCardData(InOutTimes value) { this.GetCardData = value; return this; }
        public InOutTimes getCardTokenize() { return CardTokenize; }
        public RequestTimestamps setCardTokenize(InOutTimes value) { this.CardTokenize = value; return this; }
        public InOutTimes getCardEncrypt() { return CardEncrypt; }
        public RequestTimestamps setCardEncrypt(InOutTimes value) { this.CardEncrypt = value; return this; }
        public InOutTimes getDbInsert() { return DBInsert; }
        public RequestTimestamps setDbInsert(InOutTimes value) { this.DBInsert = value; return this; }
        public InOutTimes getBackendProcess() { return BackendProcess; }
        public RequestTimestamps setBackendProcess(InOutTimes value) { this.BackendProcess = value; return this; }
        public InOutTimes getDbUpdate() { return DBUpdate; }
        public RequestTimestamps setDbUpdate(InOutTimes value) { this.DBUpdate = value; return this; }
        public InOutTimes getParentUpdate() { return ParentUpdate; }
        public RequestTimestamps setParentUpdate(InOutTimes value) { this.ParentUpdate = value; return this; }
        public InOutTimes getNetwork() { return Network; }
        public RequestTimestamps setNetwork(InOutTimes value) { this.Network = value; return this; }
    }

    @DataContract
    public static class InOutTimes
    {
        
    }

    public static class Transaction
    {
        public String TranId = null;
        public String Status = null;
        public String ApprovalCode = null;
        public String ResponseCode = null;
        public String TransactionDT = null;
        public Integer TransactionAmount = null;
        public String Network = null;
        public Integer ApprovedAmount = null;
        public Integer OpenAmount = null;
        public String ParentTranId = null;
        public ArrayList<String> ExternalIds = null;
        public String LocalDateTime = null;
        public String CurrencyCode = null;
        public String AVS = null;
        public String CVN = null;
        
        public String getTranId() { return TranId; }
        public Transaction setTranId(String value) { this.TranId = value; return this; }
        public String getStatus() { return Status; }
        public Transaction setStatus(String value) { this.Status = value; return this; }
        public String getApprovalCode() { return ApprovalCode; }
        public Transaction setApprovalCode(String value) { this.ApprovalCode = value; return this; }
        public String getResponseCode() { return ResponseCode; }
        public Transaction setResponseCode(String value) { this.ResponseCode = value; return this; }
        public String getTransactionDT() { return TransactionDT; }
        public Transaction setTransactionDT(String value) { this.TransactionDT = value; return this; }
        public Integer getTransactionAmount() { return TransactionAmount; }
        public Transaction setTransactionAmount(Integer value) { this.TransactionAmount = value; return this; }
        public String getNetwork() { return Network; }
        public Transaction setNetwork(String value) { this.Network = value; return this; }
        public Integer getApprovedAmount() { return ApprovedAmount; }
        public Transaction setApprovedAmount(Integer value) { this.ApprovedAmount = value; return this; }
        public Integer getOpenAmount() { return OpenAmount; }
        public Transaction setOpenAmount(Integer value) { this.OpenAmount = value; return this; }
        public String getParentTranId() { return ParentTranId; }
        public Transaction setParentTranId(String value) { this.ParentTranId = value; return this; }
        public ArrayList<String> getExternalIds() { return ExternalIds; }
        public Transaction setExternalIds(ArrayList<String> value) { this.ExternalIds = value; return this; }
        public String getLocalDateTime() { return LocalDateTime; }
        public Transaction setLocalDateTime(String value) { this.LocalDateTime = value; return this; }
        public String getCurrencyCode() { return CurrencyCode; }
        public Transaction setCurrencyCode(String value) { this.CurrencyCode = value; return this; }
        public String getAvs() { return AVS; }
        public Transaction setAvs(String value) { this.AVS = value; return this; }
        public String getCvn() { return CVN; }
        public Transaction setCvn(String value) { this.CVN = value; return this; }
    }

}

Java TransactionStatusRequest DTOs

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

HTTP + JSV

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

POST /TransactionStatus HTTP/1.1 
Host: api.paysecure.acculynk.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Credentials: 
	{
		MerchantId: String,
		UserName: String,
		Password: String,
		Version: String
	},
	OriginalData: 
	{
		OriginalIdentifierType: TransactionId,
		OriginalDataIdentifier: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	History: 
	{
		TranId: String,
		Status: String,
		ApprovalCode: String,
		ResponseCode: String,
		TransactionDT: String,
		TransactionAmount: 0,
		Network: String,
		ApprovedAmount: 0,
		OpenAmount: 0,
		ParentTranId: String,
		ExternalIds: 
		[
			String
		],
		LocalDateTime: String,
		CurrencyCode: String,
		AVS: String,
		CVN: String
	},
	ErrorMessage: String,
	ErrorCode: String,
	Timestamps: 
	{
		AppLayer: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		ParentLookup: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		RetryLookup: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		GetCardData: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		CardTokenize: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		CardEncrypt: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		DBInsert: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		BackendProcess: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		DBUpdate: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		ParentUpdate: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		Network: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		}
	}
}