Host

<back to all web services

AccountRegisterationInitRequest

The following routes are available for this service:
POST/UserAccount/AccountRegisterationInit
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class AccountRegisterationInitRequest
    {
        public String MobileNumber = null;
        public String IsoCode = null;
        public Integer AttemptNumber = null;
        
        public String getMobileNumber() { return MobileNumber; }
        public AccountRegisterationInitRequest setMobileNumber(String value) { this.MobileNumber = value; return this; }
        public String getIsoCode() { return IsoCode; }
        public AccountRegisterationInitRequest setIsoCode(String value) { this.IsoCode = value; return this; }
        public Integer getAttemptNumber() { return AttemptNumber; }
        public AccountRegisterationInitRequest setAttemptNumber(Integer value) { this.AttemptNumber = value; return this; }
    }

    public static class AccountRegisterationInitResponse
    {
        public Integer LocationCountryId = null;
        public String ErrorMsg = null;
        public Boolean IsVerified = null;
        public String RequestId = null;
        public Boolean PinCodeRequestEnabled = null;
        public Boolean BypassMobileAuthentication = null;
        public ResponseStatus ResponseStatus = null;
        
        public Integer getLocationCountryId() { return LocationCountryId; }
        public AccountRegisterationInitResponse setLocationCountryId(Integer value) { this.LocationCountryId = value; return this; }
        public String getErrorMsg() { return ErrorMsg; }
        public AccountRegisterationInitResponse setErrorMsg(String value) { this.ErrorMsg = value; return this; }
        public Boolean getIsVerified() { return IsVerified; }
        public AccountRegisterationInitResponse setIsVerified(Boolean value) { this.IsVerified = value; return this; }
        public String getRequestId() { return RequestId; }
        public AccountRegisterationInitResponse setRequestId(String value) { this.RequestId = value; return this; }
        public Boolean isPinCodeRequestEnabled() { return PinCodeRequestEnabled; }
        public AccountRegisterationInitResponse setPinCodeRequestEnabled(Boolean value) { this.PinCodeRequestEnabled = value; return this; }
        public Boolean isBypassMobileAuthentication() { return BypassMobileAuthentication; }
        public AccountRegisterationInitResponse setBypassMobileAuthentication(Boolean value) { this.BypassMobileAuthentication = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AccountRegisterationInitResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java AccountRegisterationInitRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /UserAccount/AccountRegisterationInit HTTP/1.1 
Host: api-demo-1.cura.healthcare 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	MobileNumber: String,
	IsoCode: String,
	AttemptNumber: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	LocationCountryId: 0,
	ErrorMsg: String,
	IsVerified: False,
	RequestId: String,
	PinCodeRequestEnabled: False,
	BypassMobileAuthentication: False,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}