The app makes a POST request to the URL:
POST {url}
interface ConnectData {
id: string;
model: string;
systemName: string;
systemVersion: string;
}
HTTP 200
interface ConnectSuccessResponse {
token: string;
url: string;
header?: string;
message?: string[];
}
HTTP 403
interface ConnectFailedResponse {
error: string;
info?: string[];
}
POST {url} Authorization: Token {token}
interface ScanData {
code: string;
serviceId?: number;
}
HTTP 200
interface ScanSuccessResponse {
success: boolean;
header: string;
message?: string[];
color?: string;
backgroundColor?: string;
services?: {
name: string;
id: number;
redeemed: boolean;
}[];
}