As stated before use app id instead of service id when generating the client_secret.
Topic:
App & System Services
SubTopic:
General
Tags: