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
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/DataStoreRequest 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"}