Lister les comptes GENERAUX

Requête avec ses expand

const acounts = [];
myHeaders.append("Authorization", "Bearer <token>");

fetch("https://api.sinao.app/v1/apps/:appId/accounts?expand[0]=count_uses&expand[1]=contact&expand[2]=category&expand[3]=credit&expand[4]=debit&expand[5]=count_uses_object&offset=0&limit=25&order[0][name]=name&order[0][direction]=desc", {
  method: 'GET',
  headers: myHeaders
})
  .then(response => response.json())
  .then(result => accounts.push(...result.data));