Skip to content
Revadike edited this page Sep 23, 2021 · 1 revision

POST /account/ajaxregisterkey

Rate limits

In the past 60 mins, there can be at most 10 failed activations and/or 50 succesful activations. Free license activations do not count.

Request

Authenticated: Yes

Method: POST

Host: store.steampowered.com

Path: /account/ajaxregisterkey

Form Data:

Name Type Required Description
product_key string Yes The value of the Steam product key
sessionid string Yes The value of the sessionid cookie

Response

200 OK

Name Type Description
purchase_result_details number TODO
purchase_receipt_info object TODO
purchase_receipt_info.transactionid string TODO
purchase_receipt_info.packageid number TODO
purchase_receipt_info.purchase_status number TODO
purchase_receipt_info.result_detail number TODO
purchase_receipt_info.transaction_time number TODO
purchase_receipt_info.payment_method number TODO
purchase_receipt_info.base_price string TODO
purchase_receipt_info.total_discount string TODO
purchase_receipt_info.tax string TODO
purchase_receipt_info.shipping string TODO
purchase_receipt_info.currency_code number TODO
purchase_receipt_info.country_code string TODO
purchase_receipt_info.error_headline string TODO
purchase_receipt_info.error_string string TODO
purchase_receipt_info.error_link_text string TODO
purchase_receipt_info.error_link_url string TODO
purchase_receipt_info.error_appid number TODO
purchase_receipt_info.line_items[] array TODO
purchase_receipt_info.line_items[].packageid number TODO
purchase_receipt_info.line_items[].appid number TODO
purchase_receipt_info.line_items[].line_item_description string TODO
success number TODO
rwgrsn number TODO

Example

POST https://store.steampowered.com/account/ajaxregisterkey { product_key: "TZV5T-M235R-D64ER", sessionid: "a0b1c2d3e4f5g6h7i8j9klmn" }
{
    "purchase_result_details": 9,
    "purchase_receipt_info": {
        "transactionid": "18446744073709551615",
        "packageid": 4294967295,
        "purchase_status": 2,
        "result_detail": 9,
        "transaction_time": 1632363621,
        "payment_method": 1,
        "base_price": "0",
        "total_discount": "0",
        "tax": "0",
        "shipping": "0",
        "currency_code": 0,
        "country_code": "",
        "error_headline": "",
        "error_string": "",
        "error_link_text": "",
        "error_link_url": "",
        "error_appid": 0,
        "line_items": [
            {
                "packageid": 128256,
                "appid": 0,
                "line_item_description": "Battlecrew: Space Pirates BETA: Will Lose Access At Launch"
            }
        ]
    },
    "success": 2,
    "rwgrsn": -2
}

Clone this wiki locally