Betting.WebApi

<back to all web services

IssueSelfServiceDevice

Requires Authentication
The following routes are available for this service:
POST/cmd/self-service-device-betting-sessions/issue
IssueSelfServiceDevice Parameters:
NameParameterData TypeRequiredDescription
SessionIdbodystringNo
DeviceIdbodystringNo
InitialCreditbodyMoneyNo
PatronbodyPatronIdentityNo
OriginbodyOriginNo
Money Parameters:
NameParameterData TypeRequiredDescription
AmountformdecimalNo
CurrencyformstringYes
PatronIdentity Parameters:
NameParameterData TypeRequiredDescription
FullNameformstringNo
IdentificationNumberformstringNo
IdentificationDocumentTypeformIdentificationDocumentTypeNo
IdentificationDocumentType Enum:
NameValue
IdentityCard1
Passport2
Origin Parameters:
NameParameterData TypeRequiredDescription
ApplicationformBettingAppNo
IPformstringNo
OrganizationformRefExNo
RegionformRefNo
LocationGroupformRefNo
LocationformRefExNo
DeviceformRefExNo
ClerkformRefNo
BettingApp Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
VersionformstringNo
RefEx Parameters:
NameParameterData TypeRequiredDescription
DataformRecordDictionary<string, string>Yes
Ref Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
ValformstringYes

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 /cmd/self-service-device-betting-sessions/issue HTTP/1.1 
Host: api.testenv.webhop.biz 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	sessionId: String,
	deviceId: String,
	initialCredit: 
	{
		amount: 0,
		currency: String
	},
	patron: 
	{
		fullName: String,
		identificationNumber: String,
		identificationDocumentType: 1
	},
	origin: 
	{
		application: 
		{
			name: String,
			version: String
		},
		ip: String,
		organization: 
		{
			data: 
			{
				String: String
			},
			id: String,
			val: String
		},
		region: 
		{
			id: String,
			val: String
		},
		locationGroup: 
		{
			id: String,
			val: String
		},
		location: 
		{
			data: 
			{
				String: String
			},
			id: String,
			val: String
		},
		device: 
		{
			data: 
			{
				String: String
			},
			id: String,
			val: String
		},
		clerk: 
		{
			id: String,
			val: String
		}
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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