HomeRecipesAPI ReferenceChangelogDiscussions
Log In
Discussions

Discussions

Ask a Question
Back to All

Endpoints

I'm having trouble retrieving the last 5 workorders for a store number.

Will you point me in the right direction?


payload = {
"Entity": "WorkOrder",
"QueryExpression": {
"Conditions": [
{"Field": "storeNumber", "Operator": "Equal", "Value": store_number},
],
"Limit": 5
}
}


Response Status Code: 400
Response Text: {"ErrorMessage":"Object reference not set to an instance of an object.","ErrorCode":"BUSINESS_LOGIC_ERROR","TimeStamp":"2024-10-15T03:28:44.7316793Z"}
Failed to fetch work orders: 400
127.0.0.1 - - [14/Oct/2024 22:28:44] "POST /sms HTTP/1.1" 500 -