简要描述:
请求域名:
- http://xx.com
请求URL:
GET/plugin.platform-order-import.frontend.index.order-reward
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
oid | int | 是 | 订单ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"status": 1,
"order": {
"id": 933,
"uniacid": 6,
"uid": 2455,
"order_sn": "SN230313153102260B",
"price": "100.00",
"goods_price": "100.00",
"goods_total": 1,
"status": 3,
"create_time": "2023-03-13 15:31:28",
"is_deleted": 0,
"is_member_deleted": 0,
"finish_time": "2023-03-16 14:34:09",
"pay_time": "2023-03-13 17:35:45",
"send_time": "2023-03-15 10:50:37",
"cancel_time": "1970-01-01 08:00:00",
"created_at": 1678692688,
"updated_at": 1678948449,
"deleted_at": 0,
"cancel_pay_time": "1970-01-01 08:00:00",
"cancel_send_time": "1970-01-01 08:00:00",
"dispatch_type_id": 0,
"dispatch_price": "0.00",
"discount_price": "0.00",
"pay_type_id": 5,
"order_goods_price": "100.00",
"deduction_price": "0.00",
"refund_id": 0,
"is_plugin": 0,
"change_price": "0.00",
"change_dispatch_price": "0.00",
"comment_status": 0,
"order_pay_id": "58414",
"plugin_id": 63,
"is_virtual": 0,
"mark": "",
"is_pending": 0,
"note": null,
"cost_amount": "100.00",
"shop_name": "需求订单",
"no_refund": 1,
"need_address": 0,
"invoice_type": null,
"rise_type": null,
"collect_name": null,
"company_number": null,
"invoice": null,
"auto_receipt": 0,
"fee_amount": "0.00",
"service_fee_amount": "0.00",
"is_all_send_goods": 0,
"close_reason": null,
"vip_order_goods_price": "100.00",
"initial_freight": "0.00",
"tax_fee": "0.00",
"created_type": 0,
"status_name": "交易完成",
"pay_type_name": "后台",
"process": [],
"has_one_pay_type": {
"id": 5,
"name": "后台",
"plugin_id": 0,
"code": "backend",
"type": 1,
"unit": "元",
"updated_at": "2019-04-15 12:07:20",
"created_at": null,
"deleted_at": null,
"setting_key": "",
"need_password": 0,
"group_id": 4
},
"has_one_behalf_pay": null
},
"reward": [
{
"name": "积分",
"code": "point",
"value": 100
},
{
"name": "余额",
"code": "balance",
"value": 100
},
{
"name": "爱心值",
"code": "love",
"value": 100
},
{
"name": "消费积分",
"code":"integral",
"value": 100
}]
}
}
错误时返回:
{
}
返回 data 参数说明:
参数名 | 类型 | 说明 |
---|---|---|
status | int | 支付事件是否完成:1是0否 |
order | obj | 订单数据 |
reward | array | 奖励信息 |
reward.name | string | 奖励名称 |
reward.value | int | 奖励金额 |
reward.code | string | 奖励标识 |
reward.icon | string | 奖励图标链接 |