Skip to content

Accept & Decline

Use these endpoints to accept or decline service requests that have been broadcast to your organization.

PUT https://hub.vectorcare.com/openapi/v2.0/requests/{request_id}/accept/
{
"response_notes": "We can accommodate this request. ETA 15 minutes."
}
FieldTypeDescription
response_notesstringOptional notes for the requester (max 450 characters)
Terminal window
curl -X PUT "https://hub.vectorcare.com/openapi/v2.0/requests/KP-ABCD1234/accept/" \
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..." \
-H "Content-Type: application/json" \
-d '{
"response_notes": "Confirmed. Unit 42 dispatched."
}'
{
"response_notes": "Confirmed. Unit 42 dispatched."
}
PUT https://hub.vectorcare.com/openapi/v2.0/requests/{request_id}/decline/
{
"response_notes": "No available units in that area at this time."
}
FieldTypeDescription
response_notesstringOptional notes explaining the decline (max 450 characters)
Terminal window
curl -X PUT "https://hub.vectorcare.com/openapi/v2.0/requests/KP-ABCD1234/decline/" \
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..." \
-H "Content-Type: application/json" \
-d '{
"response_notes": "Outside service area."
}'
{}
ActionWebhook You’ll ReceiveRequest Status
AcceptBROADCAST_ACCEPTEDASSIGNED
DeclineBROADCAST_DECLINEDUNAVAILABLE
No responseBROADCAST_EXPIREDUNAVAILABLE

After accepting, begin dispatching and sending state updates and location updates.

StatusCauseResolution
401Invalid/expired tokenRefresh your access token
403Request not available to youMay already be assigned or canceled
404Request not foundVerify the request_id
400Invalid request bodyCheck response_notes length