Tims小程序
  1. 业务方对接接口
Tims小程序
  • account
    • 业务方对接接口
      • 外部接口-创建加盟商或总部员工账号
        POST
      • 外部接口-登录
        POST
      • 外部接口-token续期
        GET
      • 外部接口-重置密码
        PUT
  1. 业务方对接接口

外部接口-登录

开发中
POST
https://uat-account-mapi.timhortons.com.cn/open/authentication/login
最后修改时间:2023-07-14 09:58:50
登录,目前仅支持加盟商账号和总部员工账号登录,对于不支持的账号类型,返回403无权限

请求参数

Body 参数application/json
username
string 
必需
总部员工账号传员工邮箱,加盟商账号传username,必传
password
string 
密码,必传
必需
brandCode
string 
必需
要登录的品牌编号,tims品牌1001,必传
示例
{
    "username": "string",
    "password": "string",
    "brandCode": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://uat-account-mapi.timhortons.com.cn/open/authentication/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "string",
    "password": "string",
    "brandCode": "string"
}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
msg
string 
必需
data
string 
必需
返回token,后续请求门店主档接口需要Authorization header带上
示例
{
    "code": 200,
    "msg": "操作成功",
    "data": "Bearer xxxxxxxxxxxxxxx"
}
🟠403无权限
🟠401账号或密码错误
修改于 2023-07-14 09:58:50
上一页
外部接口-创建加盟商或总部员工账号
下一页
外部接口-token续期
Built with