HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Get Token Info

Function

Retrieve information of the access token
抓取access token的信息

URL

Get https://open.shopline.io/v1/token/info

Headers

FieldTypeDescriptionExample
AuthorizationStringDescriptionRequired: true

Response fields

FieldTypeDescriptionExample
staffObjectstaff information of the token
token的管理員信息
{ "_id": "5ec5e201d8aedd002d744537", "email": "[email protected]", "locale_code": "en", "merchant_ids": [ "58e4736a9a76f0174c000278", "5e840cae77cb07003243f7c7" ], "name": "archer1" }
merchantObjectmerchant information of the token
token的店家信息
{ "_id": "5e840cae77cb07003243f7c7", "email": "[email protected]", "handle": "archertesttest", "name": "Archer Tester" }
userObjectuser information of the token
token的使用者信息
{ "_id": "5e840cae77cb07003243f7c7", "email": "[email protected]", "name": "Archer Tester" }

Response Example

{
    "staff": {
        "_id": "5ec5e201d8aedd002d744537",
        "email": "[email protected]",
        "locale_code": "en",
        "merchant_ids": [
            "58e4736a9a76f0174c000278",
            "5e840cae77cb07003243f7c7"
        ],
        "name": "archer1"
    },
    "merchant": {
        "_id": "5e840cae77cb07003243f7c7",
        "email": "[email protected]",
        "handle": "archertesttest",
        "name": "Archer Tester"
    },
    "user": {
        "_id": "5e840cae77cb07003243f7c7",
        "email": "[email protected]",
        "name": "Archer Tester"
    }
}