Skip to content

POST /api/user/payment/orders

请求

内容
方法POST
路径/api/user/payment/orders
鉴权登录用户

Header 参数

参数位置类型必填说明
AuthorizationHeaderstringBearer <jwt>
Content-TypeHeaderstringapplication/json

Path 参数

无。

Query 参数

无。

Body 参数

参数位置类型必填说明
amountBodystring/number金额。
methodBodystring支付方式。

返回值

订单详情和 payment_url。

返回字段

字段类型说明
order_nostring订单号。
amountstring到账余额金额。
rmb_amountstring人民币支付金额。
methodstring支付方式。
statusstring订单状态:pending、paid。
payment_urlstring支付跳转 URL,仅创建订单时返回。
created_atstring创建时间。
paid_atstring支付完成时间,未支付时为空或缺省。

错误

状态码说明
400参数不合法。
401未登录或登录失效。
403无权限。
404资源不存在。
500服务端错误。

基于 MIT 协议发布(社区版)