| All Verbs | /cmd/integrations/sync/ssd |
|---|
package dtos
type DeviceType int
const (
DeviceTypeClerkServicedKiosk DeviceType = 0
DeviceTypePersonalOnline DeviceType = 1
DeviceTypeSelfServiceKiosk DeviceType = 2
DeviceTypeUnknown DeviceType = -1
)
type SyncPartnerSelfServiceDevice struct {
Id *string `json:"id,omitempty"`
DeviceWalletId *string `json:"deviceWalletId,omitempty"`
DeviceId *string `json:"deviceId,omitempty"`
SessionId *string `json:"sessionId,omitempty"`
OrganizationId *string `json:"organizationId,omitempty"`
DeviceType DeviceType `json:"deviceType,omitempty"`
}
Go SyncPartnerSelfServiceDevice DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}