PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

DataStoreRequest

Requires Authentication
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 DataStore
            Public Overridable Property ErrorCode As String
            Public Overridable Property ErrorMessage As String
        End Class

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

        Public Partial Class DataStoreRequest
            Public Overridable Property Credentials As RequestorCredentials
            Public Overridable Property Scope As DataStoreFor
        End Class

        Public Enum DataStoreScope
            AllMerchants
            SingleMerchant
        End Enum
    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 DataStoreRequest DTOs

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

HTTP + CSV

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

POST /csv/reply/DataStoreRequest HTTP/1.1 
Host: api.paysecure.acculynk.net 
Accept: text/csv
Content-Type: text/csv
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/csv
Content-Length: length

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