meta { name: 03 Top late payers type: http seq: 3 } get { url: {{baseUrl}}/api/v1/dashboard/top-late body: none auth: inherit } tests { test("200 OK", function () { expect(res.getStatus()).to.equal(200); }); test("data shape", function () { const list = res.getBody().data; expect(list).to.be.an("array"); if (list.length > 0) { expect(list[0]).to.have.property("clientId"); expect(list[0]).to.have.property("name"); expect(list[0]).to.have.property("lateInvoicesCount"); } }); } docs { GET /api/v1/dashboard/top-late Top 5 des clients ayant le plus de factures en retard. "En retard" = status actif (pending / in_relance / awaiting_user_confirmation) ET due_date < today. Pour générer des données : crée des factures avec une `dueDate` dans le passé via Invoices → 04 Create. }