service-users

API Documentation

POST https://users-dev.services.trinnov.net/api

Généré le 2026-06-30 10:47

company 10 méthodes
Méthode Description
company.get field ids id term
V1 : 03/2023 Return companies based on criteria
Paramètres
NomTypeRequis
field array —
ids array —
id integer|string —
term string —
Exemple
{
    "method": "company.get",
    "field": [],
    "ids": [],
    "id": 12345,
    "term": "..."
}
company.del companyId
Paramètres
NomTypeRequis
companyId integer ✓
Exemple
{
    "method": "company.del",
    "companyId": 12345
}
company.add fields fromHubspot
Paramètres
NomTypeRequis
fields array ✓
fromHubspot boolean —
Exemple
{
    "method": "company.add",
    "fields": [],
    "fromHubspot": true
}
company.upd companyId fields fromHubspot
Paramètres
NomTypeRequis
companyId integer ✓
fields array ✓
fromHubspot boolean —
Exemple
{
    "method": "company.upd",
    "companyId": 12345,
    "fields": [],
    "fromHubspot": true
}
company.getChrildren companyId
Paramètres
NomTypeRequis
companyId integer ✓
Exemple
{
    "method": "company.getChrildren",
    "companyId": 12345
}
company.getByCountry country
Paramètres
NomTypeRequis
country string ✓
Exemple
{
    "method": "company.getByCountry",
    "country": "..."
}
company.getDelegation companyId
V1 : 03/2023 For a company, find delegations
Paramètres
NomTypeRequis
companyId integer ✓
Exemple
{
    "method": "company.getDelegation",
    "companyId": 12345
}
company.addDelegation companyId marketId
Paramètres
NomTypeRequis
companyId integer ✓
marketId integer ✓
Exemple
{
    "method": "company.addDelegation",
    "companyId": 12345,
    "marketId": 12345
}
company.delDelegation delegationId
Paramètres
NomTypeRequis
delegationId integer ✓
Exemple
{
    "method": "company.delDelegation",
    "delegationId": 12345
}
company.updHubspotId companyId hubspotId
Paramètres
NomTypeRequis
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
Paramètres
NomTypeRequis
companyId integer ✓
market string ✓
type string ✓
parentId integer —
Exemple
{
    "method": "market.add",
    "companyId": 12345,
    "market": "...",
    "type": "...",
    "parentId": 12345
}
market.del marketId
Paramètres
NomTypeRequis
marketId integer ✓
Exemple
{
    "method": "market.del",
    "marketId": 12345
}
market.getTree companyId
Paramètres
NomTypeRequis
companyId integer ✓
Exemple
{
    "method": "market.getTree",
    "companyId": 12345
}
market.getDistributor market
Paramètres
NomTypeRequis
market string —
Exemple
{
    "method": "market.getDistributor",
    "market": "..."
}
market.searchToAddChildrenMarket search companyId market
Paramètres
NomTypeRequis
search string ✓
companyId integer ✓
market string ✓
Exemple
{
    "method": "market.searchToAddChildrenMarket",
    "search": "...",
    "companyId": 12345,
    "market": "..."
}
market.searchParentToAddChildrenMarket search companyId market type
Paramètres
NomTypeRequis
search string ✓
companyId integer ✓
market string ✓
type string ✓
Exemple
{
    "method": "market.searchParentToAddChildrenMarket",
    "search": "...",
    "companyId": 12345,
    "market": "...",
    "type": "..."
}
market.getDistributorMarket market
Paramètres
NomTypeRequis
market string ✓
Exemple
{
    "method": "market.getDistributorMarket",
    "market": "..."
}
market.switchDistributorMarket attachToMarketId dealerMarketId
Paramètres
NomTypeRequis
attachToMarketId integer ✓
dealerMarketId array ✓
Exemple
{
    "method": "market.switchDistributorMarket",
    "attachToMarketId": 12345,
    "dealerMarketId": []
}
market.control
Paramètres

Pas de paramètre nécessaire

