Get single destination

Get single destination

curl -X GET "https://onfleet.com/api/v2/destinations/0i~RR0SUIculbRFsIse6MENg" \
       -u "cd3b3de84cc1ee040bf06512d233719c:"
onfleet.destinations.get(id="0i~RR0SUIculbRFsIse6MENg")
onfleet.destinations.get("0i~RR0SUIculbRFsIse6MENg");
$onfleet->destinations->get("0i~RR0SUIculbRFsIse6MENg");
{
  "id": "0i~RR0SUIculbRFsIse6MENg",
  "timeCreated": 1455156664000,
  "timeLastModified": 1455156664697,
  "location": [
    -122.4052935,
    37.7721234
  ],
  "address": {
    "apartment": "",
    "state": "California",
    "postalCode": "94103",
    "country": "United States",
    "city": "San Francisco",
    "street": "Brannan Street",
    "number": "888"
  },
  "notes": "",
  "metadata": []
}
{
  "code": "InvalidCredentials",
  "message": {
    "error": 1103,
    "message": "The resource requested is outside of the authenticated user's permissions scope.",
    "request": "ff5e8843-27d7-4def-a87a-bfba5d11c11c"
  }
}

When attempting to access a destination endpoint that does not belong to your organization, an error message will be thrown stating that the request is outside of your permission scope.