tradeAnswer
Accept or decline an incoming trade request.
Answers the request in `trade.incoming`. Accepting opens the trade window, which then appears as `trade.trading`.
In Trading.
Request
POST /api/v1/sessions/{accountKey}/actions/tradeAnswer
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
accountId (account_id) | string | yes | Who asked — from `trade.incoming`. |
accept | boolean | yes | Whether to accept. |
Example request
{ "accountId": "acc-5", "accept": true }
Response
`{ ok, accept }`.
Example response
{ "ok": true, "accept": true }
Errors
| Code | When |
|---|---|
action_failed | No character is in the lobby. |
plan_limit | Not on the free plan. |
See also
DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.