MBMMFAutoEnrol

<back to all web services

ValidateDetailsRequest

Requires Authentication
The following routes are available for this service:
POST/ValidateDetails/
import Foundation
import ServiceStack

public class ValidateDetailsRequest : Codable
{
    public var guid:String
    public var postcode:String
    public var number4:String
    public var email:String
    public var emailConfirm:String

    required public init(){}
}

public class ValidateDetailsResponse : Codable
{
    public var bpid:Int
    public var isValid:Bool
    public var isLocked:Bool
    public var attemptsRemaining:Int
    public var error:String

    required public init(){}
}


Swift ValidateDetailsRequest 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 /ValidateDetails/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"GUID":"00000000000000000000000000000000","Postcode":"String","Number4":"String","Email":"String","EmailConfirm":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"BPID":0,"IsValid":false,"IsLocked":false,"AttemptsRemaining":0,"Error":"String"}