接口公共请求参数 - shoufuyou/Shoufuyou-SDK-Doucument-for-core-client GitHub Wiki
首付游服务器提供的所有API接口均使用https协议(测试环境使用http协议)进行网络通讯,请求和响应均采用form-urlencoded的报文格式。
参数 | 参数名称 | 类型 | 必填 | 描述 | 范例 |
merchant_code | 商户号 | String | 是 | 商户号 | 3300000001 |
method | 接口名称 | String | 是 | 接口名称 | 参见下述业务接口的具体定义 |
charset | 字符编码 | String | 是 | 请求使用的编码格式,只支持UTF-8 | UTF-8 |
sign | 签名 | String | 是 | 商户请求参数的签名串 | 详见首付游SDK里的代码示例 |
timestamp | 时间戳 | String | 是 | 发送请求的时间,格式"1450173885" | 1450173885 |
version | 版本号 | String | 是 | 版本类型 | 2.0 |
biz_content | 业务参数 | String | 是 | JSON格式,具体包含的内容参见各个接口的业务参数描述 | 详见下方各个业务接口 |
{
"timestamp": "1462049620",
"merchant_code": "10102100001",
"charset": "UTF-8",
"version": "1.0",
"biz_content":“AAf9CakTuR%2Fyy4gg6FDI5DbFlCvdxc9eJuKhNx%2FGeFXPq4JNaN8%2BXlwkYGBiXO2CWm1Psd9c0snRSvJ1spGatt9OfVKJ8j2DHBQMAuIm0MIV7khRqmtIBKsE66UT89BHme4CQHDsIs8V4whakLCGbqe4wXyO%2FmIgEMbV1Huya3cPxtUYEek%2FazsPILUyTlCg6GZI9mNTCqJ9UDpQOUl%2BRUXxh2jAGm0CtchEqEB3%2F7VAAHYNhommPgxlmsFLtyogHpWHJpOu6mZCPd3bA4TcDQlh
G6VoVNQqk8%2FTXPRADTqZFpfTgEhL%2FvnDOEpftiu45hx8SuyhgDHwYnu2VnPqrchNIDcussBA9L7sxxIw8vWJxbczQq1zaSvh3LZcFCGjRSvlieC%2B%2F2Za7bok0luJStBwG31YR7a3S6OkzA6eA3GomuIz58QE0DDNCAIvvlhs8tIOztzx50RFe3RpFP2ZbaOomW%2FLekAaFQqpT8tiT8deQpHDB60Wd5GZcivuWFOFHxePNXT3u2ZobioMsXdcrTUeqgo%2Fd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