Accept an offer and sell the player
accept_offerSell a player by accepting an incoming offer. The transfer takes effect at once and cannot be undone, so verify the player and offered price first.
Instructions
Accept an offer for one of the manager's players, selling them.
This cannot be undone. Unlike a bid, which queues until the transfer round and can be withdrawn, an acceptance takes effect the moment it is made. The player leaves the squad and there is nothing to reverse it with.
Get the user's explicit agreement first, and tell them two things before asking:
who is being sold, and how the price compares to what the player is worth.
get_offers reports that as premium and premium_pct — a negative value means
the offer is below the player's market value, which is common and easy to miss.
Ids come from get_offers; only offers whose direction is incoming can be
accepted. The player and the price are taken from the offer itself, never passed
in, so what is accepted is exactly what was offered.
Check ok and message in the result. Comunio can report overall success while
rejecting the acceptance itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether Comunio accepted this particular acceptance | |
| buyer | No | Who bought the player | |
| price | Yes | What was received for them, in euros | |
| player | No | That player's name | |
| message | No | Comunio's reason, when it gives one | |
| premium | Yes | Price minus the player's quoted value. Negative means sold below what they were worth. | |
| offer_id | Yes | The offer that was accepted | |
| player_id | Yes | Player who has left the squad | |
| premium_pct | Yes | The same difference as a percentage | |
| applied_immediately | Yes | True for an acceptance: it takes effect at once and cannot be reversed |