Skip to content
Revadike edited this page Oct 16, 2026 · 1 revision

POST /cart/addtocart

Adds a package or bundle to the user's cart.

Rate limits

No known rate limit

Request

Authenticated: Yes

Method: POST

Host: store.steampowered.com

Path: /cart/addtocart

Form Data:

Name Type Required Description
action string Yes The action. add_to_cart to add items to the cart.
subid number No The Steam package ID. Use subid[] for multiple packages.
bundleid number No The Steam bundle ID
quantity number No The quantity
sessionid string Yes The value of the sessionid cookie
isgift number No When 1, adds the item as a gift
gifteeaccountid number No The account ID of the gift recipient
snr string No The navigation reference
microtxnappid number No The Steam AppID of the microtransaction item
microtxnassetclassid number No The asset class ID of the microtransaction item

Response

200 OK

Name Type Description
success boolean Whether the request was successful
itemcount number The number of items in the cart
contents object The cart contents. null for the account cart.

Example

POST https://store.steampowered.com/cart/addtocart { action: "add_to_cart", subid: 1730126, sessionid: "a0b1c2d3e4f5g6h7i8j9klmn" }
{
    "success": true,
    "itemcount": 1,
    "contents": null
}

Clone this wiki locally