Generate account access token

post
Get access token

https://integrations.mipos.shop/api/oauth/token
Provide an access token to be used in the calls to all endpoints (Doesn't update the token)
Request
Response
Request
Headers
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: "client_credentials"
email
required
string
The email of the user account
password
required
string
The password of the user account
Response
200: OK
{
"message": "Access token.",
"data": {
"token": "generated_access_token(this is also the refresh token)",
"token_type": "bearer",
"expires_in": "1585815796"
}
}
409: Conflict
{
"message": [
"Client id not found with this user.",
"Client secret not found with this user.",
"Invalid credentials."
],
"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."
],
"email": [
"The email field is required.",
"The selected email is invalid."
],
"password": [
"The password field is required."
]
}