API Request

API 请求

接入方需要先获取token才能正常使用API

发送请求 使用不同的Service参数操作访问API

  • 将所有的业务参数json序列化以后生成bizContent

  • 使用商户私钥对bizContent进行签名,生成sign

  • bizContent进行AES加密

通用请求

POST https://reload.chntax.cn/api/v2/card

使用POST方法

Headers

Name
Type
Description

Authorization*

String

Bearer token

例如: Bearer eyJ0eXAiOiJKV...

Request Body

Name
Type
Description

service*

String

例:createCard

bizContent*

String

AES加密后的字符串,包含所有业务参数

sign*

String

签名

API Request 示例

service参数详见 API列表

API 响应

API 返回为json格式, 当statusCode=0时表示API请求成功,具体的业务返回参数在bizContent

处理返回参数

  • bizContent字段做AES解密

  • 对解密后的bizContent字段验签

bizContent 业务数据示例

最后更新于