validate_session_m Sample Call and Response
This example shows a call to validate_session_m, which determines the validity of a specified session and identifies the user with which the session ID is associated. This example is based on the plsql_m_r73.yml definition file.
This example covers the full set of fields the method accepts and returns, since validate_session_m has only one input field beyond the standard envelope and authentication fields and a small, coherent set of output fields. It does not cover a session-not-found error scenario.
Sample call
{
"rest_call": "validate_session_m",
"output_format": "json",
"client_no": 66123,
"auth_key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"session_id": "SESS-20260724-9F3A21"
}
The rest_call and output_format fields are added by the REST layer and do not appear in the method's own argument list. session_id is the client-assigned identifier for the application session and is the only argument defined by validate_session_m itself; it is required (nullable: false).
Sample response
{
"user_id": "jmartinez88",
"account_no": 5017732,
"alt_caller_id": "jmartinez-crm",
"application_id": "Sales Force",
"application_date": "07/24/2026 09:14:02",
"error_code": 0,
"error_msg": "OK",
"error_details": null
}
error_code 0 and error_msg "OK" indicate that the session was found and is valid. user_id and account_no identify the account associated with the session, alt_caller_id is the user identifier that the calling application supplied when it originally created the session, and application_id and application_date describe the calling application and the timestamp at which it invoked this method. error_details is shown as null here because no error occurred; in an error scenario, it would carry supplemental information about why session validation failed.