HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

How to get access_token

❗️

注意

須先向 SHOPLINE 申請使用 OpenAPI,才會在管理員設定看到 API Auth 功能。
If you would like to use OpenAPI, please apply for the permission from your correspondent SHOPLINE contact to enable API Auth in Staff Settings.

Settings > Staff Settings (設定 > 管理員設定 )

1517

Step1
Create a new Staff, for Open API use purpose.

1499

Step2 Set up an internal administrator or an E-mail of a cooperating vendor to create an administrator

1504

Step1
Create a new administrator to use OpenAPI
建立一個新的管理員,來代表使用 OpenAPI

1507

Step2
Set up an internal administrator or partner vendor E-mail to create an administrator
設定一個 內部管理員 或是 協作廠商 E-mail 來建立管理員

1499

Step3
Click the newly added administrator to edit
點選新增的管理員進行編輯

1493

Step4
Click on API Auth
Select the API that requires authorization
點選 API Auth tap
選擇需要授權的 API

1509

Step5
You can choose Expored At (expiration time), if you want to open to cooperating manufacturers, it is recommended to set an expiration time.
If Expored At is not selected, it means that the access_token will not expire
Finally, you can press Generate to generate access_token

可以選擇 Expored At (過期時間),若是要開放給協作廠商,建議設定一個過期時間。
若不選擇 Expored At 則代表 access_token 不會過期
最後可以按下 Generate 產生 access_token

1508

Step6
Finally, you can copy the Token and start using OpenAPI
最後可以複製 Token 開始使用 OpenAPI