Download OpenAPI specification:Download
API for managing activity storecheck records
Retrieve a list of all activity storecheck records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string",
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new activity storecheck record with the provided data
| client required | string Client identifier |
| rep required | string Sales representative identifier |
| template required | string Storecheck template identifier |
| date required | string <date-time> Date and time of the storecheck activity |
object | |
Array of objects | |
| status | string Default: "draft" Enum: "draft" "submitted" "approved" "rejected" Status of the storecheck activity |
| notes | string Additional notes |
{- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string",
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific activity storecheck record by its ID
| id required | string Activity storecheck record ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string",
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing activity storecheck record with new data
| id required | string Activity storecheck record ID |
| client required | string Client identifier |
| rep required | string Sales representative identifier |
| template required | string Storecheck template identifier |
| date required | string <date-time> Date and time of the storecheck activity |
object | |
Array of objects | |
| status | string Default: "draft" Enum: "draft" "submitted" "approved" "rejected" Status of the storecheck activity |
| notes | string Additional notes |
{- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string",
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Delete an existing activity storecheck record
| id required | string Activity storecheck record ID |
{- "success": true,
- "message": "Activity storecheck record deleted successfully"
}