字段 | 类型 | 名称 | 备注 |
---|
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 | 卡密信息 |
$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);
字段 | 类型 | 是否必填 | 默认值 | 名称 | 备注 |
---|
ordersn | string | 是 | null | 订单编号 | 订单的唯一标识符 |
字段 | 类型 | 名称 | 备注 |
---|
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 | 卡密信息 |
$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);
字段 | 类型 | 名称 | 备注 |
---|
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 | 卡密信息 |
$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);