Skip to main content

View / Create / Edit / Delete

Get checklist by id#

Return Checklist object

Examples

curl https://api.qvalon.com/v1/objects/checklists/92803 \
--header 'Authorization: Bearer <your_token>'
200 OK
[
{
"id": 92803,
"templateId": 629,
"resolverId": 1602,
"resolveDate": 1654560000000,
"finishDate": null,
"shopLocality": "Basketball shop",
"shopSap": "111",
"shopLatitude": null,
"shopLongitude": null,
"shopId": 669,
"templateName": "Equipment",
"shopName": "Basketball shop",
"grade": 0,
"newGrade": null,
"statusName": "PLANNING",
"resolverFio": "Lebron James",
"resolverRole": "Region manager",
"comment": null,
"lastModifiedAt": 1654585502,
"templateCategoryId": null,
"templateCategoryName": null,
"incidentsAmount": "",
"fixedIncidentsAmount": "",
"duration": "",
"type": "unplan",
"displayStatusName": "Planned",
"needReview": false,
"inReview": false,
"reviewerId": null,
"startDate": null,
"countAnswerIsNo": 0,
"countAnswerNoSave": 0,
"actualFinishDate": 1654560000000
}
]

Get checklists with questions and attachments#

Returns checklists matching the query params alongside with questions and attachments.

Request parameters:

Request ParameterTypeDescriptionRequired
var_checklist_idsInteger arrayThe array of checklist IDs you wish to export. Make sure array braces {} are url encoded.false
var_template_idsInteger arrayThe array of checklist template IDs. Make sure array braces {} are url encoded.false
var_resolve_date_fromTimestamp without time zoneThe start date for completing the checklist, formatted as a timestamp without a time zone.false
var_resolve_date_toTimestamp without time zoneThe end date for completing the checklist, formatted as a timestamp without a time zone.false
var_last_modified_fromTimestamp without time zoneThe start date for the last modification of the checklist, formatted as a timestamp without a time zone.false
var_last_modified_toTimestamp without time zoneThe end date for the last modification of the checklist, formatted as a timestamp without a time zone.false

Examples

curl https://api.qvalon.com/v1/connector/rpc/checklist_export_with_photos \
--header 'Authorization: Bearer <your_token>'
200 OK
[
{
"checklist_id": 97924,
"last_modified": "2024-05-21T00:27:00.905924",
"resolve_date": "2024-07-16",
"checklist_status": "FIXED",
"checklist_start_time": "2024-05-21T12:03:06.87",
"checklist_finish_time": "2024-05-21T20:26:54.434",
"checklist_distance_in_meters": 18,
"checklist_grade": 5,
"checklist_percent_grade": 100,
"checklist_result_text": null,
"template_id": 631,
"template_name": "Daily Checklist",
"shop_id": 664,
"shop_sap": "351",
"shop_locality": "Sample Store",
"cluster_id": 85,
"cluster_name": "Los Angeles",
"division_id": 28,
"division_name": "United States",
"resolver_id": 1658,
"resolver_login": "sample@example.com",
"resolver_name": "Adam Smith",
"resolver_position": "Store Manager",
"attributes": null,
"categories": [
{
"questions": [
{
"answer_id": 359226,
"attachments": [
{
"url": "https://example.qvalon.com/files/s1/example/sample.jpg",
"source": "CAMERA",
"addedBy": "SUPERVISOR"
}
],
"question_name": "Please rate the cleanliness of the store.",
"days_for_action": 1,
"question_weight": 150,
"comments_director": null,
"comments_reviewer": null,
"comments_supervisor": null,
"question_answer_text": "5",
"question_result_grade": 750
},
{
"answer_id": 359252,
"attachments": [
{
"url": "https://example.qvalon.com/files/s1/example/sample2.jpg",
"source": "CAMERA",
"addedBy": "SUPERVISOR"
}
],
"question_name": "All trade equipment is in working condition.",
"days_for_action": 1,
"question_weight": 150,
"comments_director": null,
"comments_reviewer": null,
"comments_supervisor": null,
"question_answer_text": "Yes",
"question_result_grade": 750
}
],
"category_id": 4132,
"category_name": "Main process",
"category_grade": 5,
"category_max_grade": 5,
"category_result_text": "Passed",
"category_percent_grade": 100
}
]
}
]

