Refresh access token

post
Refresh token

https://integrations.mipos.shop/api/oauth/token/refresh
Remove your user's token to generate a new one with the Get Token endpoint
Request
Response
Request
Headers
Authorization
required
string
Bearer {access_token}
Content-Type
required
string
application/json
Body Parameters
client_id
required
string
Identifier of the application
client_secret
required
string
Secret key for the application
grant_type
required
string
Default value: "refresh_token"
refresh_token
required
string
access_token that is going to be refreshed
Response
200: OK
{
"message": "New access token.",
"data": {
"token": "generated_access_token",
"token_type": "bearer",
"expires_in": "1585815796"
}
}
409: Conflict
{
"message": [
"Authenticated user not found.",
"Token Mismatch.",
"Client id not found with this user.",
"Client secret not found with this user.",
"Token not found with this user.",
"User token mismatch."
],
"data": null
}
422: Unprocessable Entity
{
"client_id": [
"The client id field is required.",
"The selected client id is invalid."
],
"client_secret": [
"The client secret field is required.",
"The selected client secret is invalid."
],
"grant_type": [
"The grant type field is required.",
"The selected grant type is invalid."
],
"refresh_token": [
"The refresh token field is required.",
"The selected refresh token is invalid."
]
}