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 }`.
| Field | Type | Meaning |
|---|---|---|
merchants[].id | string | The fully-qualified id, and what the other merchant actions take. |
merchants[].shortId | string | The readable form — `Weaponsmith`, `Armourer`, `Alchemist`. |
merchants[].affinity | integer | Your reputation with them. |
merchants[].remainTime | integer | Seconds 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
| Code | When |
|---|---|
action_failed | No 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.