meta { name: 03 Get batch type: http seq: 3 } get { url: {{baseUrl}}/api/v1/invoices/import-batch/{{batchId}} body: none auth: inherit } tests { test("200 OK", function () { expect(res.getStatus()).to.equal(200); }); test("drafts triés par created_at asc", function () { expect(res.getBody().data.drafts).to.be.an("array"); }); } docs { GET /api/v1/invoices/import-batch/:id Retourne l'état courant du batch et de ses drafts. Le SPA poll cet endpoint pendant la review pour suivre la progression (drafts qui passent de `pending` à `validated` ou `skipped`). }