Led the contents of the inventory STEAM (coupons and cards) on the site, and for the convenience of the exchange decided to add Trade Offer Link for each item. For cards ( AppID 753/6 ) this was not a problem and the link looks like this:https://steamcommunity.com/tradeoffer/new/?for_tradingcard=218640_2&partner=123456789&token=123456
.
When you click on it, the exchange window opens and the necessary card is inserted automatically (no need to search).
Faced the problem of forming such a link for the Coupons category ( AppID 753/3 ). A search on this subject gave no information at all. I tried to do it in different ways:
for_coupon=classid купона for_item=classid купона
Coupon data can be obtained as a JSON by making a request:
http://steamcommunity.com/id/CUSTOMURL/inventory/json/753/3?l=russian
How to create such a link for coupons?