---
title: "Set Hosting Plan"
method: POST
path: "/v1/account/hosting_plan"
tags: ["Account"]
---

# Set Hosting Plan

`POST /v1/account/hosting_plan`

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

## Request body

- CreateAccountHostingPlanRequest
  - `firstname` string, required — First name used on the billing information for the account
  - `lastname` string, required — Last name used on the billing information for the account
  - `billing_product_id` integer, required — ID of the chosen product
  - `coupon_code` string — Coupon Code
  - `billing_cycle` 'Monthly' | 'Annual', required
  - `payment_type` 'paypal' | 'stripe', required
  - `payment_token` string — Payment Token for the payment method (if applicable)

## Response `200`

OK

- CreateAccountHostingPlanResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object, required
    - `order_id` integer — ID of the order that was created, not set on a preview
    - `invoice_id` integer — ID of the invoice that was created, not set on a preview
    - `total` number, required — Total amount of the invoice

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `405` — Invalid input
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/revisions/db0dcbbc5764/schema)
