API Documentation

Everything you need to integrate KCS Business Services APIs into your application.

Receipt OCR

Extract structured data from receipt images and PDFs. Returns vendor info, line items, totals, tax, and payment method.

1 token per scanView Documentation

SA Document Validator

Validate and extract data from South African identity documents including ID cards, passports, and driver's licenses.

2 tokens per validationView Documentation

ID Verification

Coming Soon

Verify South African ID numbers against the Department of Home Affairs database for identity confirmation.

3 tokens per checkComing Soon

Umalusi Verification

Coming Soon

Verify matric certificates and academic qualifications through the Umalusi verification system.

5 tokens per checkComing Soon

Employment History

Coming Soon

Retrieve and verify employment history records for background screening and compliance checks.

5 tokens per checkComing Soon

Criminal Record Check

Coming Soon

Request criminal record checks for pre-employment screening and compliance verification.

10 tokens per checkComing Soon

Getting Started

All KCS Business Services APIs follow the same authentication and token-based billing pattern. Here are the key concepts you need to get started.

Authentication

All API requests require an API key passed in the Authorization header as a Bearer token. API keys are scoped to your account and can be managed from the dashboard.

  1. Create an account at kcstudios.co.za
  2. Navigate to Dashboard > API Keys
  3. Click “Create New Key” and copy the generated key
  4. Include the key in every API request
http
Authorization: Bearer sk_live_your_api_key

Keep your API keys secret. Do not share them in client-side code, public repositories, or anywhere publicly accessible. If a key is compromised, revoke it immediately from the dashboard.

Token System

KCS Business Services uses a token-based billing model. Each API call consumes a set number of tokens depending on the service used. You receive 10 free tokens when you sign up.

ServiceTokens per CallStatus
Receipt OCR1 tokenAvailable
SA Document Validator2 tokensAvailable
ID Verification3 tokensComing Soon
Umalusi Verification5 tokensComing Soon
Employment History5 tokensComing Soon
Criminal Record Check10 tokensComing Soon

Purchase additional tokens from the Tokens page in the dashboard. Token packs are available in the following sizes:

PackTokensPrice (ZAR)Per Token
Starter100R49R0.49
Growth400R149R0.37
Pro1,000R299R0.30
Enterprise4,000R999R0.25

Common Error Codes

All error responses follow a consistent format with success: false and an error object containing the code, message, and HTTP status.

json
{
  "success": false,
  "error": {
    "code": "INSUFFICIENT_TOKENS",
    "message": "Not enough tokens. Balance: 0, required: 1.",
    "status": 402
  }
}
StatusCodeDescription
400BAD_REQUESTInvalid request format or missing required fields.
401UNAUTHORIZEDMissing or invalid API key.
402INSUFFICIENT_TOKENSNot enough tokens to process the request.
403FORBIDDENAPI key has been revoked or account is suspended.
404NOT_FOUNDThe requested endpoint does not exist.
413FILE_TOO_LARGEFile exceeds the maximum allowed size.
415UNSUPPORTED_TYPEFile type is not supported for this endpoint.
422PROCESSING_FAILEDCould not process the uploaded file.
429RATE_LIMITEDToo many requests. Check rate limit headers.
500INTERNAL_ERRORAn unexpected server error occurred.
© 2026 KCS Business Services. All rights reserved.