Write Scope permission for PSC discrepancy apis

Dear CH support team,

We are currently developing an integration with the Companies House PSC Discrepancy API and require the appropriate write permissions enabled for our application.

Could you please add the “psc-discrepancy-reports.write-full” OAuth scope to our API client? Please let us know if you require any further information. client_id: af8bae32-b05d-42b2-939b-fa8600d55595

Also, can you let us know the expiry for refresh_token for OAuth2.0?

Hi @companieshousedata , can you please take a look at this, I don’t know the exact person to mention, but our request is kind of urgent.

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]

1 Like

Hi Nick,

Really sorry for the misunderstanding. And thanks for your reply.

Actually I have contacted CH via the discrepancy email address but haven’t received a reply yet. I was directed by the CH enquiries team to the forum. They have told senior technical managers will be overseeing the posts, but I’m not able to get response here.

Hi @cbaldwin,

Please forgive me if you’re the wrong person to contact about this but I saw your response to a post noting 6 missing documents. Would you have anything to do with assigning permissions for https://identity.company-information.service.gov.uk/user/profile.read and https://api.company-information.service.gov.uk/psc-discrepancy-reports.write-full - or know the person that is?

Thank you.

1 Like