Token Info

GET https://developers.shoplineapp.com/oauth/token/info

Headers

FieldTypeDescriptionExample
AuthorizationStringBearer authentication with access token givenRequired: true

Error Codes

Http StatusCodeDescription
401MISSING_TOKEN_ERRORToken is required in the header
401TOKEN_EXPIREDToken is expired, you may need to get a new by refresh token
401TOKEN_REVOKEDToken is revoked, you may need to get a new one by authorization

Response

{
  "resource_owner_id": "5c403b6ce84a590001284cb5",
  "scope": [
    "customers",
    "orders",
    "products",
    "categories",
    "channels",
    "staffs",
    "merchants",
    "openid",
    "permissions"
  ],
  "expires_in": 15551707,
  "application": {
    "uid": "8aae1f633cad1b03f3de2a3d93fd1f7070e6c09ca12cdea31c44f551519319c9"
  },
  "created_at": 1593655421,
  "staff": {
    "_id": "5c403b6c30b63c0008f46d05",
    "email": "[email protected]",
    "locale_code": "zh-hant",
    "merchant_ids": [
      "5c403b6ce84a590001284cb5",
      "5cc26f5115c071000100f0ac",
      "5de4ea991d0db7003a8db186",
      "5de4eb149db3cb000aa19477",
      "5de4ebf8376b23000a43e971",
      "5df0b8b0fda28f0026427fe9"
    ],
    "name": "CHARMAINE (SHOPLINE)"
  },
  "merchant": {
    "_id": "5c403b6ce84a590001284cb5",
    "email": "[email protected]",
    "handle": "turnturn",
    "name": "Home cook好"
  }
}```