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.
Authorization
header
string
true
Bearer token
Request example
1
2
3
4
5
curl -X GET https://dealers.masstack.com/v2/actors?code='123456'&email='vvvv.ssss@masorange.com'&type={"actorTypes":["INTERNAL_MANAGER"]}&parentId='123457'&limit='20'&offset='0'&sort='name:asc,id:desc'\
-H "Accept: application/json"\
-H "Authorization: string"
Get dealers that have a relationship with an actor
GET/actors/{id}/dealers
Parameters
Name
In
Type
Required
Description
id
path
string
true
Actor 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/actors/{id}/dealers?limit='20'&offset='0'&sort='name:asc,id:desc'&relation_type='DIRECT_AND_INDIRECT'\
-H "Accept: application/json"\
-H "Authorization: string"