Skip to content
关注公众号,获取新课通知

创建订单


接口URL

http://demonuxtapi.dishait.cn/mobile/order/save

请求方式

POST

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
appidbd9d01ecc75dbbaaefceString网校唯一appid
tokeneyj...NjString用户token

请求Body参数

参数名示例值参数类型是否必填参数描述
goods_id542Integer课程/专栏/电子书ID
typecourseString类型:course课程,column专栏,book电子书
user_coupon_id5Integer用户优惠券ID

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"id": 16,
		"school_id": 11,
		"user_id": 252,
		"no": "2021617212839_w8riwidsp",
		"status": "pendding",
		"price": 79,
		"total_price": "99.00",
		"type": "default",
		"updated_time": "2021-06-17T13:28:39.972Z",
		"created_time": "2021-06-17T13:28:39.972Z"
	},
	"code": 20000
}