Skip to content
Documentation
Get started

Business

Retrieve the latest certification test run

GET
/v1/business/certification/test-runs/current
curl --request GET \
--url 'https://api.timbro.do/v1/business/certification/test-runs/current?kind=ecf' \
--header 'Authorization: Bearer <token>'

Returns the latest run of the step 2 (ecf) or step 3 (acecf) workbook for the authenticated business’s current certification attempt, or null before a run. While a run is running, read again. When a run is rejected, DGII’s message names the case’s workbook row and e-NCF, and Timbro’s team is told once for that run.

kind
required
Any of:
string
Allowed value: ecf

Default Response

Media typeapplication/json
Response fields and codes
object
current
required
Any of:

One run of a retained DGII test workbook. Timbro signs each case with the business’s custodied certificate and sends it to DGII in workbook order, and stops at the first rejection. refused means the workbook could not be built into documents and nothing was sent; refusal names the sheet, row, and column, never the cell text. consumerInvoices lists the signed consumer invoices (E32) to upload in DGII’s portal box for step 2, and is empty for acecf. A run is evidence, not a DGII decision: it never changes a step’s status.

object
object
required
string
Allowed value: certification_test_run
id
required
string format: uuid
attemptReference
required
string
>= 1 characters
kind
required
Any of:
string
Allowed value: ecf
testSetId
required
string format: uuid
status
required
Any of:
string
Allowed value: running
failureMessage
required
Any of:
string
createdAt
required
string format: date-time
completedAt
required
Any of:
string format: date-time
counts
required
Array<object>
object
documentType
required

An e-CF type from 31 to 47, RFCE, or ACECF.

string
total
required
integer
accepted
required
integer
rejected
required
integer
cases
required
Array<object>
object
sourceRow
required

The workbook row the case came from.

integer
>= 1
caseLabel
required
Any of:
string
documentType
required
string
eNcf
required
string
status
required
Any of:
string
Allowed value: pending
dgiiMessage
required
Any of:
string
refusal
required
Any of:
object
code
required
string
sheet
required
Any of:
string
row
required
Any of:
integer
>= 1
column
required
Any of:
integer
>= 1
consumerInvoices
required
Array<object>
object
eNcf
required
string
sourceRow
required
integer
>= 1
request-id
required
string

Identifies this request. Quote it when you contact support.