💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/v1/classpay/order` 请求方式:`POST` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |uid|是|string|学生uid|-| |pay_time|是|string|购买时长|-| |price|是|string|价格|-| |type|是|string|1自付 2代付 3线下|-| |pay_type|否|string|wx微信 alipay支付宝 chinabank中国银行|-| |give_time|否|string|赠送时长|-| |extra_info|否|string|附加信息|-| |pay_status|否|string|状态: -1家长确认中;0待付款;1已付款;2取消;3支付失败;4订单已失效|-| |order_no|否|string|服务端生成的订单号,家长代付的时候需要传|-| |client_ip|否|string|客户端IP地址|127.0.0.1| |origin|否|string|来源 android/ios/web|web| |is_parent|否|string|是否是家长代付 0否 1是|-| **返回示例** - [ping++]success ```json { "ret": 0, "msg": "ok", "data": { "id": "ch_q9Wz5KrXXj9C9aLeL4vLGGiP", "object": "charge", "created": 1502189789, "livemode": false, "paid": false, "refunded": false, "reversed": false, "app": "app_0qv9iTm5qbr5vT4K", "channel": "wx", "order_no": "1066150218978907230", "client_ip": "127.0.0.1", "amount": 11200, "amount_settle": 11200, "currency": "cny", "subject": "课堂功能", "body": "课堂功能购买2个月", "extra": { "limit_pay": "no_credit" }, "time_paid": null, "time_expire": 1502196989, "time_settle": null, "transaction_no": null, "refunds": { "object": "list", "url": "/v1/charges/ch_q9Wz5KrXXj9C9aLeL4vLGGiP/refunds", "has_more": false, "data": [] }, "amount_refunded": 0, "failure_code": null, "failure_msg": null, "metadata": {}, "credential": { "object": "credential", "wx": { "appId": "wxzrjhytbnftutyduz", "partnerId": "1275238301", "prepayId": "1101000000170808j5qvxt8anfb9co88", "nonceStr": "ea80a57117b04dd323efcc48b112f322", "timeStamp": 1502189789, "packageValue": "Sign=WXPay", "sign": "35892b66822d59f97b357d899325e8619d1a329c" } }, "description": null } } ``` - [中银或家长代付]success ```json { "ret": 0, "msg": "ok", "data": [] } ``` - error ```json { "ret": -1, "msg": "参数错误", "data": [] } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2017-08-12 09:02:50 * * * * *