1. Get Cars Nearby

Curl request

$ curl 'https://api.limosys.com/cars?lat=25.0&lon=-25.0&radius=10.0' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Authorization: YOUR_API_KEY' \
    -H 'Accept: application/json' \
    -d '[{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"}]'

HTTP request

POST /cars?lat=25.0&lon=-25.0&radius=10.0 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: YOUR_API_KEY
Accept: application/json
Content-Length: 49
Host: api.limosys.com

[{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"}]

HTTP response

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 652

[{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000001"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1654120295367}]},{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000002"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1654120295367}]},{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000003"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1654120295367}]}]

HTTPie request

$ echo '[{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"}]' | http POST 'https://api.limosys.com/cars?lat=25.0&lon=-25.0&radius=10.0' \
    'Content-Type:application/json;charset=UTF-8' \
    'Authorization:YOUR_API_KEY' \
    'Accept:application/json'

Request body

[{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"}]

Request fields

Path Type Description

[]

Array

Array of affiliate IDs to filter results (Optional)

[].systemComp

String

System Company

[].compId

String

Company ID - leave null for all (Optional)

Request parameters

Parameter Description

lat

Search coordinate Latitude

lon

Search coordinate Longitude

radius

(optional) Search radius, miles (default: 10)

limit

(optional) Results limit (default: 10)

carClass

(optional) Search car class only

groupId

(optional) Search group of companies only (see /groups API)

Response body

[{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000001"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1654120295367}]},{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000002"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1654120295367}]},{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000003"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1654120295367}]}]

Response fields

Path Type Description

[]

Array

Array of cars nearby of given coordinate

[].id.carId

String

Internal Car ID

[].id.comp.systemComp

String

System Company of the car

[].id.comp.compId

String

Company ID of the car

[].make

String

Make of the car

[].model

String

Model of the car

[].year

Number

Year of the car

[].carClass

String

Car class of the car (e.g. 'SD' - sedan)

[].color

String

Color of the car

[].coords[]

CachedCoord[]

Cached coordinates

2. Get Affiliate Group (for cars)

Curl request

$ curl 'https://api.limosys.com/group/Group%20ID' -i -X GET \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Authorization: YOUR_API_KEY' \
    -H 'Accept: application/json'

HTTP request

GET /group/Group%20ID HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: YOUR_API_KEY
Accept: application/json
Host: api.limosys.com

HTTP response

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 177

{"id":"Group ID","comps":[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]}

HTTPie request

$ http GET 'https://api.limosys.com/group/Group%20ID' \
    'Content-Type:application/json;charset=UTF-8' \
    'Authorization:YOUR_API_KEY' \
    'Accept:application/json'

Path parameters

Table 1. /group/{GROUP_ID}
Parameter Description

GROUP_ID

Group ID

Request body

Response body

{"id":"Group ID","comps":[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]}

3. Save Affiliate Group (for cars)

Curl request

$ curl 'https://api.limosys.com/group/Group%20ID' -i -X PUT \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Authorization: YOUR_API_KEY' \
    -H 'Accept: application/json' \
    -d '[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]'

HTTP request

PUT /group/Group%20ID HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: YOUR_API_KEY
Accept: application/json
Content-Length: 151
Host: api.limosys.com

[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]

HTTP response

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY

HTTPie request

$ echo '[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]' | http PUT 'https://api.limosys.com/group/Group%20ID' \
    'Content-Type:application/json;charset=UTF-8' \
    'Authorization:YOUR_API_KEY' \
    'Accept:application/json'

Path parameters

Table 1. /group/{GROUP_ID}
Parameter Description

GROUP_ID

Group ID

Request body

[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]

Request fields

Path Type Description

[]

Array

Array of Affiliate IDs (COMP_ID and SYSTEM_COMP)

[].systemComp

String

System company

[].compId

String

Company ID

Response body