Skip to content
On this page

商户数据接口

商户信息

查询当前商户信息

请求

基本
HTTP URLhttps://macromap.cxkjedu.com/api/open/merchant
HTTP MethodGET

请求头

名称类型必填描述
Content-Typestring固定值:"application/json; charset=utf-8"
open-tokenstringapp_api_token
示例值:"d13fc57d46bac217"
了解更多:获取访问凭证 api_token

查询参数

该请求无请求参数

请求体

该请求无请求体

请求体示例

$ curl --location --request GET 'https://macromap.cxkjedu.com/api/open/merchant' \
--header 'content-type:application/json; charset=utf-8' \
--header 'open-token: d13fc57d46bac217'

响应体

名称类型描述
statusstring接口状态 SUCCESS 表示成功
codeint响应代码 200 表示成功
msgstring错误描述
datadata-
∟ idint商户 id
∟ namestring商户名称
∟ emailstring商户邮箱
∟ merchant_idstring商户账号
∟ created_atstring商户创建时间
∟ updated_atstring商户修改时间

响应体示例

{
    "status": "SUCCESS",
    "code": 200,
    "data": {
        "id": 2,
        "name": "宏图系统",
        "email": "htbots@pbk6.cn",
        "merchant_id": "cxexxxxxxxx",
        "created_at": "2021-03-27T04:10:59.000000Z",
        "updated_at": "2021-09-28T13:04:55.000000Z"
    }
}