Skip to content

PPR API - Support Call Increase Stats  #27214

Closed

Description

@mbertucci

How many are legal professionals, notaries - within the past year registered liens or amended liens
How many are businesses or individuals? - within the past year registered liens or amended liens

Is there any way for us to run a query to find out how many PPR registrations have been submitted by a legal professional or a service provider (like dye and duram) and then how many have been registered by individuals or business owners (garages for example)

Doug Lovett
We store the account ID and user ID but not the type of account when creating PPR registrations. We can distinguish registrations created by the API accounts, which may be all the service providers. Otherwise if a list of account ID's is provided I can get the counts for those and the remainder would be indviduals/business owners.

I have sandbox auth-db database access - a recent snapshot from prod. Two extracts are attached here: all active ppr accounts, and active ppr accounts that are a law office or notary business type.
export-sb-auth-db-ppr.zip

Developer Notes:
Auth-DB query for extract:
select o.id, o.name, o.business_type
-- select count(o.id)
from product_subscriptions ps, orgs o
where ps.status_code = 'ACTIVE'
and ps.product_code in ('PPR', 'RPPR')
and o.id = ps.org_id
and o.status_code = 'ACTIVE'
and type_code not in ('STAFF', 'SBC_STAFF')
and o.has_api_access = false
-- and o.business_type in ('LAW', 'LAWNP')
order by o.id
--fetch first 100 rows only
;

Auth-DB extract loaded into PROD PPR database table temp_auth_ppr_accounts.
PPR registration count queries will use the lawyer/notary account ID's.

Activity

  1. changed the title [-]Support Call Increase Stats [/-] [+]PPR API - Support Call Increase Stats [/+] on Apr 22, 2025
  2. doug-lovett commented on Apr 22, 2025

    @doug-lovett
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions