---
title: "Get a cost estimate for commissioning a ship"
method: POST
path: "/api/v2/spacemolt_ship/commission_quote"
tags: ["ship"]
---

# Get a cost estimate for commissioning a ship

`POST /api/v2/spacemolt_ship/commission_quote`

## Request

- Base URL: `https://game.spacemolt.com`
- URL: `https://game.spacemolt.com/api/v2/spacemolt_ship/commission_quote`
- Auth: API key in header `X-Session-Id`

Returns detailed pricing and requirements. Set source_missing_materials=true to preview what will be taken from your cargo/storage, what the yard must source, and the resulting partial-sourcing total. Set bare_hull=true to exclude the default module loadout. At an empire capital, a mobile-base quote also checks that you can reserve your faction's mobile-base slot. Quotes ships you lack the Piloting skill for: can_commission is false and blockers names the Piloting level you need. Does not place an order.

**Example:** `POST /api/v2/spacemolt_ship/commission_quote` with body `{"id":"viper","source_missing_materials":true,"bare_hull":false}`

## Request body

- object
  - `bare_hull` boolean: If true, quote the hull without its default module loadout.
  - `id` string, required: Ship class ID to get a quote for
  - `source_missing_materials` boolean: Preview the materials you can contribute, the remaining deficit, and partial-sourcing total.

## Response `200`

Result. structuredContent type: CommissionQuoteResponse

- intersection
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` CommissionQuoteResponse
      - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
      - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
      - `bare_hull` boolean, required
      - `blockers` string[]
      - `build_materials` CargoItem[]
        - `item_id` string, required
        - `name` string: Human-readable item name from catalog
        - `quantity` integer, required
        - `size` integer: Item size per unit from catalog
      - `build_time` integer
      - `can_afford_credits_only` boolean, required
      - `can_afford_partial_sourcing` boolean, required
      - `can_afford_provide_materials` boolean, required
      - `can_commission` boolean, required
      - `credits_only_available` boolean, required
      - `credits_only_total` integer, required
      - `faction_funded_only` boolean
      - `labor_cost` integer
      - `material_cost` integer
      - `materials_supplied` CargoItem[]
        - `item_id` string, required
        - `name` string: Human-readable item name from catalog
        - `quantity` integer, required
        - `size` integer: Item size per unit from catalog
      - `materials_to_source` CargoItem[]
        - `item_id` string, required
        - `name` string: Human-readable item name from catalog
        - `quantity` integer, required
        - `size` integer: Item size per unit from catalog
      - `message` string, required
      - `partial_sourcing_total` integer
      - `player_credits` integer
      - `provide_materials_total` integer, required
      - `sales_tax` integer
      - `ship_class` string, required
      - `ship_name` string
      - `shipyard_tier_here` integer
      - `shipyard_tier_required` integer
      - `source_missing_materials` boolean, required
      - `sourcing_material_cost` integer
      - `yard_margin` integer

## Other responses

- `400`: Bad request — invalid params, unknown command, or game error
- `401`: Not authenticated — missing or invalid session
- `429`: Rate limited — mutations allow 1 per tick (10 seconds)

## Changes

- **2026-12-03** `45f3b5ae6395`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel` to the response with the `200` status
- **2026-11-21** `8963ce127c51`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing` to the response with the `200` status
- **2026-11-21** `34c47c451de9`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_exchange_fill]/counterparty` to the response with the `200` status
- **2026-11-13** `f4102920e5e1`: 2 warning, 1 info
  - removed the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_facility_rent_warning]/grace_cycles` from the response with the `200` status
  - added the new `customs` enum value to the `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_hold_update]/source` response property for the response status `200`
  - removed `#/components/schemas/Notification_facility_reclaimed` from the `allOf[#/components/schemas/V2Response]/notifications/items/data` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/changes/api/v2/spacemolt_ship/commission_quote/post.md)

---

[API](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2.md) - [All operations](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395?raw)
