v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Account

Set Hosting Plan

Selects a hosting plan for the first time and creates an order and invoice

post/v1/account/hosting_plan

Request body

firstnamestring required

First name used on the billing information for the account

lastnamestring required

Last name used on the billing information for the account

billing_product_idinteger required

ID of the chosen product

coupon_codestring

Coupon Code

billing_cycle'Monthly' | 'Annual' required
payment_type'paypal' | 'stripe' required
payment_tokenstring

Payment Token for the payment method (if applicable)

Example request

{
  "billing_cycle": "Monthly",
  "payment_type": "paypal",
  "payment_token": "seti_1R4heYIpHZfwip1PKzfxrXkO"
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": []
}