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
TitlebodystringNoTitle like Mr, Mrs, Miss, Ms, MX
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
AffiliateTokenbodystringNo
PreferredCommunicationMethodIdbodyintNoCommunication method identifier
ReferralCodebodystringNoReferral code
ResponseDataBase Parameters:
NameParameterData TypeRequiredDescription
ErrorNoformintNo
MessageformstringNo
Identityformlong?No

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

HTTP + JSON

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

POST /Signup HTTP/1.1 
Host: ios-api.betright.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Title":"String","Surname":"String","MiddleName":"String","FirstName":"String","Gender":"\u0000","DOB":"\/Date(-62135596800000)\/","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","AffiliateToken":"String","PreferredCommunicationMethodId":0,"ReferralCode":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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