Merchant Deposit v2

Create merchant deposit

Changed on

Create a deposit for a user. You can create a deposit in two ways:

  1. Load a user's inventory BEFORE creating a deposit. Create a deposit with an already filled array of items (steam_id, trade_url_token, game, items ARE REQUIRED FOR THIS ACTION!).

  2. Create a deposit without items, call the /create-steam-offer method later.

post/v2/merchant/create-deposit

Request

  • Base URL
    https://api.waxpeer.com
  • Auth
    none declared

Query parameters

apistring required

Your <a target='_blank' href='https://waxpeer.com/profile/user'>WAXPEER API</a>

Request body

merchantstring required

Your merchant name

deposit_idstring required

Your unique custom deposit id (string, max 50 characters)

steam_idstring nullable

Steam ID (17 digits)

trade_url_tokenstring nullable

Trade URL token (8 characters)

game'csgo' nullable

Game type

itemsstring[] nullable

If you want a Steam offer to be created after this request, you must provide a list of Steam item IDs (asset IDs) as an array of strings.

Steam_id, trade_url_token and game are required when sending items!

Example request

{
  "merchant": "mymerchant",
  "deposit_id": "123456asd",
  "steam_id": "76561198000000000",
  "trade_url_token": "abcdefgh",
  "game": "csgo",
  "items": [
    "123",
    "456",
    "789"
  ]
}

Response

Please open the schema to see the response structure, fields and their descriptions

OR

Example response

{
  "status": "success",
  "url": "https://pay.waxpeer.com/merchant/mymerchant?hash=7USFcwzEvgxs6l2u3ow4IQxlgJBYEZZt",
  "transaction_id": 123456,
  "hash": "7USFcwzEvgxs6l2u3ow4IQxlgJBYEZZt",
  "listed": [
    {
      "name": "AWP | Asiimov (Field-tested)",
      "item_id": "141414144",
      "price": 1000
    }
  ],
  "failed": [
    {
      "item_id": "141414145",
      "price": 1000,
      "name": "AWP | Asiimov (Field-tested)",
      "error_message": "item_not_acceptable"
    }
  ]
}

Changes

    • info

      added the non-success response with the status

    • info

      removed the invalid_api enum value from the oneOf[subschema #2]/error_message response property for the response status