API Manager

Nafath Validation APIs

To complete a transaction, keep the Nafath Simulation App open in a new tab.
Individual Validation

Validate a user with their National ID.

Corporate Validation

Validate via National ID + CR Number.

Wathq CR Check

Verify Commercial Registration status directly.

Bypass Validation

Instantly get data without Nafath approval.

Sample Test Data (Nafath/Wathq) Click to Copy
Role National ID (NID) CR Number (Wathq)
User 1 1012345678 7004567890
User 2 1023456789 7003321442
User 3 1034567890 7002981123
User 4 1045678901 7004129981
User 5 1056789012 7008113345
API Usage
/* --------------------------------------
   ENDPOINT 1: Individual Validation
   URL: POST /api/validate/individual
-------------------------------------- */

// cURL Example
curl -X POST http://localhost:5006/api/validate/individual \
  -H "Content-Type: application/json" \
  -d '{ "nationalId": "1012345678" }'

// Response (Success)
{
    "status": "WAITING",
    "transId": "12345-abcde",
    "random": "44"
}


/* --------------------------------------
   ENDPOINT 2: Corporate Validation
   URL: POST /api/validate/corporate
-------------------------------------- */

// cURL Example
curl -X POST http://localhost:5006/api/validate/corporate \
  -H "Content-Type: application/json" \
  -d '{ 
     "nationalId": "1012345678",
     "crNumber": "7004567890" 
  }'

/* --------------------------------------
   ENDPOINT 3: Wathq CR Check (No Nafath)
   URL: POST /api/validate/cr
-------------------------------------- */
curl -X POST http://localhost:5006/api/validate/cr \
  -H "Content-Type: application/json" \
  -d '{ "crNumber": "7004567890" }'

  
/* --------------------------------------
   ENDPOINT 4: Nafath and Wathq CR Check (Bypass)
   URL: POST /api/validate/bypass
-------------------------------------- */
curl -X POST http://localhost:5006/api/validate/bypass \
  -H "Content-Type: application/json" \
  -d '{ "nationalId": "1012345678", "crNumber": "7004567890" }'
Recent API Activity: Nafath/CR Validation
ID Method Endpoint Status Timestamp Action
Loading logs...