Proof Of Address Certificate API
The API generates a PDF proof of address certificate for a given OkHi location ID. It combines generation and download into a single endpoint.
API Endpoint
Endpoint:
Path Parameter: locationId
(required) - The unique OkHi identifier of the location for which the certificate is requested.
Authentication
This API requires basic authentication. Username branchID
and password: server key
. Find your branch ID
and server key
on OkDash.
Response Formats
Success Responses:
Status Code
Body
Description
202 Accepted
{ "id": "1234567890", message: "PDF generation in progress" }
PDF generation initiated, certificate will be available later
200 OK
PDF file
Certificate generated and downloaded successfully
Error Responses:
Status Code
Body
Description
400
{ "error": "Invalid location ID" }
Invalid location ID provided
401
{ "message": "missing_token", "error": "Unauthorized", "statusCode": 401 }
Invalid or missing token
409
{ "error": "PDF generation request already exists" }
A PDF generation request for the same location ID already exists
429
{ "error": "Too many requests" }
Rate limit exceeded
Usage Example
Request 1: Initiate PDF Generation
Response:
Request 2: Download Generated Certificate
Response:
Last updated