Cet endpoint permet de lister l’ensemble des sites clients rattachés à une agence en particulier.
Paramètres requis :
- agencyid (identifiant de l’agence)
- customerId (identifiant Peopulse du client)
- Type(sigman)
Requête :
curl -X 'GET' \
'https://api.peopulse.com/api/v1/customers/RHIO_SPPPPPP/customerSites?agencyId=RHXNETT00000005&type=sigman' \
-H 'accept: application/json' \
-H 'Authorization: Bearer Your_Token'
Résultat :
"meta": {
"pagination": {
"maxPage": 1,
"page": 1,
"limit": 200,
"total": 4
}
},
"data": [
{
"id": "SPPPPPP00000001",
"label": "SITE INDUSTRIE ROUEN"
},
{
"id": "SPPPPPP00000002",
"label": "SITE TERTIAIRE NICE"
},
{
"id": "SPPPPPP00000003",
"label": "SITE INDUSTRIE NANTES OUEST"
},
{
"id": "SPPPPPP00000004",
"label": "SITE INDUSTRIE PARIS"
}
]
}