Betting.WebApi

<back to all web services

SyncPartnerSelfServiceDevice

Requires Authentication
The following routes are available for this service:
All Verbs/cmd/integrations/sync/ssd
const std = @import("std");

pub const DeviceType = enum(i32) {
    ClerkServicedKiosk = 0,
    PersonalOnline = 1,
    SelfServiceKiosk = 2,
    Unknown = -1,
};

pub const SyncPartnerSelfServiceDevice = struct {
    id: ?[]const u8 = null,
    deviceWalletId: ?[]const u8 = null,
    deviceId: ?[]const u8 = null,
    sessionId: ?[]const u8 = null,
    organizationId: ?[]const u8 = null,
    deviceType: ?DeviceType = null,
};

Zig SyncPartnerSelfServiceDevice DTOs

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/integrations/sync/ssd HTTP/1.1 
Host: api.bettor.webhop.biz 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	deviceWalletId: String,
	deviceId: String,
	sessionId: String,
	organizationId: String,
	deviceType: 0
}
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
	}
}