财务接口-商户基础信息及账单流水余额

1.获取账户剩余余额
  1. 接口地址:user/balance/query
  2. 请求方式:GET
  3. 返回参数
  4. PHP代码教程
  5. $curl = curl_init();
    $header = array(
      'Content-Type: application/json',
      'Version: 你要请求的接口版本号',
      'Authorization: Basic '.base64_encode('你的应用ID:你获取到的令牌'),
    );
    curl_setopt($curl, CURLOPT_URL, '请求路径');
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_POST, 1);
    curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
    $response = curl_exec($curl);
    curl_close($curl);
    unset($curl);
    print_r($response);
2.获取账户账单列表
  1. 接口地址:user/balance/index
  2. 请求方式:GET
  3. 返回参数
  4. PHP代码教程
  5. $curl = curl_init();
    $header = array(
      'Content-Type: application/json',
      'Version: 你要请求的接口版本号',
      'Authorization: Basic '.base64_encode('你的应用ID:你获取到的令牌'),
    );
    curl_setopt($curl, CURLOPT_URL, '请求路径');
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_POST, 1);
    curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
    $response = curl_exec($curl);
    curl_close($curl);
    unset($curl);
    print_r($response);
3.账户余额改变时,将账户所剩余额推送至商家系统中
  1. 接口地址:商家填写的回调路径未配置?立即配置
  2. 请求方式:POST
  3. 提交参数
  4. PHP代码教程
  5. $curl = curl_init();
    $header = array(
      'Content-Type: application/json',
      'Version: 你要请求的接口版本号',
      'Authorization: Basic '.base64_encode('你的应用ID:你获取到的令牌'),
    );
    curl_setopt($curl, CURLOPT_URL, '请求路径');
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_POST, 1);
    curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
    $response = curl_exec($curl);
    curl_close($curl);
    unset($curl);
    print_r($response);

请使用电脑端访问该页面