company 10 méthodes
Méthode
Description
company.get
field
ids
id
term
V1 : 03/2023 Return companies based on criteria
company.get
field
ids
id
term
Paramètres
| Nom | Type | Requis |
|---|---|---|
field |
array | — |
ids |
array | — |
id |
integer|string | — |
term |
string | — |
Exemple
{
"method": "company.get",
"field": [],
"ids": [],
"id": 12345,
"term": "..."
}
company.del
companyId
company.del
companyId
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
Exemple
{
"method": "company.del",
"companyId": 12345
}
company.add
fields
fromHubspot
company.add
fields
fromHubspot
Paramètres
| Nom | Type | Requis |
|---|---|---|
fields |
array | ✓ |
fromHubspot |
boolean | — |
Exemple
{
"method": "company.add",
"fields": [],
"fromHubspot": true
}
company.upd
companyId
fields
fromHubspot
company.upd
companyId
fields
fromHubspot
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
fields |
array | ✓ |
fromHubspot |
boolean | — |
Exemple
{
"method": "company.upd",
"companyId": 12345,
"fields": [],
"fromHubspot": true
}
company.getChrildren
companyId
company.getChrildren
companyId
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
Exemple
{
"method": "company.getChrildren",
"companyId": 12345
}
company.getByCountry
country
company.getByCountry
country
Paramètres
| Nom | Type | Requis |
|---|---|---|
country |
string | ✓ |
Exemple
{
"method": "company.getByCountry",
"country": "..."
}
company.getDelegation
companyId
V1 : 03/2023 For a company, find delegations
company.getDelegation
companyId
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
Exemple
{
"method": "company.getDelegation",
"companyId": 12345
}
company.addDelegation
companyId
marketId
company.addDelegation
companyId
marketId
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
marketId |
integer | ✓ |
Exemple
{
"method": "company.addDelegation",
"companyId": 12345,
"marketId": 12345
}
company.delDelegation
delegationId
company.delDelegation
delegationId
Paramètres
| Nom | Type | Requis |
|---|---|---|
delegationId |
integer | ✓ |
Exemple
{
"method": "company.delDelegation",
"delegationId": 12345
}
company.updHubspotId
companyId
hubspotId
company.updHubspotId
companyId
hubspotId
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
hubspotId |
integer | ✓ |
Exemple
{
"method": "company.updHubspotId",
"companyId": 12345,
"hubspotId": 12345
}
market 9 méthodes
Méthode
Description
market.add
companyId
market
type
parentId
market.add
companyId
market
type
parentId
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
market |
string | ✓ |
type |
string | ✓ |
parentId |
integer | — |
Exemple
{
"method": "market.add",
"companyId": 12345,
"market": "...",
"type": "...",
"parentId": 12345
}
market.del
marketId
market.del
marketId
Paramètres
| Nom | Type | Requis |
|---|---|---|
marketId |
integer | ✓ |
Exemple
{
"method": "market.del",
"marketId": 12345
}
market.getTree
companyId
market.getTree
companyId
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
Exemple
{
"method": "market.getTree",
"companyId": 12345
}
market.getDistributor
market
market.getDistributor
market
Paramètres
| Nom | Type | Requis |
|---|---|---|
market |
string | — |
Exemple
{
"method": "market.getDistributor",
"market": "..."
}
market.searchToAddChildrenMarket
search
companyId
market
market.searchToAddChildrenMarket
search
companyId
market
Paramètres
| Nom | Type | Requis |
|---|---|---|
search |
string | ✓ |
companyId |
integer | ✓ |
market |
string | ✓ |
Exemple
{
"method": "market.searchToAddChildrenMarket",
"search": "...",
"companyId": 12345,
"market": "..."
}
market.searchParentToAddChildrenMarket
search
companyId
market
type
market.searchParentToAddChildrenMarket
search
companyId
market
type
Paramètres
| Nom | Type | Requis |
|---|---|---|
search |
string | ✓ |
companyId |
integer | ✓ |
market |
string | ✓ |
type |
string | ✓ |
Exemple
{
"method": "market.searchParentToAddChildrenMarket",
"search": "...",
"companyId": 12345,
"market": "...",
"type": "..."
}
market.getDistributorMarket
market
market.getDistributorMarket
market
Paramètres
| Nom | Type | Requis |
|---|---|---|
market |
string | ✓ |
Exemple
{
"method": "market.getDistributorMarket",
"market": "..."
}
market.switchDistributorMarket
attachToMarketId
dealerMarketId
market.switchDistributorMarket
attachToMarketId
dealerMarketId
Paramètres
| Nom | Type | Requis |
|---|---|---|
attachToMarketId |
integer | ✓ |
dealerMarketId |
array | ✓ |
Exemple
{
"method": "market.switchDistributorMarket",
"attachToMarketId": 12345,
"dealerMarketId": []
}
market.control
market.control
Paramètres
Pas de paramètre nécessaire
Exemple
{
"method": "market.control"
}
token 1 méthode
Méthode
Description
token.getUser
token.getUser
Paramètres
Pas de paramètre nécessaire
Exemple
{
"method": "token.getUser"
}
user 11 méthodes
Méthode
Description
user.get
field
ids
id
term
V1 : 03/2023 Return companies based on criteria
user.get
field
ids
id
term
Paramètres
| Nom | Type | Requis |
|---|---|---|
field |
array | — |
ids |
array | — |
id |
integer|string | — |
term |
string | — |
Exemple
{
"method": "user.get",
"field": [],
"ids": [],
"id": 12345,
"term": "..."
}
user.detail
userId
getAuth0
getSendgrid
user.detail
userId
getAuth0
getSendgrid
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
getAuth0 |
boolean | — |
getSendgrid |
boolean | — |
Exemple
{
"method": "user.detail",
"userId": 12345,
"getAuth0": true,
"getSendgrid": true
}
user.add
firstname
lastname
lang
companyId
email
role
myTrinnovAccess
user.add
firstname
lastname
lang
companyId
email
role
myTrinnovAccess
Paramètres
| Nom | Type | Requis |
|---|---|---|
firstname |
string | ✓ |
lastname |
string | ✓ |
lang |
string | ✓ |
companyId |
integer | ✓ |
email |
string | ✓ |
role |
string | ✓ |
myTrinnovAccess |
string | ✓ |
Exemple
{
"method": "user.add",
"firstname": "...",
"lastname": "...",
"lang": "...",
"companyId": 12345,
"email": "...",
"role": "...",
"myTrinnovAccess": "..."
}
user.upd
userId
fields
fromHubspot
user.upd
userId
fields
fromHubspot
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
fields |
array | ✓ |
fromHubspot |
boolean | — |
Exemple
{
"method": "user.upd",
"userId": 12345,
"fields": [],
"fromHubspot": true
}
user.logout
removeSwitch
V1 : 03/2023 On logout, remove auth_login
user.logout
removeSwitch
Paramètres
| Nom | Type | Requis |
|---|---|---|
removeSwitch |
boolean | — |
Exemple
{
"method": "user.logout",
"removeSwitch": true
}
user.switchToCompany
companyId
user.switchToCompany
companyId
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
Exemple
{
"method": "user.switchToCompany",
"companyId": 12345
}
user.switchToUser
userId
user.switchToUser
userId
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
Exemple
{
"method": "user.switchToUser",
"userId": 12345
}
user.updArchive
userId
user.updArchive
userId
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
Exemple
{
"method": "user.updArchive",
"userId": 12345
}
user.isTrinnov
userId
user.isTrinnov
userId
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
Exemple
{
"method": "user.isTrinnov",
"userId": 12345
}
user.companyMerge
from
to
user.companyMerge
from
to
Paramètres
| Nom | Type | Requis |
|---|---|---|
from |
integer | ✓ |
to |
integer | ✓ |
Exemple
{
"method": "user.companyMerge",
"from": 12345,
"to": 12345
}
user.companyMergeDelete
from
to
user.companyMergeDelete
from
to
Paramètres
| Nom | Type | Requis |
|---|---|---|
from |
integer | ✓ |
to |
integer | ✓ |
Exemple
{
"method": "user.companyMergeDelete",
"from": 12345,
"to": 12345
}
country 3 méthodes
Méthode
Description
country.getAll
lang
country.getAll
lang
Paramètres
| Nom | Type | Requis |
|---|---|---|
lang |
string | ✓ |
Exemple
{
"method": "country.getAll",
"lang": "..."
}
country.getUsed
lang
country.getUsed
lang
Paramètres
| Nom | Type | Requis |
|---|---|---|
lang |
string | ✓ |
Exemple
{
"method": "country.getUsed",
"lang": "..."
}
country.getBy
search
country.getBy
search
Paramètres
| Nom | Type | Requis |
|---|---|---|
search |
array | ✓ |
Exemple
{
"method": "country.getBy",
"search": []
}
rep 5 méthodes
Méthode
Description
rep.get
repId
V1 : 03/2023 Return companies based on criteria
rep.get
repId
Paramètres
| Nom | Type | Requis |
|---|---|---|
repId |
integer | — |
Exemple
{
"method": "rep.get",
"repId": 12345
}
rep.add
repName
distributorId
rep.add
repName
distributorId
Paramètres
| Nom | Type | Requis |
|---|---|---|
repName |
string | ✓ |
distributorId |
integer | ✓ |
Exemple
{
"method": "rep.add",
"repName": "...",
"distributorId": 12345
}
rep.del
repId
rep.del
repId
Paramètres
| Nom | Type | Requis |
|---|---|---|
repId |
integer | ✓ |
Exemple
{
"method": "rep.del",
"repId": 12345
}
rep.attachDealer
repId
dealersId
rep.attachDealer
repId
dealersId
Paramètres
| Nom | Type | Requis |
|---|---|---|
repId |
integer | ✓ |
dealersId |
array | ✓ |
Exemple
{
"method": "rep.attachDealer",
"repId": 12345,
"dealersId": []
}
rep.delDealer
repId
dealersId
rep.delDealer
repId
dealersId
Paramètres
| Nom | Type | Requis |
|---|---|---|
repId |
integer | ✓ |
dealersId |
array | ✓ |
Exemple
{
"method": "rep.delDealer",
"repId": 12345,
"dealersId": []
}
auth0 5 méthodes
Méthode
Description
auth0.add
userId
auth0.add
userId
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
Exemple
{
"method": "auth0.add",
"userId": 12345
}
auth0.del
tnUserToken
domain
auth0.del
tnUserToken
domain
Paramètres
| Nom | Type | Requis |
|---|---|---|
tnUserToken |
string | ✓ |
domain |
string | ✓ |
Exemple
{
"method": "auth0.del",
"tnUserToken": "...",
"domain": "..."
}
auth0.unblock
userId
auth0.unblock
userId
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
Exemple
{
"method": "auth0.unblock",
"userId": 12345
}
auth0.sendEmailToVerif
userId
auth0.sendEmailToVerif
userId
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
Exemple
{
"method": "auth0.sendEmailToVerif",
"userId": 12345
}
auth0.generatePassword
userId
auth0.generatePassword
userId
Paramètres
| Nom | Type | Requis |
|---|---|---|
userId |
integer | ✓ |
Exemple
{
"method": "auth0.generatePassword",
"userId": 12345
}
sendgrid 1 méthode
Méthode
Description
sendgrid.delBounce
email
sendgrid.delBounce
email
Paramètres
| Nom | Type | Requis |
|---|---|---|
email |
string | ✓ |
Exemple
{
"method": "sendgrid.delBounce",
"email": "..."
}
hubspot 2 méthodes
Méthode
Description
hubspot.waitingUid
hubspot.waitingUid
Paramètres
Pas de paramètre nécessaire
Exemple
{
"method": "hubspot.waitingUid"
}
hubspot.getObjectFromHubspotId
type
hubspotId
hubspot.getObjectFromHubspotId
type
hubspotId
Paramètres
| Nom | Type | Requis |
|---|---|---|
type |
string | ✓ |
hubspotId |
integer | ✓ |
Exemple
{
"method": "hubspot.getObjectFromHubspotId",
"type": "...",
"hubspotId": 12345
}
notif 7 méthodes
Méthode
Description
notif.getAll
notifId
notif.getAll
notifId
Paramètres
| Nom | Type | Requis |
|---|---|---|
notifId |
integer | — |
Exemple
{
"method": "notif.getAll",
"notifId": 12345
}
notif.get
notifId
V1 : 03/2023 Return companies based on criteria
notif.get
notifId
Paramètres
| Nom | Type | Requis |
|---|---|---|
notifId |
integer | ✓ |
Exemple
{
"method": "notif.get",
"notifId": 12345
}
notif.upd
notifId
title
note
market
target
status
keyword
role
notif.upd
notifId
title
note
market
target
status
keyword
role
Paramètres
| Nom | Type | Requis |
|---|---|---|
notifId |
string|integer | — |
title |
string | ✓ |
note |
string | ✓ |
market |
string|array | — |
target |
string|array | — |
status |
string | ✓ |
keyword |
string | — |
role |
string | — |
Exemple
{
"method": "notif.upd",
"notifId": "...",
"title": "...",
"note": "...",
"market": "...",
"target": "...",
"status": "...",
"keyword": "...",
"role": "..."
}
notif.del
notifId
notif.del
notifId
Paramètres
| Nom | Type | Requis |
|---|---|---|
notifId |
integer | ✓ |
Exemple
{
"method": "notif.del",
"notifId": 12345
}
notif.recipients
notifId
notif.recipients
notifId
Paramètres
| Nom | Type | Requis |
|---|---|---|
notifId |
integer | ✓ |
Exemple
{
"method": "notif.recipients",
"notifId": 12345
}
notif.send
notifId
email
notif.send
notifId
email
Paramètres
| Nom | Type | Requis |
|---|---|---|
notifId |
integer | ✓ |
email |
string | — |
Exemple
{
"method": "notif.send",
"notifId": 12345,
"email": "..."
}
notif.last
notif.last
Paramètres
Pas de paramètre nécessaire
Exemple
{
"method": "notif.last"
}
price 3 méthodes
Méthode
Description
price.getAll
classMachine
price.getAll
classMachine
Paramètres
| Nom | Type | Requis |
|---|---|---|
classMachine |
integer | ✓ |
Exemple
{
"method": "price.getAll",
"classMachine": 12345
}
price.getByCompany
companyId
classMachine
price.getByCompany
companyId
classMachine
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
classMachine |
integer | ✓ |
Exemple
{
"method": "price.getByCompany",
"companyId": 12345,
"classMachine": 12345
}
price.upd
companyId
classMachine
price
price.upd
companyId
classMachine
price
Paramètres
| Nom | Type | Requis |
|---|---|---|
companyId |
integer | ✓ |
classMachine |
integer | ✓ |
price |
array | ✓ |
Exemple
{
"method": "price.upd",
"companyId": 12345,
"classMachine": 12345,
"price": []
}
stat 3 méthodes
Méthode
Description
stat.user
stat.user
Paramètres
Pas de paramètre nécessaire
Exemple
{
"method": "stat.user"
}
stat.company
stat.company
Paramètres
Pas de paramètre nécessaire
Exemple
{
"method": "stat.company"
}
stat.companyCountByCountry
stat.companyCountByCountry
Paramètres
Pas de paramètre nécessaire
Exemple
{
"method": "stat.companyCountByCountry"
}
Autres (legacy) 1 méthode
Méthode
Description
research
search
searchTable
limitType
research
search
searchTable
limitType
Paramètres
| Nom | Type | Requis |
|---|---|---|
search |
string|integer | ✓ |
searchTable |
array | ✓ |
limitType |
string | — |
Exemple
{
"method": "research",
"search": "...",
"searchTable": [],
"limitType": "..."
}