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'&full_name='JOHnDo'&type={"actorTypes":["INTERNAL_MANAGER"]}&parent_id='ac95e92c-277a-4115-9257-49de7279fdc2'&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”
code
query
string
false
CĂłdigo del dealer
commercial_name
query
string
false
Nombre comercial del dealer
level_id
query
integer(int32)
false
ID del nivel del dealer
status_code
query
string
false
CĂłdigo de estado del dealer
subchannel_name
query
string
false
Nombre del subcanal del dealer
parent_id
query
string
false
ID del dealer padre
parent_code
query
string
false
CĂłdigo del dealer padre
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'&code='123456'&commercial_name='ComercialS.A.'&level_id='3'&status_code='ACTIVE'&subchannel_name='Online'&parent_id='ac95e92c-277a-4115-9257-49de7279fdc2'&parent_code='PARENT123'\
-H "Accept: application/json"\
-H "Authorization: string"