Revoke diagnostic app OAuth access without affecting my ERP

Hello Square team,

I need to revoke the OAuth authorization for a diagnostic application I created, without affecting my separate ERP application.

The Dashboard refuses disconnection because this is a custom app created in the Developer Console. The diagnostic OAuth token is no longer available.

What is the supported procedure to revoke only this diagnostic app’s authorization? I still have access to its Developer Console.

If account-specific information is needed, please explain how to provide it privately.

Thank you.

Hello there

You can revoke the diagnostic app’s authorization using RevokeToken, even without the original OAuth token, by supplying the seller’s merchant_id instead.

For Production, run this locally using the diagnostic app’s application ID and OAuth application secret from the Developer Console:

curl https://connect.squareup.com/oauth2/revoke \  
-X POST \  
-H 'Authorization: Client DIAGNOSTIC_APP_SECRET' \  
-H 'Content-Type: application/json' \  
-d '{    
        "client_id": "DIAGNOSTIC_APP_ID",    
        "merchant_id": "SELLER_MERCHANT_ID",    
        "revoke_only_access_token": false  
    }'

Do not include access_token when using merchant_id. A successful response returns "success": true. This revokes that seller’s authorization for the diagnostic application. Your ERP application’s authorization is unaffected, provided it has a different application ID.