PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

DSInitializeRequest

The following routes are available for this service:
PUT/DSInitialize
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

        Public Partial Class DataStoreFor
            Public Overridable Property StoreScope As DataStoreScope
            Public Overridable Property Value As String
        End Class

        Public Enum DataStoreScope
            AllMerchants
            SingleMerchant
        End Enum

        Public Partial Class DSInitialize
            Public Overridable Property ErrorCode As String
            Public Overridable Property ErrorMessage As String
        End Class

        Public Partial Class DSInitializeRequest
            Public Overridable Property Credentials As RequestorCredentials
            Public Overridable Property Scope As DataStoreFor
        End Class
    End Namespace

    Namespace Paysecure.ServiceModel.Types

        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
    End Namespace
End Namespace

VB.NET 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>