Betting.WebApi

<back to all web services

RegisterOrganization

Requires Authentication
The following routes are available for this service:
POST/cmd/organizations
RegisterOrganization Parameters:
NameParameterData TypeRequiredDescription
IdbodystringNo
NamebodystringNo
AddressbodyAddressNo
LocalebodyLocaleNo
IntegrationsDatabodyRecordDictionary<string, string>No
WinningsExpirationPolicybodyWinningsExpirationPolicyNo
NaturebodyOrganizationNature?No
IntegrationsbodyOrganizationIntegrationsNo
PayoutPolicybodyPayoutPolicyNo
Address Parameters:
NameParameterData TypeRequiredDescription
StreetformstringYes
CityformstringYes
StateformstringYes
PostalCodeformstringYes
CountryformRefYes
GPSformGPSCoordinatesYes
DataformRecordDictionary<string, string>Yes
Ref Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
ValformstringYes
GPSCoordinates Parameters:
NameParameterData TypeRequiredDescription
LatformdoubleNo
LngformdoubleNo
Locale Parameters:
NameParameterData TypeRequiredDescription
TimeZoneformRefNo
CurrencyformRefNo
LanguageformRefNo
WinningsExpirationPolicy Parameters:
NameParameterData TypeRequiredDescription
EnabledformboolNo
IntervalformTimeSpanNo
OrganizationNature Enum:
NameValue
FirstParty1
Partner2
OrganizationIntegrations Parameters:
NameParameterData TypeRequiredDescription
FirstPartyformIntegrationInstanceNo
PartnerformIntegrationInstanceNo
IntegrationInstance Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
IntegrationIdformstringNo
WalletformIntegrationConnectionNo
PartnerApiformIntegrationConnectionNo
SlipForwardingEnabledformboolNo
IntegrationConnection Parameters:
NameParameterData TypeRequiredDescription
UrlformstringNo
CredentialsRefformstringNo
PayoutPolicy Parameters:
NameParameterData TypeRequiredDescription
SelfServiceformWalletPayoutModeNo
PersonalformWalletPayoutModeNo
WalletPayoutMode Enum:
NameValue
RealTime0
BatchPayout1

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

HTTP + OTHER

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

POST /cmd/organizations HTTP/1.1 
Host: api.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String","name":"String","address":{"street":"String","city":"String","state":"String","postalCode":"String","country":{"id":"String","val":"String"},"gps":{"lat":0,"lng":0},"data":{"String":"String"}},"locale":{"timeZone":{"id":"String","val":"String"},"currency":{"id":"String","val":"String"},"language":{"id":"String","val":"String"}},"integrationsData":{"String":"String"},"winningsExpirationPolicy":{"enabled":false,"interval":"PT0S"},"nature":0,"integrations":{"firstParty":{"id":"String","integrationId":"String","wallet":{"url":"String","credentialsRef":"String"},"partnerApi":{"url":"String","credentialsRef":"String"},"slipForwardingEnabled":false},"partner":{"id":"String","integrationId":"String","wallet":{"url":"String","credentialsRef":"String"},"partnerApi":{"url":"String","credentialsRef":"String"},"slipForwardingEnabled":false}},"payoutPolicy":{"selfService":0,"personal":0}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}