Create whitelabel offer

POST /v1/services/{service_uuid}/deposits/whitelabel

For this endpoint you need to pass item ids in an array from get user inventory endpoint. Item ids start with single letter "i"

Path parameters

  • service_uuid uuid Required

    Service ID

application/json

Body Required

  • tradeUrl TradeURL Required

    User TradeUrl

  • locale char(2) Required

    User locale

  • currencyCode char(3) Required

    User currency

  • appid integer Required

    Steam App ID (CS2 = 730)

  • custom string
  • steamId string Required
  • items array[string] Required

    Array of skin ids which will be traded (item id must start with "i")

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • success boolean
    • type string
    • data object
      Hide data attributes Show data attributes object
      • depositId string
      • offerId string
      • bot object
        Hide bot attributes Show bot attributes object
        • name string
        • avatar string
        • level integer
        • date string
  • 400 application/json

    Invalid tradeUrl

    Hide response attributes Show response attributes object
    • success boolean
    • type string
    • message string
    • data object
      Hide data attributes Show data attributes object
      • code string
      • messageInLocale string
POST /v1/services/{service_uuid}/deposits/whitelabel
curl \
 --request POST 'https://api.skinsmoney.gg/v1/services/661512bf-4dd2-4404-a58a-210acf868665/deposits/whitelabel' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"tradeUrl":"https://steamcommunity.com/tradeoffer/new/?partner=000\u0026token=xxx","locale":"pl","currencyCode":"PLN","appid":"730","custom":"Your_id_from_your_integration","steamId":"Buyer SteamId64","items":["[\"i41425107258\",\"i41180483578\"]"]}'
Request examples
{
  "tradeUrl": "https://steamcommunity.com/tradeoffer/new/?partner=000&token=xxx",
  "locale": "pl",
  "currencyCode": "PLN",
  "appid": "730",
  "custom": "Your_id_from_your_integration",
  "steamId": "Buyer SteamId64",
  "items": [
    "[\"i41425107258\",\"i41180483578\"]"
  ]
}
Response examples (200)
{
  "data": {
    "bot": {
      "date": "1632167666",
      "name": "SWAD",
      "level": 4,
      "avatar": "https://avatars.akamai.steamstatic.com/72537ba23c39b8585506371de411d2e409d53c79_full.jpg"
    },
    "offerId": "7815717723",
    "depositId": "a29071f3-a2a6-4f20-824a-f776e7180064"
  },
  "type": "response",
  "success": true
}
Response examples (400)
{
  "data": {
    "code": "INVALID_TRADE_URL",
    "messageInLocale": "pl"
  },
  "type": "error",
  "message": "Błędny Trade URL. Upewnij się, że twoje konto ma publiczny ekwipunek.",
  "success": false
}