Lister les comptes FOURNISSEURS
myHeaders.append("Authorization", "Bearer <token>");
const suppliers = [];
fetch("https://api.sinao.app/v1/apps/:appId/relationships?expand[0]=count_uses&expand[1]=contact&expand[2]=category&expand[3]=credit&expand[4]=debit&filters[0][name]=is_supplier&offset=0&limit=25", {
method: 'GET',
headers: myHeaders
})
.then(response => response.json())
.then(result => suppliers.push(...result.data));Updated about 5 hours ago
