Peleza β€” Trust built on data
Background Checks
On this page

Submit BGC Request

Create and submit a background-check request. Individual submits require multipart/form-data (candidate + documents + signed consent). Bulk submits accept application/json with bulk_candidates. Billed from BGC package pricing (client custom prices applied) β€” prepaid wallets debit cash; postpay uses credit limit; proforma BGC clients skip wallet debit. Does not use KYC endpoint pricing. Returns reference_number and candidate report_id values (not integer PKs).

Flow

  • GET /api/v1/bgc/packages β€” pick package_id / package_type and note required_fields.
  • POST /api/v1/bgc/requests β€” individual (multipart) or bulk (JSON). Returns reference_number + report_id.
  • Poll GET /api/v1/bgc/requests/{reference_number} until candidate status is interim or completed.
  • GET /api/v1/bgc/requests/{reference_number}/pdf?report_id=… when the report is ready.

Billing

  • Charge = package total (client custom check prices applied) Γ— candidate count, plus VAT on KES wallets when enabled.
  • Prepaid: requires sufficient wallet balance.
  • Postpay: uses postpay credit limit (not cash balance).
  • Proforma BGC clients (client report setting): submit without wallet debit.
  • Does not use KYC endpoint_pricing or CheckWallet slugs.

Public identifiers

  • Use reference_number (e.g. REF-20261120-0001) to fetch the request.
  • Use report_id (e.g. PEL261120001) for a specific candidate / PDF.
  • Integer database ids are not part of the public contract.

Fetch package_id, package_type, price, and required_fields before submit.

