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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Credentials":{"MerchantId":"String","UserName":"String","Password":"String","Version":"String"},"Scope":{"StoreScope":"AllMerchants","Value":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ErrorCode":"String","ErrorMessage":"String"}