Change grant token into access token or refresh access token
Request body
OAuth token grant type. Use refresh_token to refresh access token. Use authorization_code to exchange grant into access token
Application client ID in Moka app dashboard
Application client secret in Moka app dashboard
Moka merchant's authorization code
Redirect URL of your application in Moka app dashboard
Refresh token that can be used to obtain a new access token when access token is expired. Note: To obtain a new access token with refresh token, make sure the grant_type is set to refresh_token
Response
Exchange token response
Access token that can be used to access Moka's APIs
Token type used by Moka's APIs (always returns bearer)
Time of token expiration in Epoch format
Refresh token that can be used to obtain a new access token when access token is expired. Note: To obtain a new access token with refresh token, make sure the grant_type is set to refresh_token
Scopes provided to the access token. This is configured when creating the application in the Moka developer platform
Time of token creation or token refresh in Epoch format