Solved! Go to Solution.
05-30-2018 10:46 PM
Thanks @orderhive for the information .
This looks to be a bug in the Partner UI where its not providing the correct grant type to the client .
The team is working on the fix and will be release soon .
As a workaround we have updated your clientID M4sPtfxKpk with the correct grant Type .
Let us know if this solves the issue .
Thanks
Anurag
05-31-2018 01:48 PM
Hi @orderhive
Are you passing the grant_type=refresh_token in the url ?
POST https://access.authorize.net/oauth/v1/token
Content-Type: application/x-www-form-urlencoded
client_id=8l57hYffFb&client_secret=67868687&grant_type=refresh_token&refresh_token=eyJraWQiOiI4MGI2ZDJjM2NkZGRkMmY2NmY3MmRjYjIyMmZiNGM1MCIsImFsZyI6IlJTMjU2In0.eyJqdGkiOiI0N2
Also are you trying on sandbox or prod env ?
05-30-2018 11:01 PM
I am using the production env.
I am making call to retrieve access_token and at that time I am passing grant_type=authorization_code in request.
05-30-2018 11:05 PM
I am attaching the Request and Response of API call which I am making in Postman
Request:
POST https://access.authorize.net/oauth/v1/token
Body: Content-Type:application/x-www-form-urlencoded
[{"key":"grant_type","value":"authorization_code"},
{"key":"code","value":"4rkKLY"},
{"key":"client_id","value":"M4sPtfxKpk"},
{"key":"client_secret","value":"........."},
{"key":"platform","value":"2"}]
Response:
{
"access_token": "eyJra.....8vb0Ig",
"token_type": "bearer",
"expires_in": 28799,
"scope": "read write",
"client_status": "active"
}
05-30-2018 11:12 PM - edited 05-30-2018 11:23 PM
Thanks @orderhive for the information .
This looks to be a bug in the Partner UI where its not providing the correct grant type to the client .
The team is working on the fix and will be release soon .
As a workaround we have updated your clientID M4sPtfxKpk with the correct grant Type .
Let us know if this solves the issue .
Thanks
Anurag
05-31-2018 01:48 PM
Thanks for the workaround.
It is now providing proper response for clientId: M4sPtfxKpk
05-31-2018 08:41 PM