PM_MERCHANT_AUTH_400607 Invalid Api Key or Api Secret Key or Request Token

I am getting PM_MERCHANT_AUTH_400607 Invalid Api Key or Api Secret Key or Request Token error below is my curl request. please help

curl --location ‘https://developer.paytmmoney.com/accounts/v2/gettoken
–header ‘Content-Type: application/json’
–data ‘{“api_key” : “{aaaaa}”,
“api_secret_key” : “{bbbb}”,
“request_token” : “{ccccc}”}’

Hi @pawanairborn

As the error message says, your request body might have invalid data. Please check your apiKey and apiSecret and requestToken.

Also note that after generating requestToken it is only valid for 30 minutes (since it is a temporary token to generate accessToken, readAccessToken, etc), after that it is invalidated. So make sure to hit this api before the expiry of requestToken which is being used.

2 Likes