| POST | /ValidateDetails/ |
|---|
package dtos
type ValidateDetailsResponse struct {
Bpid int `json:"bpid,omitempty"`
IsValid bool `json:"isValid,omitempty"`
IsLocked bool `json:"isLocked,omitempty"`
AttemptsRemaining int `json:"attemptsRemaining,omitempty"`
Error *string `json:"error,omitempty"`
}
type ValidateDetailsRequest struct {
Guid string `json:"guid,omitempty"`
Postcode *string `json:"postcode,omitempty"`
Number4 *string `json:"number4,omitempty"`
Email *string `json:"email,omitempty"`
EmailConfirm *string `json:"emailConfirm,omitempty"`
IsSignedUp bool `json:"isSignedUp,omitempty"`
IsPrivacyChecked bool `json:"isPrivacyChecked,omitempty"`
}
Go ValidateDetailsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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","IsSignedUp":false,"IsPrivacyChecked":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"BPID":0,"IsValid":false,"IsLocked":false,"AttemptsRemaining":0,"Error":"String"}