商品订单-关于商品的订单操作接口

1.获取购买商品的订单状态列表
  1. 接口地址:order/goods/status-list
  2. 请求方式:GET
  3. 返回参数
2.获取购买商品的订单列表
  1. 接口地址:order/goods/index
  2. 请求方式:GET
  3. 返回参数
  4. 字段
    类型
    名称
    备注
    goods_type
    float
    商品类型
    goods_id
    string
    商品ID
    total
    integer
    购买数量
    price
    float
    商品单价
    goods_price
    float
    商品ID
    goods_field
    array
    商品自定义充值字段
    goods_title
    string
    商品名称
    goods_thumb
    string
    商品缩略图路径
    asyn_notice
    string
    商家异步回调网址
    当订单状态发生改变时,会根据这个地址请求商家的接口,将订单信息推送至上架系统中
    remark
    string
    订单备注
    ctime
    string
    创建时间
    status
    integer
    订单状态
    ordersn
    string
    订单编号
    kami
    array
    卡密信息
  5. PHP代码教程
  6. $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. 接口地址:order/goods/one
  2. 请求方式:POST
  3. 提交参数
  4. 字段
    类型
    是否必填
    默认值
    名称
    备注
    ordersn
    string
    null
    订单编号
    订单的唯一标识符
  5. 返回参数
  6. 字段
    类型
    名称
    备注
    goods_type
    float
    商品类型
    goods_id
    string
    商品ID
    total
    integer
    购买数量
    price
    float
    商品单价
    goods_price
    float
    商品ID
    goods_field
    array
    商品自定义充值字段
    goods_title
    string
    商品名称
    goods_thumb
    string
    商品缩略图路径
    asyn_notice
    string
    商家异步回调网址
    当订单状态发生改变时,会根据这个地址请求商家的接口,将订单信息推送至上架系统中
    remark
    string
    订单备注
    ctime
    string
    创建时间
    status
    integer
    订单状态
    ordersn
    string
    订单编号
    kami
    array
    卡密信息
  7. PHP代码教程
  8. $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);
4.订单状态改变时,将订单信息推送至商家系统中
  1. 接口地址:商家填写的回调路径未配置?立即配置
  2. 请求方式:POST
  3. 提交参数
  4. 字段
    类型
    名称
    备注
    goods_type
    float
    商品类型
    goods_id
    string
    商品ID
    total
    integer
    购买数量
    price
    float
    商品单价
    goods_price
    float
    商品ID
    goods_field
    array
    商品自定义充值字段
    goods_title
    string
    商品名称
    goods_thumb
    string
    商品缩略图路径
    asyn_notice
    string
    商家异步回调网址
    当订单状态发生改变时,会根据这个地址请求商家的接口,将订单信息推送至上架系统中
    remark
    string
    订单备注
    ctime
    string
    创建时间
    status
    integer
    订单状态
    ordersn
    string
    订单编号
    kami
    array
    卡密信息
  5. PHP代码教程
  6. $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);

请使用电脑端访问该页面