Adds a package or bundle to the user's cart.
No known rate limit
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
Authenticated: Yes
Method: POST
POST
Host: store.steampowered.com
store.steampowered.com
Path: /cart/addtocart
/cart/addtocart
Form Data:
action
add_to_cart
subid
subid[]
bundleid
quantity
sessionid
isgift
1
gifteeaccountid
snr
microtxnappid
microtxnassetclassid
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.
success
itemcount
contents
null
POST https://store.steampowered.com/cart/addtocart { action: "add_to_cart", subid: 1730126, sessionid: "a0b1c2d3e4f5g6h7i8j9klmn" }
{ "success": true, "itemcount": 1, "contents": null }
There was an error while loading. Please reload this page.