Improve your Skyline experience
You're using a browser that skyline.benevity.org does not support. Try Chrome, Edge, Safari or Firefox for a better experience.

# Get Location Details

Using this location services, you can get a specific location detail by id.

# Building your request

You can get a locations's details by passing the exact value of their locationId in the /locations/{id} endpoint. In addition, ensure that your request has been authenticated by passing your JWT access_token as the Authorization header.

# Sample request:

In our example, we're going to be retrieving location based on the provided id.

# Sample response:

{
  "data":
  {
    "type": "location",
    "attributes": {
      "id": "1009843199016960000",
      "name": "Benevity",
      "address": {
        "addressLine": "611 Meredith Rd",
        "country": "Canada",
        "district": "Alberta",
        "locality": "Calgary",
        "postalCode": "T2E 2W5",
        "geoCoordinate": {
          "latitude": 0,
          "longitude": 0
        }
      },
      "phoneNumber": "+14035555556",
      "referenceId": "810e95f6-de45-478a-bc8c-3d94379fe002",
      "tags": [],
      "contacts": [
        {
          "id": "1009902601988210688",
          "contactId": "1009902487177527296",
          "locationId": "1009843199016960000",
          "isPrimary": false,
          "firstName": "FirstName",
          "lastName": "LastName",
          "emailAddress": "EmailAddress@email.com"
        },
        {
          "id": "1012940730538131456",
          "contactId": "1012940468872282112",
          "locationId": "1009843199016960000",
          "isPrimary": true,
          "firstName": "primary_FirstName",
          "lastName": "primary_LastName",
          "emailAddress": "test@test.com"
        }
      ]
    }
  }
}

# Response Details:

Many of the response attributes are self-descriptive, but some of them may require a bit more clarity:

  • address - Address of the Location.
  • contacts - Contacts of the Location including the primary contact.
  • tags - List of Tags assigned to this Location.
  • referenceId - An unique Id for the Location, this value is supplied by the client and can be used to reference existing Id used in the client's existing systems.

# 🚀 ☀️ ⭐️ Congratulations! ⭐️ ☀️ 🚀

You have now obtained all of the information for this location, to help your users drive further goodness in the world!