Create checklists#

Return list of Checklist objects

Request body:

AttributeTypeDescriptionNullable
resolverIdIntegerIdentifier of resolverfalse
shopIdIntegerIdentifier of storefalse
templateIdIntegerIdentifier of templatefalse
resolveDateDatePlan datefalse

Examples

curl --request POST https://api.qvalon.com/v1/checklist/create \
--header 'Authorization: Bearer <your_token>' \
-d '[{"resolverId":1608,"shopId":668,"templateId":629,"resolveDate":"2022-08-11"}]'
200 OK
[
{
"id": 92803,
"templateId": 629,
"resolverId": 1602,
"resolveDate": 1654560000000,
"finishDate": null,
"shopLocality": "Shoes shop",
"shopSap": "111",
"shopLatitude": null,
"shopLongitude": null,
"shopId": 669,
"templateName": "Shoes sizes",
"shopName": "Shoes shop",
"grade": 0,
"newGrade": null,
"statusName": "PLANNING",
"resolverFio": "Mason Mount",
"resolverRole": "Region manager",
"comment": null,
"lastModifiedAt": 1654585502,
"templateCategoryId": null,
"templateCategoryName": null,
"incidentsAmount": "",
"fixedIncidentsAmount": "",
"duration": "",
"type": "unplan",
"displayStatusName": "Planned",
"needReview": false,
"inReview": false,
"reviewerId": null,
"startDate": null,
"countAnswerIsNo": 0,
"countAnswerNoSave": 0,
"actualFinishDate": 1654560000000
}
]

Delete checklist by id#

Delete checklist by id

Examples

curl --request DELETE https://api.qvalon.com/v1/checklist/id?hint=simple text hint \
--header 'Authorization: Bearer <your_token>'
200 OK
{}

Get checklists ids#

Get checklists ids by template id.

Request parameters:

Request ParameterTypeDescriptionRequired
templateIdIntegerIdentifier of checklist templatefalse
shopIdIntegerIdentifier of shopfalse
fromDateISO DateTimeDate & Time in ISO DateTime format. Example: 2024-01-01T00:00:00.000Zfalse
toDateISO DateTimeDate & Time in ISO DateTime format. Example: 2024-01-01T00:00:00.000Zfalse

Response

Returns an array of checklsit IDs

Examples

curl https://api.qvalon.com/v1/checklist/find \
--header 'Authorization: Bearer <your_token>' \
--header 'Content-Type: application/json'
200 OK
[
89566,
89565,
89575,
89574,
89573,
89572,
89571,
89570
]

Get available checklists for user#

Get available checklists for user by user id.

Request parameters:

Request ParameterTypeDescriptionRequired
userIdIntegerIdentifier of usertrue

Response

Returns a list of Checklists

Examples

curl https://api.qvalon.com/v1/checklist/getAvailableChecklists \
--header 'Authorization: Bearer <your_token>'
200 OK
[
{
"id": 92999,
"comment": null,
"numberFixedAnswers": 0,
"numberToFixAnswers": 0,
"resolverId": 1,
"lastModifiedAt": 1656893482133,
"resolveDate": "2022-07-03",
"finishDate": null,
"statusName": "MISSED",
"grade": 0,
"percentGrade": null,
"newGrade": null,
"newPercentGrade": null,
"resolvedIp": null,
"matchedWithRealIp": null,
"answers": [],
"startLongitude": null,
"startLatitude": null,
"endLongitude": null,
"endLatitude": null,
"matchedWithCoor": null,
"distanceInMeters": null,
"type": "unplan",
"fillupType": null,
"startTime": 1656857669437,
"startTimeOffset": "3",
"finishTimeOffset": null,
"createDate": null,
"closedBySystem": null,
"needReview": false,
"inReview": false,
"reviewerIds": [],
"ruleId": null,
"authorId": 1,
"naMode": null,
"finishDateInUTC": null,
"startTimeInUTC": "2022-07-03T14:14:29.437Z",
"templateName": "Milk delivery",
"actualFinishDate": "2022-07-03T00:00:00.000Z"
}
]