---
title: "Refuel Ship"
method: POST
path: "/my/ships/{shipSymbol}/refuel"
tags: ["Fleet"]
---

# Refuel Ship

`POST /my/ships/{shipSymbol}/refuel`

Refuel your ship by buying fuel from the local market.

Requires the ship to be docked in a waypoint that has the `Marketplace` trait, and the market must be selling fuel in order to refuel.

Each fuel bought from the market replenishes 100 units in your ship's fuel.

Ships will always be refuel to their frame's maximum fuel capacity when using this action.

## Path parameters

- `shipSymbol` string, required

## Request body

- object
  - `units` integer — The amount of fuel to fill in the ship's tanks. When not specified, the ship will be refueled to its maximum fuel capacity. If the amount specified is greater than the ship's remaining capacity, the ship will only be refueled to its maximum fuel capacity. The amount specified is not in market units but in ship fuel units.
  - `fromCargo` boolean — Wether to use the FUEL thats in your cargo or not. Default: false

## Response `200`

Refueled successfully.

- object
  - `data` object, required
    - `agent` AgentJson, required — unresolved $ref
    - `fuel` ShipFuelJson, required — unresolved $ref
    - `transaction` MarketTransactionJson, required — unresolved $ref
    - `cargo` ShipCargoJson — unresolved $ref

---

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