Locations

Get Locations

GET https://api.binity.io/v1/companies/:uuid/locations

Get all locations of that specific company.

Headers

Name
Type
Description

Authorization

string

Bearer Token

{
  "locations":[
    {
      "uuid":"f0634f09-e8d4-48dc-93ea-717aae9a47ca",
      "name":"Stuttgart",
      "lat":"48.76288512",
      "lng":"9.26070838",
      "street_name":"Am Mittelkai",
      "street_number":"23",
      "zip_code":"70327",
      "city":"Stuttgart",
      "state":"Baden-Württemberg",
      "country":"DE",
      "preformatted":"Am Mittelkai 23, 70327 Stuttgart, Germany",
      "created_at":"2020-06-08T10:16:16.508+02:00",
      "updated_at":"2021-03-16T06:56:42.764+01:00"
    }
  ],
  "meta":{
    "pagination":{
      "per_page":25,
      "total_pages":1,
      "total_objects":4,
      "links":{
        "first":"/v1/companies/f0634f09-e8d4-48dc-93ea-717aae9a47ca/locations?page=1",
        "last":"/v1/companies/f0634f09-e8d4-48dc-93ea-717aae9a47ca/locations?page=1"
      }
    }
  }
}

Create Location

POST https://api.binity.io/v1/companies/:uuid/locations

Create a new location for that company.

Headers

Name
Type
Description

Authorization

string

Bearer Token

Request Body

Name
Type
Description

name

string

Name of the location

lat

string

Coordinates (Latitude)

lng

string

Coordinates (Longitude)

Get Location

GET https://api.binity.io/v1/companies/:uuid/locations/:location_uuid

Get data of a single location.

Headers

Name
Type
Description

Authorization

string

Bearer Token

Update Location

PATCH https://api.binity.io/v1/companies/:uuid/locations/:location_uuid

Update data of a single location.

Headers

Name
Type
Description

Authorization

string

Bearer Token

Delete Location

DELETE https://api.binity.io/v1/companies/:uuid/locations/:location_uuid

Delete a single location.

Headers

Name
Type
Description

Authorization

string

Bearer Token

Last updated

Was this helpful?