GET/api/v1/bgc/packages
{{baseUrl}}/api/v1/bgc/packages
200 OKSample dataExpected response
{
  "success": true,
  "response_code": 200,
  "message": "Packages retrieved successfully",
  "data": {
    "packages": [
      {
        "id": 12,
        "name": "Standard Employment Package",
        "type": "system",
        "price": 4500.00,
        "currency": "KES",
        "checks": []
      }
    ]
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Submit request

POST/api/v1/bgc/requests
{{baseUrl}}/api/v1/bgc/requests
HeaderTypeDescription
AuthorizationstringBearer YOUR_ACCESS_TOKEN from the OAuth client-credentials flow
Content-Typestringmultipart/form-data for individual (with files); application/json for bulk
Acceptstringapplication/json

Body Parameters

ParameterTypeDescriptionRequired
package_typestringsystem | customrequired
package_idintegerPackage id from GET /api/v1/bgc/packagesrequired
entry_typestringindividual | bulkrequired
candidateobject / JSONIndividual only β€” full_name (required), provider_type (client|candidate), email, phone, country, id_number, employee_numberconditional
bulk_candidatesarray / JSONBulk only β€” [{ name, email, phone?, employee_number? }] max 2000; name + email requiredconditional
consentobject / JSON{ legal_compliance, candidate_notification, express_consent } booleansrequired
client_notesstringOptional notes (max 5000)optional
signed_consent_formfileIndividual only β€” PDF/DOC/DOCX consent (max ~10 MB)conditional
documents[field_name]file or JSONPackage-driven fields from checks[].required_fields (e.g. documents[id_document], documents[reference_contacts])conditional

Individual β€” multipart

Request payload for Individual β€” multipart:

Sample dataRequest payload
curl -X POST "{{baseUrl}}/api/v1/bgc/requests" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -F "package_type=system" \
  -F "package_id=12" \
  -F "entry_type=individual" \
  -F 'candidate={"full_name":"Jane Wanjiku","provider_type":"client","email":"jane@example.com","phone":"+254712345678","country":"Kenya","id_number":"12345678"}' \
  -F 'consent={"legal_compliance":true,"candidate_notification":true,"express_consent":true}' \
  -F "signed_consent_form=@consent.pdf;type=application/pdf" \
  -F "documents[id_document]=@national-id.jpg;type=image/jpeg" \
  -F 'documents[reference_contacts]=[{"name":"Mary A","organization":"Acme Ltd","email":"mary@acme.com","phone":"+254700000001"},{"name":"Peter B","organization":"Beta Co","email":"peter@beta.com","phone":"+254700000002"}]'

Expected response for Individual β€” multipart:

200 OKSample dataExpected response
{
  "success": true,
  "response_code": 201,
  "message": "Background check request submitted",
  "data": {
    "reference_number": "REF-20261120-0001",
    "status": "pending",
    "entry_type": "individual",
    "package_id": 12,
    "total_candidates": 1,
    "total_amount": 5220.00,
    "currency": "KES",
    "billed_by_proforma": false,
    "candidates": [
      {
        "report_id": "PEL261120001",
        "full_name": "Jane Wanjiku",
        "email": "jane@example.com",
        "status": "submitted"
      }
    ]
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Bulk β€” JSON

Request payload for Bulk β€” JSON:

Sample dataRequest payload
{
  "package_type": "system",
  "package_id": 12,
  "entry_type": "bulk",
  "client_notes": "Q4 hire batch",
  "consent": {
    "legal_compliance": true,
    "candidate_notification": true,
    "express_consent": true
  },
  "bulk_candidates": [
    {
      "name": "Jane Wanjiku",
      "email": "jane@example.com",
      "phone": "+254712345678",
      "employee_number": "EMP-001"
    },
    {
      "name": "John Otieno",
      "email": "john@example.com"
    }
  ]
}

Expected response for Bulk β€” JSON:

200 OKSample dataExpected response
{
  "success": true,
  "response_code": 201,
  "message": "Background check request submitted",
  "data": {
    "reference_number": "REF-20261120-0002",
    "status": "pending",
    "entry_type": "bulk",
    "package_id": 12,
    "total_candidates": 2,
    "total_amount": 10440.00,
    "currency": "KES",
    "billed_by_proforma": false,
    "candidates": [
      { "report_id": "PEL261120001", "full_name": "Jane Wanjiku", "email": "jane@example.com", "status": "submitted" },
      { "report_id": "PEL261120002", "full_name": "John Otieno", "email": "john@example.com", "status": "submitted" }
    ]
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Response Fields

FieldTypeDescription
successbooleanWhether the request succeeded
response_codenumberApplication response code (typically mirrors HTTP)
messagestringHuman-readable status message
dataobjectPayload for the verified resource
request_idstringUUID for support and audit trails
data.reference_numberstringPublic request id β€” use in GET paths
data.statusstringpending after successful submit
data.total_amountnumberAmount charged (or recorded for proforma)
data.billed_by_proformabooleantrue when wallet was not debited
data.candidates[].report_idstringPublic candidate / report id

entry_type

ValueMeaning
individualOne candidate with documents + signed_consent_form in the same multipart submit
bulkMultiple candidates by name+email; profile/docs completed via invitation flow

Request / candidate status

ValueMeaning
pendingSubmitted β€” awaiting staff acceptance
processingAccepted β€” checks in progress
interimPartial results available
completedAll package checks finished
stoppedCandidate stopped (candidate-level)

Poll with reference_number. Optional report_id filters to one candidate.

GET/api/v1/bgc/requests/{ref}
{{baseUrl}}/api/v1/bgc/requests/{ref}
200 OKSample dataExpected response
{
  "success": true,
  "response_code": 200,
  "message": "Background check request retrieved",
  "data": {
    "reference_number": "REF-20261120-0001",
    "status": "processing",
    "candidates": [
      {
        "report_id": "PEL261120001",
        "status": "interim",
        "status_counts": { "clear": 2, "warning": 0, "alert": 0, "pending": 1, "overall": "clear" }
      }
    ]
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Available when a candidate reaches interim or completed. Binary DomPDF download is being linked to the Merchant report-export pipeline.

GET/api/v1/bgc/requests/{ref}/pdf
{{baseUrl}}/api/v1/bgc/requests/{ref}/pdf
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": "interim",
    "pdf_ready": true,
    "download_url": null
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Error codes

Standard Peleza HTTP / response_code values (same across all API calls). Validation message text is endpoint-specific. Full reference: Error Codes.

CodeWhenBilled?
201Request submittedYes (unless proforma)
400Invalid multipart/JSON bodyNo
401Missing or invalid Bearer tokenNo
402Insufficient prepaid balance or postpay credit limitNo
422Validation β€” package, candidate, consent, or required documentsNo

Insufficient wallet / credit

402Sample dataInsufficient wallet / credit
{
  "success": false,
  "response_code": 402,
  "message": "bgc wallet blocked: Insufficient wallet balance. Please top up.",
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Missing signed consent (individual)

422Sample dataMissing signed consent (individual)
{
  "success": false,
  "response_code": 422,
  "message": "bgc validation failed: signed_consent_form file is required for individual submits",
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

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.