Exemple
{
    "method": "market.control"
}
token 1 méthode
Méthode Description
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
Paramètres
NomTypeRequis
field array —
ids array —
id integer|string —
term string —
Exemple
{
    "method": "user.get",
    "field": [],
    "ids": [],
    "id": 12345,
    "term": "..."
}
user.detail userId getAuth0 getSendgrid
Paramètres
NomTypeRequis
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
Paramètres
NomTypeRequis
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
Paramètres
NomTypeRequis
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
Paramètres
NomTypeRequis
removeSwitch boolean —
Exemple
{
    "method": "user.logout",
    "removeSwitch": true
}
user.switchToCompany companyId
Paramètres
NomTypeRequis
companyId integer ✓
Exemple
{
    "method": "user.switchToCompany",
    "companyId": 12345
}
user.switchToUser userId
Paramètres
NomTypeRequis
userId integer ✓
Exemple
{
    "method": "user.switchToUser",
    "userId": 12345
}
user.updArchive userId
Paramètres
NomTypeRequis
userId integer ✓
Exemple
{
    "method": "user.updArchive",
    "userId": 12345
}
user.isTrinnov userId
Paramètres
NomTypeRequis
userId integer ✓
Exemple
{
    "method": "user.isTrinnov",
    "userId": 12345
}
user.companyMerge from to
Paramètres
NomTypeRequis
from integer ✓
to integer ✓
Exemple
{
    "method": "user.companyMerge",
    "from": 12345,
    "to": 12345
}
user.companyMergeDelete from to
Paramètres
NomTypeRequis
from integer ✓
to integer ✓
Exemple
{
    "method": "user.companyMergeDelete",
    "from": 12345,
    "to": 12345
}
country 3 méthodes
Méthode Description
country.getAll lang
Paramètres
NomTypeRequis
lang string ✓
Exemple
{
    "method": "country.getAll",
    "lang": "..."
}
country.getUsed lang
Paramètres
NomTypeRequis
lang string ✓
Exemple
{
    "method": "country.getUsed",
    "lang": "..."
}
country.getBy search
Paramètres
NomTypeRequis
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
Paramètres
NomTypeRequis
repId integer —
Exemple
{
    "method": "rep.get",
    "repId": 12345
}
rep.add repName distributorId
Paramètres
NomTypeRequis
repName string ✓
distributorId integer ✓
Exemple
{
    "method": "rep.add",
    "repName": "...",
    "distributorId": 12345
}
rep.del repId
Paramètres
NomTypeRequis
repId integer ✓
Exemple
{
    "method": "rep.del",
    "repId": 12345
}
rep.attachDealer repId dealersId
Paramètres
NomTypeRequis
repId integer ✓
dealersId array ✓
Exemple
{
    "method": "rep.attachDealer",
    "repId": 12345,
    "dealersId": []
}
rep.delDealer repId dealersId
Paramètres
NomTypeRequis
repId integer ✓
dealersId array ✓
Exemple
{
    "method": "rep.delDealer",
    "repId": 12345,
    "dealersId": []
}
auth0 5 méthodes
Méthode Description
auth0.add userId
Paramètres
NomTypeRequis
userId integer ✓
Exemple
{
    "method": "auth0.add",
    "userId": 12345
}
auth0.del tnUserToken domain
Paramètres
NomTypeRequis
tnUserToken string ✓
domain string ✓
Exemple
{
    "method": "auth0.del",
    "tnUserToken": "...",
    "domain": "..."
}
auth0.unblock userId
Paramètres
NomTypeRequis
userId integer ✓
Exemple
{
    "method": "auth0.unblock",
    "userId": 12345
}
auth0.sendEmailToVerif userId
Paramètres
NomTypeRequis
userId integer ✓
Exemple
{
    "method": "auth0.sendEmailToVerif",
    "userId": 12345
}
auth0.generatePassword userId
Paramètres
NomTypeRequis
userId integer ✓
Exemple
{
    "method": "auth0.generatePassword",
    "userId": 12345
}
sendgrid 1 méthode
Méthode Description
sendgrid.delBounce email
Paramètres
NomTypeRequis
email string ✓
Exemple
{
    "method": "sendgrid.delBounce",
    "email": "..."
}
hubspot 2 méthodes
Méthode Description
hubspot.waitingUid
Paramètres

Pas de paramètre nécessaire

Exemple
{
    "method": "hubspot.waitingUid"
}
hubspot.getObjectFromHubspotId type hubspotId
Paramètres
NomTypeRequis
type string ✓
hubspotId integer ✓
Exemple
{
    "method": "hubspot.getObjectFromHubspotId",
    "type": "...",
    "hubspotId": 12345
}
notif 7 méthodes
Méthode Description
notif.getAll notifId
Paramètres
NomTypeRequis
notifId integer —
Exemple
{
    "method": "notif.getAll",
    "notifId": 12345
}
notif.get notifId
V1 : 03/2023 Return companies based on criteria
Paramètres
NomTypeRequis
notifId integer ✓
Exemple
{
    "method": "notif.get",
    "notifId": 12345
}
notif.upd notifId title note market target status keyword role
Paramètres
NomTypeRequis
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
Paramètres
NomTypeRequis
notifId integer ✓
Exemple
{
    "method": "notif.del",
    "notifId": 12345
}
notif.recipients notifId
Paramètres
NomTypeRequis
notifId integer ✓
Exemple
{
    "method": "notif.recipients",
    "notifId": 12345
}
notif.send notifId email
Paramètres
NomTypeRequis
notifId integer ✓
email string —
Exemple
{
    "method": "notif.send",
    "notifId": 12345,
    "email": "..."
}
notif.last
Paramètres

Pas de paramètre nécessaire

Exemple
{
    "method": "notif.last"
}
price 3 méthodes
Méthode Description
price.getAll classMachine
Paramètres
NomTypeRequis
classMachine integer ✓
Exemple
{
    "method": "price.getAll",
    "classMachine": 12345
}
price.getByCompany companyId classMachine
Paramètres
NomTypeRequis
companyId integer ✓
classMachine integer ✓
Exemple
{
    "method": "price.getByCompany",
    "companyId": 12345,
    "classMachine": 12345
}
price.upd companyId classMachine price
Paramètres
NomTypeRequis
companyId integer ✓
classMachine integer ✓
price array ✓
Exemple
{
    "method": "price.upd",
    "companyId": 12345,
    "classMachine": 12345,
    "price": []
}
stat 3 méthodes
Méthode Description
stat.user
Paramètres

Pas de paramètre nécessaire

Exemple
{
    "method": "stat.user"
}
stat.company
Paramètres

Pas de paramètre nécessaire

Exemple
{
    "method": "stat.company"
}
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
Paramètres
NomTypeRequis
search string|integer ✓
searchTable array ✓
limitType string —
Exemple
{
    "method": "research",
    "search": "...",
    "searchTable": [],
    "limitType": "..."
}
Loading…
Loading the web debug toolbar…
Attempt #