Returns a list of actors that have a relationship with the specified dealer
GET/dealers/{id}/actors
Parameters
Name
In
Type
Required
Description
id
path
string
true
Dealer id
limit
query
integer(int64)
false
Limit of results in the response
offset
query
integer(int64)
false
Offset applied to results for pagination
sort
query
string
false
The fields by which the results will be sorted. It can be a list of fields separated by commas. A suffix must be added: * “:asc” to indicate an ascending order. * “:desc” to indicate a descending order.
relation_type
query
string
false
The type of relation between the actors and the dealers. It can be one of the following values: * “DIRECT” * “INDIRECT” * “DIRECT_AND_INDIRECT”
Authorization
header
string
true
Bearer token
Enumerated Values
Property
Values
relation_type
one of [DIRECT_AND_INDIRECT, DIRECT, INDIRECT]
Request example
1
2
3
4
5
curl -X GET https://dealers.masstack.com/v2/dealers/{id}/actors?limit='20'&offset='0'&sort='name:asc,id:desc'&relation_type='DIRECT_AND_INDIRECT'\
-H "Accept: application/json"\
-H "Authorization: string"
Get dealers by billing, obtain all the dealers that have a relation with the queried billing dealer
GET/dealers/billing/{id}
Parameters
Name
In
Type
Required
Description
id
path
string
true
Dealer id
Authorization
header
string
true
Bearer token
limit
query
integer(int64)
false
Limit of results in the response
offset
query
integer(int64)
false
Offset applied to results for pagination
sort
query
string
false
The fields by which the results will be sorted. It can be a list of fields separated by commas. A suffix must be added: * “:asc” to indicate an ascending order. * “:desc” to indicate a descending order.
Request example
1
2
3
4
5
curl -X GET https://dealers.masstack.com/v2/dealers/billing/{id}?limit='20'&offset='0'&sort='name:asc,id:desc'\
-H "Accept: application/json"\
-H "Authorization: string"
Get dealers by code, obtain all the dealers that have that code
GET/dealers
Parameters
Name
In
Type
Required
Description
Authorization
header
string
true
Bearer token
code
query
string
true
Dealer code
limit
query
integer(int64)
false
Limit of results in the response
offset
query
integer(int64)
false
Offset applied to results for pagination
sort
query
string
false
The fields by which the results will be sorted. It can be a list of fields separated by commas. A suffix must be added: * “:asc” to indicate an ascending order. * “:desc” to indicate a descending order.