offerItems not working
Opened this issue · 0 comments
nbedell commented
I'm sure I'm doing something wrong, but the comments confuse me a bit
for the items: string[]
needing to be an array of item Id's, is that the id of the item (ex: Salewa "544fb45d4bdc2dee738b4568") or the _tpl of it?
async function sellItem(itemIds, price) {
const roubleId = "5449016a4bdc2d6f028b456f";
try {
const itemSold = await client.offerItem(itemIds, {
_tpl: roubleId,
price: price
});
console.log(JSON.stringify(itemSold));
} catch (e) {
console.log(e);
}
}
My intention there was to sell a Salewa for x amout of roubles
always returns a 228 error "cant find id 544fb45d4bdc2dee738b4568". I've changed it to tpl and get the same problem.
And for clarification,, the requirements._tpl is what you're selling the item for right? so roubles_tpl (or id?) and the price is the amount?