BGC Report PDF
Check PDF readiness for a BGC report. Pass reference_number in the path and optionally report_id for a specific candidate. Returns pdf_ready when the candidate is interim or completed. Binary DomPDF streaming will use the Merchant report-export pipeline; download_url may be null until that bridge is enabled. Auth only β not billed.
Request
GET/api/v1/bgc/requests/{ref}/pdf
{{baseUrl}}/api/v1/bgc/requests/{ref}/pdfHeader
Query Parameters
Report ready
Expected response for Report ready:
200 OKSample dataExpected response
{
"success": true,
"response_code": 200,
"message": "Report is ready for PDF export",
"data": {
"reference_number": "REF-20261120-0001",
"report_id": "PEL261120001",
"candidate_status": "completed",
"pdf_ready": true,
"download_url": null
},
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}Not ready yet
Expected response for Not ready yet:
200 OKSample dataExpected response
{
"success": false,
"response_code": 409,
"message": "Report PDF is not ready yet",
"data": {
"reference_number": "REF-20261120-0001",
"status": "pending",
"pdf_ready": false,
"message": "PDF is available when a candidate reaches interim or completed status"
},
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}Response Fields
Error codes
Standard Peleza HTTP / response_code values (same across all API calls). Validation message text is endpoint-specific. Full reference: Error Codes.
Set {{baseUrl}} to https://api.peleza.com (production) or https://sandbox.peleza.com (sandbox). Authenticated calls need a Bearer token from POST /api/v1/oauth/token.
