POST | /DocumentVerification/submit |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CDD_Engine_WS.dto.Requests
Imports ThirdPartyServices_ClassLibraries.DocumentValidations
Namespace Global
Namespace CDD_Engine_WS.dto.Requests
Public Partial Class DocumentVerificationRequest
Public Sub New()
Documents = New List(Of DocumentData)
End Sub
Public Overridable Property ApplicationGUID As String
Public Overridable Property Documents As List(Of DocumentData)
End Class
End Namespace
Namespace ThirdPartyServices_ClassLibraries.DocumentValidations
Public Partial Class DocumentData
Public Overridable Property DocumentType As String
Public Overridable Property FileName As String
Public Overridable Property FileData As String
End Class
End Namespace
End Namespace
VB.NET DocumentVerificationRequest 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.
POST /DocumentVerification/submit HTTP/1.1
Host: wpcdd-featuretest-ws.worldpay.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ApplicationGUID":"String","Documents":[{"DocumentType":"String","FileName":"String","FileData":"String"}]}