General
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
or
or
or
or
Responses
200
Success
application/json
successbooleanRequiredExample:
truemessagestringRequiredExample:
Order paid successfullyorder_idintegerRequired
400
Validation/balance error/insufficient stock
application/json
401
Unauthorized
application/json
post
/user/api/orders/purchaseAuthorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
productstringRequiredExample:
Datacenter Proxylocationstring · nullableOptionalExample:
DEcyclestring · nullableOptionalExample:
monthlyquantityinteger · nullableOptionalExample:
10promo_codestring · nullableOptionalExample:
SAVE10Responses
200
Success
application/json
original_priceintegerOptional
final_priceintegerOptional
discount_percentintegerOptional
400
Validation error
application/json
401
Unauthorized
application/json
get
/user/api/orders/calculateAuthorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
order_idintegerRequired
Body
cyclestringRequiredExample:
monthlyResponses
200
Success
application/json
successbooleanOptional
messagestringOptional
order_idintegerOptional
original_priceintegerOptional
final_priceintegerOptional
discount_percentintegerOptional
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}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
order_idintegerRequired
Query parameters
auto_renewalbooleanRequiredExample:
trueResponses
200
Success
application/json
successbooleanOptional
messagestringOptional
400
Invalid product for this operation
application/json
401
Unauthorized
application/json
post
/user/api/orders/edit-auto-renewal/{order_id}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
statusstringRequired
active | on-hold | cancelled | all
offsetintegerOptionalExample:
Result offset (default 0)
0limitinteger · min: 1 · max: 100OptionalExample:
Page size (1..100, default 20)
20Responses
200
Order list
application/json
successbooleanRequired
countintegerOptional
Number of orders in the current result set
prevstring · nullableOptional
Previous page URI
nextstring · nullableOptional
Next page URI
get
/user/api/orders200
Order list
Last updated
Was this helpful?

