Get single recipient
curl -X GET "https://onfleet.com/api/v2/recipients/VVLx5OdKvw0dRSjT2rGOc6Y*" \
-u "cd3b3de84cc1ee040bf06512d233719c:"
onfleet.recipients.get(id="VVLx5OdKvw0dRSjT2rGOc6Y*")
onfleet.recipients.get("VVLx5OdKvw0dRSjT2rGOc6Y*");
$onfleet->recipients->get("VVLx5OdKvw0dRSjT2rGOc6Y*")
{
"id": "VVLx5OdKvw0dRSjT2rGOc6Y*",
"organization": "yAM*fDkztrT3gUcz9mNDgNOL",
"timeCreated": 1455156665000,
"timeLastModified": 1455156665741,
"name": "Neiman Runtilly",
"phone": "+16505551133",
"notes": "Always orders our GSC special",
"skipSMSNotifications": false,
"metadata": []
}
{
"code": "InvalidCredentials",
"message": {
"error": 1103,
"message": "The resource requested is outside of the authenticated user's permissions scope.",
"request": "77dc37e0-72b4-481e-80e8-2f39703c4716"
}
}
{
"code": "ResourceNotFound",
"message": {
"error": 1402,
"message": "The requested resource does not exist.",
"request": "f0d18f7d-ea66-4b15-b078-0b4283e2ff25"
}
}
When attempting to access a recipient endpoint that does not belong to your organization, an error message will be thrown stating that the request is outside of your permission scope.