merchants

The merchants available and how each regards you.

Merchant ids are what `merchantStock`, `merchantBuy` and `sell` take. `affinity` is the reputation that gates a merchant's better stock.

In Merchants.

Request

POST /api/v1/sessions/{accountKey}/actions/merchants

Takes no arguments.

Response

`{ merchants }`.

FieldTypeMeaning
merchants[].idstringThe fully-qualified id, and what the other merchant actions take.
merchants[].shortIdstringThe readable form — `Weaponsmith`, `Armourer`, `Alchemist`.
merchants[].affinityintegerYour reputation with them.
merchants[].remainTimeintegerSeconds until their stock rotates.

Example response

{
  "merchants": [
    { "id": "DesignDataMerchant:Id_Merchant_Weaponsmith", "shortId": "Weaponsmith",
      "remainTime": 4120, "isUnidentified": false, "flag": "normal", "affinity": 240 },
    { "id": "DesignDataMerchant:Id_Merchant_Armourer", "shortId": "Armourer",
      "remainTime": 4120, "isUnidentified": false, "flag": "normal", "affinity": 85 }
  ]
}

Errors

CodeWhen
action_failedNo character is in the lobby, or the read timed out.

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.