The Verification Response is an object used by PRIVO to pass return values of API methods.
Upon successful or unsuccessful completion, the operation invokes a callback/webhook endpoint function, which is provided by the partner developer.
The PRIVO service expects the callback/webhook function to have the following standard signature.
The one parameter that the callback/webhook function receives is the response object which contains the values returned from the API method.
|event||string||The event for which the callback/webhook pertains to. See Verification Events for possible values.|
|errorCode||integer||The result code of the operation when an error occurs. See Error Codes section.|
|errorMessage||string||A short textual description of an error associated with the errorCode for logging purposes. See Error Codes section.|
|result||object||The resulting object for the given event. For the structure of this object, see reference section for each API call. Value may be undefined.|