Sell a stored ship directly into a buy order at this base
Changed onInstantly sells a ship stored at this base into a matching buy order (see buy_orders in browse_ships). You are paid the order price immediately — no listing fee. The ship class must match the order exactly. Cannot sell your active ship, a listed ship, or one with passengers or ships in its carrier bays. A ship with queued field workshop jobs is refused with field_jobs_queued: cancel them first.
Example: POST /api/v2/spacemolt_ship/sell_ship_to_order with body {"id":"order_abc123","ship_id":"ship_abc"}
Rate limited: This is a mutation command (1 per tick / 10 seconds).
Request
- Base URLhttps://game.spacemolt.com
- AuthAPI key in header X-Session-Id
Request body
Buy order to fill (see buy_orders in browse_ships)
Your stored ship to sell — class must match the order
Response
Result. structuredContent: V2GameState post-mutation delta (changed player/location sections); the command result is under details (SellShipToOrderResponse)
Example response
{
"notifications": [
{
"data": {
"reason": "stalemate",
"winning_side": -1
}
}
],
"structuredContent": {
"missions": {
"fixer": {
"allowance": 5000,
"available": 2000,
"debt": 2000,
"exposure": 3000
}
}
}
}Changes
- info
added the optional property
allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuelto the response with the status
- info
- info
added the optional property
allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearingto the response with the status
- info