---
title: "Sell Cargo"
method: POST
path: "/my/ships/{shipSymbol}/sell"
tags: ["Fleet"]
---

# Sell Cargo

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

Sell cargo in your ship to a market that trades this cargo. The ship must be docked in a waypoint that has the `Marketplace` trait in order to use this function.

## Path parameters

- `shipSymbol` string, required

## Request body

- object
  - `symbol` TradeSymbolJson, required — unresolved $ref
  - `units` integer, required — Amounts of units to sell of the selected good.

## Response `201`

Cargo was successfully sold.

- object
  - `data` object, required
    - `agent` AgentJson, required — unresolved $ref
    - `cargo` ShipCargoJson, required — unresolved $ref
    - `transaction` MarketTransactionJson, required — 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)
