Endpoint is used to export your visits from Repsly. System limit is 50 rows.

More Info

In every response you will receive meta variable LastTimeStamp of the last changed record in the list. Save it for future requests so you can use it as a parameter {lastTimeStamp} for every subsequent request until the response meta variable TotalCount is equal to 0, which means you have received all updates.

To get the complete list of visits, start your request with parameter {lastTimeStamp} = 0.

Response definition

Name

Type

Description

MetaCollectionResult\TotalCount

Integer

Total count of client visits

MetaCollectionResult\LastTimeStamp

Long

Timestamp of the latest visit in the list (should be used on next request)

VisitID

Integer

Unique visit ID

TimeStamp

Long

Visit timestamp

Date

Datetime

Date of visit, example: /Date(1577664000000+0000)/

RepresentativeCode

String (20)

Unique representative code (visit author)

RepresentativeName

String (80)

Representative name (visit author)

ExplicitCheckIn

Boolean

Marks an explicit check-in at client(Representative has clicked a button in themobile app)

DateAndTimeStart

Datetime

Date and time of visit start

DateAndTimeEnd

Datetime

Date and time of visit end

ClientCode

String (50)

Unique client code

ClientName

String (255)

Client name

StreetAddress

String (255)

Client street address

ZIP

String (20)

Client ZIP code

ZIPExt

String (20)

Client ZIP extension

City

String (255)

Client city

State

String (255)

Client state

Country

String (255)

Client country

Territory

String (80)

Territory name this client belongs to

LatitudeStart

Long

Latitude at visit start

LongitudeStart

Long

Longitude at visit start

LatitudeEnd

Long

Latitude at visit end

LongitudeEnd

Long

Longitude at visit end

PrecisionStart

Integer

Precision at visit start

PrecisionEnd

Integer

Precision at visit end

VisitStatusBySchedule

Integer

Status of current visit
1 - Scheduled
2 - Unscheduled

VisitEnded

Boolean

Is true if the visit has been completed by the representative.

Language