Skip to navigation

Download a sandbox sample document

Returns a sample document as a PDF, made for one subcontractor: it prints the subcontractor’s name and business address (a dummy address when none is on file) and dates relative to today, so an expired sample is always expired. Everything else on it is dummy data. Without subcontractorId a generic dummy subcontractor is printed.

Upload it for that subcontractor (multipart POST /v1/subcontractors/{subcontractorId}/documents with the sample’s documentCategory, and documentType when it has one). The sandbox recognizes the sample by a signed tag inside the PDF and produces the outcome in the catalog’s expected.

Sandbox only: requires a sandbox API key. A production key receives 403.

Requires scope documents:read.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

keyenumRequired

Sample key from GET /v1/sandbox/fixtures, e.g. coi-compliant.

Query parameters

subcontractorIdstringOptionalformat: "uuid"

The subcontractor to make the sample for. It must be enrolled with your organization (404 otherwise).

Response headers

Content-DispositionstringOptional

attachment with the file name “<subcontractor name> - <fileName>” (just fileName without subcontractorId), as an ASCII filename plus a UTF-8 filename* (RFC 5987) that keeps accented names intact.

Response

The sample PDF

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error