All endpoints in this section require Connected + API (JWT fromDocumentation Index
Fetch the complete documentation index at: https://docs.mannco.store/llms.txt
Use this file to discover all available pages before exploring further.
POST /user/login).
Base URL: https://api.mannco.store.
The cart stores items you intend to purchase. Each cart row can contain one or more asset IDs for the same item at the same price (grouped by price). Cart integrity can be verified and invalid items (unavailable, price changed) can be automatically replaced by equivalent plain items at the same price when possible.
Get cart
Response
Cart item fields
| Field | Type | Description |
|---|---|---|
cartId | integer | Cart row ID (use for remove) |
assetId | string | Comma-separated asset IDs in this row |
count | integer | Number of items in this row |
item_id | integer | Item type ID |
price | integer | Price in cents (stored at add time) |
name | string | Item name |
image | string | Item image URL |
effect | string | Unusual/effect name |
rarity | string | Quality/rarity |
quality | string | Quality label |
game | integer | Game ID (e.g. 440 = TF2, 730 = CS) |
url, type_steam, class, craftable, slot, sheen, killstreaker, spell, parts, paint, level, festivized, inspect, values) may be present.
Add item to cart
Body parameters
Steam asset ID of the item to add (from a listing)
Request example
Response
Success
Error responses
| Status | Message | Description |
|---|---|---|
error | Missing required parameter: assetId | assetId was not sent |
error | Item not available for purchase | Item not found, not for sale (state β 1), or owned by you |
error | Item already in cart | This assetId is already in your cart |
Bulk add to cart
Body parameters
Item type ID (from the items table)
Number of items to add (must be positive)
Optional. If provided, only consider listings from this seller (Steam ID)
Request example
Response
Success
Error responses
| Status | Message | Description |
|---|---|---|
error | Missing required parameters: itemId, count | One or both parameters missing |
error | Invalid itemId parameter | itemId empty or not numeric |
error | Invalid count parameter. Must be a positive number | count empty, not numeric, or β€ 0 |
error | No items available | No listings found for this item (or none matching filters) |
Items are ordered by price ascending, then by last update. Already-in-cart asset IDs are excluded from the selection.
Remove from cart
Body parameters
Cart row ID (from get cart response)
Request example
Response
Success
Error responses
| Status | Message | Description |
|---|---|---|
error | Missing required parameter: cartId | cartId was not sent |
error | Invalid cartId parameter | cartId β€ 0 |
error | Cart item not found | No cart row with this ID for the current user |
Update cart (integrity + replace)
- Verify integrity: For each item in the cart, checks that it still exists in the backpack, is still for sale (state = 1), and has the same price. Items that are not found, unavailable, have a different price, or are your own are marked invalid.
- Replace plain items: For each invalid item that is βplainβ (no spell, sheen, wear, killstreaker, parts), the API tries to find another listing of the same item at the same price that is plain and available. If found, the cart row is updated to use the new asset ID. If not found, the invalid asset ID is removed from the cart row. Non-plain invalid items are only removed (no replacement attempt).
- Cleanup: Cart rows that end up with no asset IDs are deleted.
Response
Success
Response fields
| Field | Type | Description |
|---|---|---|
integrity.valid | boolean | true if no invalid items were found |
integrity.invalidItems | array | List of invalid items with cartId, assetId, reason; price_changed entries include currentPrice and expectedPrice |
replaced | array | Items that were replaced: cartId, oldAssetId, newAssetId, reason |
removed | array | Invalid items that were removed without replacement: cartId, assetId, reason |
cart | array | Full cart after updates (same structure as GET /cart/get) |
Invalid item reasons
| Reason | Description |
|---|---|
not_found | Item no longer exists in backpack |
unavailable | Item not for sale (state β 1) |
price_changed | Item price in backpack differs from cart |
own_item | Item belongs to the current user |
Replacement is only attempted for βplainβ items (no spell, sheen, wear, killstreaker, parts). Non-plain invalid items are removed from the cart without replacement.
Error responses
| Status | Message | Description |
|---|---|---|
error | Cannot update cart | An exception occurred during update |