PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

DSInitializeRequest

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

public class dtos
{

    public static class DSInitializeRequest
    {
        public RequestorCredentials Credentials = null;
        public DataStoreFor Scope = null;
        
        public RequestorCredentials getCredentials() { return Credentials; }
        public DSInitializeRequest setCredentials(RequestorCredentials value) { this.Credentials = value; return this; }
        public DataStoreFor getScope() { return Scope; }
        public DSInitializeRequest setScope(DataStoreFor value) { this.Scope = 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 DataStoreFor
    {
        public DataStoreScope StoreScope = null;
        public String Value = null;
        
        public DataStoreScope getStoreScope() { return StoreScope; }
        public DataStoreFor setStoreScope(DataStoreScope value) { this.StoreScope = value; return this; }
        public String getValue() { return Value; }
        public DataStoreFor setValue(String value) { this.Value = value; return this; }
    }

    public static enum DataStoreScope
    {
        AllMerchants,
        SingleMerchant;
    }

    public static class DSInitialize
    {
        public String ErrorCode = null;
        public String ErrorMessage = null;
        
        public String getErrorCode() { return ErrorCode; }
        public DSInitialize setErrorCode(String value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public DSInitialize setErrorMessage(String value) { this.ErrorMessage = value; return this; }
    }

}

Java DSInitializeRequest 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.

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

<DSInitializeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Credentials>
    <MerchantId>String</MerchantId>
    <Password>String</Password>
    <UserName>String</UserName>
    <Version>String</Version>
  </Credentials>
  <Scope>
    <StoreScope>AllMerchants</StoreScope>
    <Value>String</Value>
  </Scope>
</DSInitializeRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DSInitialize xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <ErrorCode>String</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
</DSInitialize>