Betting.WebApi

<back to all web services

OpenLocation

Requires Authentication
The following routes are available for this service:
POST/cmd/locations
OpenLocation Parameters:
NameParameterData TypeRequiredDescription
IdbodystringNo
NamebodystringNo
OrganizationbodyRefExNo
RegionbodyRefNo
GroupbodyRefNo
AddressbodyAddressNo
DevicesbodyList<Device>No
ProductInstancesbodyList<ProductInstanceRef>No
LocalebodyLocaleNo
IntegrationsDatabodyDictionary<string, string>No
RefEx Parameters:
NameParameterData TypeRequiredDescription
DataformRecordDictionary<string, string>Yes
Ref Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
ValformstringYes
Address Parameters:
NameParameterData TypeRequiredDescription
StreetformstringYes
CityformstringYes
StateformstringYes
PostalCodeformstringYes
CountryformRefYes
GPSformGPSCoordinatesYes
DataformRecordDictionary<string, string>Yes
GPSCoordinates Parameters:
NameParameterData TypeRequiredDescription
LatformdoubleNo
LngformdoubleNo
Device Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
IsActiveformboolNo
ProfileformDeviceProfileNo
IntegrationsDataformRecordDictionary<string, string>No
DeviceProfile Parameters:
NameParameterData TypeRequiredDescription
UsageModeformDeviceUsageModeNo
UserInterfaceformDeviceUserInterfaceNo
WalletformRefNo
ManagedByformDeviceManagement?No
DeviceUsageMode Enum:
NameValue
ClerkServiced0
Personal1
SelfService2
Unknown-1
DeviceUserInterface Enum:
NameValue
Tablet0
Kiosk1
Default2
Unknown-1
DeviceManagement Enum:
NameValue
Partner1
Platform2
ProductInstanceRef Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
TitleformstringNo
ProductformProductReferenceNo
ProductReference Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ValueformstringNo
CategoryformstringNo
ProductProviderformRefNo
Locale Parameters:
NameParameterData TypeRequiredDescription
TimeZoneformRefNo
CurrencyformRefNo
LanguageformRefNo

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

HTTP + CSV

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

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

{"id":"String","name":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"group":{"id":"String","val":"String"},"address":{"street":"String","city":"String","state":"String","postalCode":"String","country":{"id":"String","val":"String"},"gps":{"lat":0,"lng":0},"data":{"String":"String"}},"devices":[{"id":"String","name":"String","isActive":false,"profile":{"usageMode":0,"userInterface":0,"wallet":{"id":"String","val":"String"},"managedBy":0},"integrationsData":{"String":"String"}}],"productInstances":[{"id":"String","name":"String","title":"String","product":{"id":"String","value":"String","category":"String","productProvider":{"id":"String","val":"String"}}}],"locale":{"timeZone":{"id":"String","val":"String"},"currency":{"id":"String","val":"String"},"language":{"id":"String","val":"String"}},"integrationsData":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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