TBS Apps API

<back to all web services

InsertClientDetailsRequest

The following routes are available for this service:
GET,POST/SignupRegisters (sign up) a new userClient details are inserted to the database. Any validations that were ommittted in the frontend will be re-done here.
InsertClientDetailsRequest Parameters:
NameParameterData TypeRequiredDescription
SurnamebodystringNoSurname
MiddleNamebodystringNoMiddleName
FirstNamebodystringNoFirstName
GenderbodycharNoGender. F: Female, M: Male
DOBbodyDateTimeNoDate Of Birth
UsernamebodystringNoUsername
PasswordbodystringNoPassword
EmailbodystringNoEmail
PhoneNobodystringNoPhone No
ResidentialAddressNobodystringNoResidential Address No
ResidentialAddress1bodystringNoResidential Address 1
ResidentialAddress2bodystringNoResidential Address 2
ResidentialSuburbbodystringNoResidential Suburb
ResidentialStateCodebodystringNoResidential State Code
ResidentialPostCodebodystringNoResidential Post Code
ResidentialCountryCodebodystringNoResidential Country Code
AffiliateTAGbodystringNoAffiliate TAG
VoucherCodebodystringNoVoucher Code
MemberClubNamebodystringNoMember Club Name
MemberClubNumberbodystringNoMember Club Number
AccountRulesbodystringNoAccount Rules
LimitPeriodbodyint?NoLimit Period
DepositLimitbodydecimal?NoDeposit Limit
LossLimitbodydecimal?NoLoss Limit
InvitationGUIDbodystringNoInvitation GUID
MyAffiliatesTokenbodystringNo
EmailConsentbodybooleanNoEmail Consent
SMSConsentbodybooleanNoSMS Consent
PushConsentbodybooleanNoPush Consent
ReferenceCodebodystringNoReference Code
ResponseDataBase Parameters:
NameParameterData TypeRequiredDescription
ErrorNoformintNo
MessageformstringNo
Identityformlong?No

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 /Signup HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Surname: String,
	MiddleName: String,
	FirstName: String,
	Gender: ,
	DOB: 0001-01-01,
	Username: String,
	Password: String,
	Email: String,
	PhoneNo: String,
	ResidentialAddressNo: String,
	ResidentialAddress1: String,
	ResidentialAddress2: String,
	ResidentialSuburb: String,
	ResidentialStateCode: String,
	ResidentialPostCode: String,
	ResidentialCountryCode: String,
	AffiliateTAG: String,
	VoucherCode: String,
	MemberClubName: String,
	MemberClubNumber: String,
	AccountRules: String,
	LimitPeriod: 0,
	DepositLimit: 0,
	LossLimit: 0,
	InvitationGUID: String,
	MyAffiliatesToken: String,
	EmailConsent: False,
	SMSConsent: False,
	PushConsent: False,
	ReferenceCode: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ErrorNo: 0,
	Message: String,
	Identity: 0
}