Payment

Check whether a Steam login can be topped up

Changed on

Runs the same validation as POST /v1/steam-topup without moving money. valid: true means the login is supported for top-up. Pass amount to also get the exact give_amount the top-up would deliver (give_amount = floor(amount × 10000 / price_bp), all in 1000 = $1 units. price_bp is what your account pays from its Waxpeer balance per $1 of Steam credit, ×10000: 10000 = face value (the default), 9600 = $96 for $100 on Steam (a 4 % discount), 10250 = $102.50 for $100. An account still on an older fee-based rate has price_bp: null and gets give_amount = amount − floor(amount × fee_bp / 10000) instead; GET /v1/steam-topup/validate?amount= always reports the exact give_amount. No other fee applies to Steam top-ups. give_amount must be between 100 ($0.10) and 1000000 ($1,000, the per-top-up cap of our Steam provider); outside that the top-up is refused before any money moves (e.g. Max $1,000 per Steam top-up after your discount).) and the same amount checks as POST (success: false with msg on an invalid amount, one outside the min/max, or one whose give_amount is outside $0.10..$1,000).

get/v1/steam-topup/validate

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>

steam_loginstring required

Steam account login to validate

amountinteger

Optional gross amount to quote, 1000 = $1

Response

Validation result

successboolean

Whether the check itself ran

validboolean

Whether the login is supported for top-up

msgstring nullable

Reason when valid is false

amountinteger

Echo of the quoted amount, only when amount was passed and the check ran

give_amountinteger

What POST /v1/steam-topup would send to the Steam wallet for amount, 1000 = $1; at most 1000000 ($1,000)

price_bpinteger nullable

Your Steam top-up price: balance paid per $1 of Steam credit ×10000 (10000 = face value, 9600 = 4 % discount). Null on an older fee-based rate: use fee_bp

fee_bpinteger

The same rate as a fee in basis points of the amount, for older clients: 10000 − round(10^8 / price_bp) (an older fee-based rate reports its exact fee). NEGATIVE means a bonus (e.g. -417 at price_bp 9600); 0 at face value

Example response

{
  "success": true,
  "valid": true,
  "msg": "Steam account is not available for top-up",
  "amount": 5000,
  "give_amount": 5208,
  "price_bp": 9600,
  "fee_bp": -417
}

Changes

    • info

      added the optional property price_bp to the response with the status

    • info

      added the new optional query request parameter amount

    • info

      added the optional property amount to the response with the status

    2 more changes in this revision