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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
Content-Type: application/json
Content-Length: length
{"Credentials":{"MerchantId":"String","UserName":"String","Password":"String","Version":"String"},"Scope":{"StoreScope":"AllMerchants","Value":"String"}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"ErrorCode":"String","ErrorMessage":"String"}