Get Token Info
Function
Retrieve information of the access token
抓取access token的信息
URL
Get https://open.shopline.io/v1/token/info
Headers
Field | Type | Description | Example |
---|---|---|---|
Authorization | String | Description | Required: true |
Response fields
Field | Type | Description | Example |
---|---|---|---|
staff | Object | staff information of the token token的管理員信息 | { "_id": "5ec5e201d8aedd002d744537", "email": "[email protected]", "locale_code": "en", "merchant_ids": [ "58e4736a9a76f0174c000278", "5e840cae77cb07003243f7c7" ], "name": "archer1" } |
merchant | Object | merchant information of the token token的店家信息 | { "_id": "5e840cae77cb07003243f7c7", "email": "[email protected]", "handle": "archertesttest", "name": "Archer Tester" } |
user | Object | user 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"
}
}
Updated almost 3 years ago