General
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
请求体
或
或
或
或
响应
200
Success
application/json
successboolean必填Example:
truemessagestring必填Example:
Order paid successfullyorder_idinteger必填
400
Validation/balance error/insufficient stock
application/json
401
Unauthorized
application/json
post/user/api/orders/purchase
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
查询参数
productstring必填Example:
Datacenter Proxylocationstring · 可为 null可选Example:
DEcyclestring · 可为 null可选Example:
monthlyquantityinteger · 可为 null可选Example:
10promo_codestring · 可为 null可选Example:
SAVE10响应
200
Success
application/json
original_priceinteger可选
final_priceinteger可选
discount_percentinteger可选
400
Validation error
application/json
401
Unauthorized
application/json
get/user/api/orders/calculate
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
路径参数
order_idinteger必填
请求体
cyclestring必填Example:
monthly响应
200
Success
application/json
successboolean可选
messagestring可选
order_idinteger可选
original_priceinteger可选
final_priceinteger可选
discount_percentinteger可选
400
Invalid product or cycle
application/json
401
Unauthorized
application/json
403
Cycle is not available for this user
application/json
post/user/api/orders/change-billing-cycle/{order_id}
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
路径参数
order_idinteger必填
查询参数
auto_renewalboolean必填Example:
true响应
200
Success
application/json
successboolean可选
messagestring可选
400
Invalid product for this operation
application/json
401
Unauthorized
application/json
post/user/api/orders/edit-auto-renewal/{order_id}
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
查询参数
statusstring必填
active | on-hold | cancelled | all
offsetinteger可选Example:
Result offset (default 0)
0limitinteger · 最小值: 1 · 最大值: 100可选Example:
Page size (1..100, default 20)
20响应
200
Order list
application/json
successboolean必填
countinteger可选
Number of orders in the current result set
prevstring · 可为 null可选
Previous page URI
nextstring · 可为 null可选
Next page URI
get/user/api/orders
200
Order list
最后更新于
这有帮助吗?

