API to Refresh Token for Authentication.If the access token expired, you can re-fetch it or use the Fetch Access Token by Refresh Token API. Or you can get a new access token before it expired.Only one access token can be exists in the same time per client-id, we suggest cache the access token in your caching system, for example, Redis.
Param
Description
Fixed Value
Content-Type
The Content-Type should be multipart/form-data.
multipart/form-data
refresh_token
Frome the Get Access Token Api
grant_type
Fixed value refresh_token.
refresh_token
Request
Query Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://wallet.test.wspn.io/openapi/v1/auth/oauth2/token?refresh_token=CpCAhcCRtLU4kPjs54omWW3A&grant_type=refresh_token'