Hi Srikar,
I’m a user just like you - not affiliated with companies house (despite my username, which it doesn’t appear I can change to remove this suggestion!)
The documentation does say that you should contact Companies House via the email address pscdiscrepancyapi@companieshouse.gov.uk to request the access you need “Authentication” paragraph details this.
One correction to your request though; The CH documentation says the permission is associated with the user credentials, while the API checks the user’s permissions in conjunction with the application’s client_id/client_secret
I’d send this email to them:
Subject:
PSC Discrepancy API – live OAuth permissions and refresh token expiry
Body:
Dear Companies House PSC Discrepancy API team,
We are currently developing an integration with the Companies House PSC Discrepancy API and are preparing to use the service in the live environment.
Our application will request the following OAuth scopes:
https://identity.company-information.service.gov.uk/user/profile.read
https://api.company-information.service.gov.uk/psc-discrepancy-reports.write-full
We understand from the PSC Discrepancy API documentation that live use requires the appropriate PSC Discrepancy permissions to be associated with the relevant user credentials.
Could you please advise what information you require from us in order to enable the appropriate live permissions?
Our OAuth client ID is:
af8bae32-b05d-42b2-939b-fa8600d55595
Could you also confirm the lifetime/expiry policy for OAuth 2.0 refresh tokens issued by Companies House? In particular, it would be useful to know whether refresh tokens have a fixed expiry, expire after a period of inactivity, or remain valid until revoked/replaced.
Please let us know if you require any additional application or user/account details.
Kind regards,
[Your name and organisation]