Commercial Structure
Operations related to commercial structure
Parameters
| Name |
In |
Type |
Required |
Description |
| id |
path |
string |
true |
Unique identifier of the commercial structure |
| Authorization |
header |
string |
true |
Bearer token |
Request example
1
2
3
4
5
|
curl -X GET https://dealers.masstack.com/v2/commercial-structure/{id} \
-H "Accept: application/json" \
-H "Authorization: string"
|
Parameters
| Name |
In |
Type |
Required |
Description |
| Authorization |
header |
string |
true |
Bearer token |
| body |
body |
CommercialStructureRequest |
true |
Commercial Structure request body |
1
2
3
4
5
6
7
8
|
{
"subchannel_code": "AC",
"subchannel_name": "Atención al Cliente",
"channel_name": "No exclusivo",
"superchannel_name": "El supercanal",
"masterchannel_name": "No exclusivo",
"masterchannel_type": "El mastercanal"
}
|
| Name |
Type |
Required |
Description |
| subchannel_code |
string |
true |
Subchannel code |
| subchannel_name |
string |
true |
Subchannel name |
| channel_name |
string¦null |
true |
Channel name |
| superchannel_name |
string¦null |
true |
Superchannel name |
| masterchannel_name |
string |
true |
MasterChannel name |
| masterchannel_type |
string¦null |
true |
MasterChannel type |
Request example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
curl -X POST https://dealers.masstack.com/v2/commercial-structure \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: string" \
--data-raw "{
'subchannel_code': 'AC',
'subchannel_name': 'Atención al Cliente',
'channel_name': 'No exclusivo',
'superchannel_name': 'El supercanal',
'masterchannel_name': 'No exclusivo',
'masterchannel_type': 'El mastercanal'
}"
|
Parameters
| Name |
In |
Type |
Required |
Description |
| id |
path |
string |
true |
Unique identifier of the commercial structure |
| Authorization |
header |
string |
true |
Bearer token |
| body |
body |
CommercialStructureRequest |
true |
Commercial Structure request body |
1
2
3
4
5
6
7
8
|
{
"subchannel_code": "AC",
"subchannel_name": "Atención al Cliente",
"channel_name": "No exclusivo",
"superchannel_name": "El supercanal",
"masterchannel_name": "No exclusivo",
"masterchannel_type": "El mastercanal"
}
|
| Name |
Type |
Required |
Description |
| subchannel_code |
string |
true |
Subchannel code |
| subchannel_name |
string |
true |
Subchannel name |
| channel_name |
string¦null |
true |
Channel name |
| superchannel_name |
string¦null |
true |
Superchannel name |
| masterchannel_name |
string |
true |
MasterChannel name |
| masterchannel_type |
string¦null |
true |
MasterChannel type |
Request example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
curl -X PUT https://dealers.masstack.com/v2/commercial-structure/{id} \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: string" \
--data-raw "{
'subchannel_code': 'AC',
'subchannel_name': 'Atención al Cliente',
'channel_name': 'No exclusivo',
'superchannel_name': 'El supercanal',
'masterchannel_name': 'No exclusivo',
'masterchannel_type': 'El mastercanal'
}"
|
Parameters
| Name |
In |
Type |
Required |
Description |
| id |
path |
string |
true |
Unique identifier of the commercial structure |
| Authorization |
header |
string |
true |
Bearer token |
Request example
1
2
3
4
5
|
curl -X DELETE https://dealers.masstack.com/v2/commercial-structure/{id} \
-H "Accept: application/json" \
-H "Authorization: string"
|