Events
Create Field Event
Record a field sales event such as a check-in or check-out at an outlet. Only event, event_timestamp, and user_id are required. All other fields are optional.
Fields
| Payload Field | Reference Field | Type |
|---|---|---|
| event | determines tcpl_checkIn__c/tcpl_checkOut__c | Enum |
| event_timestamp | tcpl_checkIn__c or tcpl_checkOut__c | DateTime (ISO 8601 UTC) |
| user_id | tcpl_salesRep__c | String |
| outlet_id | tcpl_beatPlanOutlet__c | String |
| latitude | tcpl_GeolocationCaptured__Latitude__s | String (Decimal 18,15) |
| longitude | tcpl_GeolocationCaptured__Longitude__s | String (Decimal 18,15) |
| visit_type | tcpl_visitType__c | Picklist |
| geo_adherence | tcpl_Geo_Adherence__c | Boolean |
| beat_id | tcpl_Beat_Master__c | String |
| outlet_geo_change | tcpl_OultetGeoChange__c | String |
IMPORTANT: Latitude and Longitude must be STRINGS
Send coordinates as quoted strings to preserve full decimal precision.
- Correct: "latitude": "28.613929500000000"
- Incorrect: "latitude": 28.613929500000000 (precision lost due to float conversion)
Visit Type Allowed Values (case-sensitive)
- Joint Visit
- Visit
- Sub DB Check-In
- Pragati DB Check-In
- RPD DB Check-In
- DB Check-In
- Super DB Check-In
- Jump call
Example Request
{
"event": "CHECK_IN",
"event_timestamp": "2026-02-12T08:00:55.944Z",
"user_id": "+91 2222222222",
"outlet_id": "a1JTE000000cU1w2AE",
"latitude": "13.0378136",
"longitude": "77.6167799",
"visit_type": "Visit",
"geo_adherence": false,
"beat_id": "a10TE000000fQeTYAU",
"outlet_geo_change": "RequestBypass"
}
post/api/v1/events
Request body
Example request
{
"beat_id": "a10TE000000fQeTYAU",
"event": "CHECK_IN",
"event_timestamp": "2026-02-12T08:00:55.944Z",
"geo_adherence": false,
"latitude": "13.0378136",
"longitude": "77.6167799",
"outlet_geo_change": "RequestBypass",
"outlet_id": "a1JTE000000cU1w2AE",
"user_id": "+91 2222222222",
"visit_type": "Visit"
}Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.