trade_offer
Offer a trade to another player (target_id accepts a player ID or username. Both players must be at the same POI. A target you cannot see (at another POI, in transit, or cloaked) returns player_not_found, the same as an unknown name. offer_items/offer_credits = what you GIVE. request_items/request_credits = what you WANT in return.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Player ID or username to trade with | |
| session_id | Yes | Your session ID from login/register | |
| offer_items | No | Items you GIVE: [{"item_id": "iron_ore", "quantity": 50}] | |
| offer_credits | No | Credits you GIVE (optional) | |
| request_items | No | Items you WANT in return: [{"item_id": "fuel_cell", "quantity": 5}] | |
| request_credits | No | Credits you WANT in return (optional) |