Public API
  • Overview
  • Authentication
    • Create a developer account
    • Generate account access token
    • Refresh access token
  • Store management
    • Countries
    • Create store
    • User stores
  • Integration management
    • Information of delivery integrations
    • Enable delivery integration
    • Disable delivery integration
  • Delivery Orders For POS
    • Webhook management
    • Webhook Content
    • Retreive Delivery Orders
    • Successful order creation
    • Order Creation failed
  • Menu Management
    • Upload menu to delivery app
  • Third Party Market Apps
    • Third Party Webhook Management
    • Third Party Send Order
    • Third Party Webhooks Content
  • Inventory
    • Inventory system management
    • POS sync inventory
  • Logistic
    • Logistic integrations management
    • POS integrations management
    • Available services
Powered by GitBook
On this page

Was this helpful?

  1. Authentication

Refresh access token

Refresh token

POST https://integrations.mipos.shop/api/oauth/token/refresh

Remove your user's token to generate a new one with the Get Token endpoint

Headers

Name
Type
Description

Authorization

string

Bearer {access_token}

Content-Type

string

application/json

Request Body

Name
Type
Description

client_id

string

Identifier of the application

client_secret

string

Secret key for the application

grant_type

string

Default value: "refresh_token"

refresh_token

string

access_token that is going to be refreshed

{
    "message": "New access token.",
    "data": {
        "token": "generated_access_token",
        "token_type": "bearer",
        "expires_in": "1585815796"
    }
}
{
    "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
}
{
    "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."
    ]
}

PreviousGenerate account access tokenNextCountries

Last updated 4 years ago

Was this helpful?