Phone verification confirms an entity’s mobile number. There are two checks, and your deployment can have either or both turned on: The phone step is complete when every check that is turned on has passed for the entity’s current number. The order does not matter. A check that is turned off returns 403.

Ownership Check

One call, with no action from the entity. The entity must be an individual with a Saudi national ID or iqama on file.
  • 201 with verifiedPhoneOwnershipAt: the number is registered to the entity. DAL saves it on the entity.
  • 400: the number is not registered to the entity, the entity has no Saudi ID, another entity already has the number, or the registry could not be reached.
Each call is billed. Don’t repeat it for a number that already passed.

SMS Code

Two calls, with the entity in between. 1. Send the code. DAL saves the number on the entity and sends it a 4-digit code.
The response has an id. Keep it for the next call. To resend the code, call start again. 2. Submit the code the entity typed into your app.
A wrong code still returns 201, the same as a right code, with success: false and a message in English and Arabic. Show the message and let the entity try again.

Checking the Result

View the entity and read its verifications:
phoneNumber is the SMS check and phoneOwnership is the ownership check. Both refer to the entity’s current number. If either call saves a different number, both go back to false, so run every check with the same number.