Skip to content

Trade Offer Methods

Oleksandr Alcantara edited this page Jan 3, 2023 · 6 revisions

v4.1.0 or later is required to use this Trade Offer Methods.

In order to use these methods you need authorization cookies. To get cookies use Protobuf Steam Auth package.

Methods

Accept Trade Offer

Arguments: tradeOfferId, options

List of options:

Name Default value Type Required Description
partner_id null string/int Yes SteamID64 of partner

Example of Accept Trade Offer

Cancel Trade Offer

Arguments: tradeOfferId

Options are not needed

Example of Cancel Trade Offer

Countered Offer

Arguments: tradeOfferId, options

List of options:

Name Default value Type Required Description
partner_id null string/int Yes SteamID64 of partner
message "" string No Trade Offer message
my_items [] array Yes Offered items
partner_items [] array Yes Received items from partner

Keys my_items and partner_items must contains following array(-s) with keys:

  • app_id
  • context_id
  • amount
  • asset_id

Example of Countered Offer

Create Trade Offer

Arguments: tradeLink, options

List of options:

Name Default value Type Required Description
partner_id null string/int Yes SteamID64 of partner
message "" string No Trade Offer message
my_items [] array Yes Offered items
partner_items [] array Yes Received items from partner

Keys my_items and partner_items must contains following array(-s) with keys:

  • app_id
  • context_id
  • amount
  • asset_id

Example of Create Trade Offer

Decline Trade Offer

Arguments: tradeOfferId

Options are not needed

Example of Decline Trade Offer

Incoming Offers

Arguments: options

List of options:

Name Default value Type Required Description
history false bool No Allows to show old/completed offers

Example of Incoming Offers

Sent Offers

Arguments: options

List of options:

Name Default value Type Required Description
history false bool No Allows us to show old/completed offers

Example of Sent Offers

Trade Link

Options are not needed

Example of Trade Link

Trade Offer

Arguments: tradeOfferId

Options are not needed

Example of Trade Offer

Trade Receipt

Arguments: tradeOfferId, options

List of options:

Name Default value Type Required Description
language english string No Return data in your language

Example of Trade Receipt