Trendsic Platform Service

<back to all web services

CustomersInLine

The following routes are available for this service:
GET/v1/CustomersInLine/{LocationId}
GET/v1/CustomersInLine
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CustomerInLineObject:
    id: Optional[str] = None
    name: Optional[str] = None
    full_name: Optional[str] = None
    sign_in_time: datetime.datetime = datetime.datetime(1, 1, 1)
    adjusted_sign_in_time: datetime.datetime = datetime.datetime(1, 1, 1)
    status: int = 0
    task_time: int = 0
    completed: bool = False
    send_reminders: bool = False
    completed_time: datetime.datetime = datetime.datetime(1, 1, 1)
    employee_id: Optional[str] = None
    employee: Optional[str] = None
    line: Optional[str] = None
    description: Optional[str] = None
    service_id: Optional[str] = None
    station_id: Optional[str] = None
    station_name: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CustomersInLineResponse:
    response_status: Optional[ResponseStatus] = None
    customers: List[CustomerInLineObject] = field(default_factory=list)


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CustomersInLine:
    api_key: Optional[str] = None
    location_id: Optional[str] = None
    client_is_loading: bool = False

Python CustomersInLine DTOs

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.

GET /v1/CustomersInLine/{LocationId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Customers":[{"Id":"00000000000000000000000000000000","Name":"String","FullName":"String","SignInTime":"0001-01-01T00:00:00.0000000","AdjustedSignInTime":"0001-01-01T00:00:00.0000000","Status":0,"TaskTime":0,"Completed":false,"SendReminders":false,"CompletedTime":"0001-01-01T00:00:00.0000000","EmployeeId":"00000000000000000000000000000000","Employee":"String","Line":"String","Description":"String","ServiceId":"00000000000000000000000000000000","StationId":"00000000000000000000000000000000","StationName":"String"}]}