Sync Reference Data

POST/api/v1/sync

Pull the latest reference data from Kenya Revenue Authority, code tables, notices, and branch information. Call this periodically or when Kenya Revenue Authority publishes updates.

Requires x-api-key

http://localhost:8100/api/v1/sync

Headers

FieldTypeRequiredDescription
x-api-keystringRequiredYour Ushuru API key

Request Body

No request body required. Send an empty POST.

Request

{}

Response

{
  "resultCd": "000",
  "resultMsg": "Success",
  "data": {
    "codes": true,
    "notices": true,
    "branches": true,
    "lastSyncAt": "2024-01-15T10:30:00.000Z"
  }
}
curl -X POST http://localhost:8100/api/v1/sync \\
  -H "x-api-key: YOUR_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{}'