POST | /DocumentVerification/submit |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CDD_Engine_WS.dto.Requests;
using ThirdPartyServices_ClassLibraries.DocumentValidations;
namespace CDD_Engine_WS.dto.Requests
{
public partial class DocumentVerificationRequest
{
public DocumentVerificationRequest()
{
Documents = new List<DocumentData>{};
}
public virtual string ApplicationGUID { get; set; }
public virtual List<DocumentData> Documents { get; set; }
}
}
namespace ThirdPartyServices_ClassLibraries.DocumentValidations
{
public partial class DocumentData
{
public virtual string DocumentType { get; set; }
public virtual string FileName { get; set; }
public virtual string FileData { get; set; }
}
}
C# 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: wp-cddws-test.worldpay.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ApplicationGUID":"String","Documents":[{"DocumentType":"String","FileName":"String","FileData":"String"}]}