Vanguard

Documentation

Everything you need to integrate Vanguard into your game.

Marketplace

Buy and sell items on the Vanguard marketplace.

Browse Items

GET/api/v1/shop/items?page={page}&limit={limit}&search={query}&sort={sort}

List marketplace items with pagination, search, and sorting.

Query Parameters
page   — Page number (default: 1)
limit  — Items per page (default: 20)
search — Search query string
sort   — Sort: "newest", "popular", "price_asc", "price_desc"

Buy Items

POST/api/v1/shop/items/buy

Purchase an item from the marketplace. Deducts from your account balance.

json
{
  "itemId": "item_abc123"
}

Seller Endpoints

Requires sellerAuthorization: true on your account.

POST/api/v1/shop/items/create

Create a new marketplace listing.

POST/api/v1/shop/items/update

Update an existing listing (name, description, price, etc.).

DELETE/api/v1/shop/items/delete

Delete a marketplace listing.

POST/api/v1/shop/restock/{productId}

Add or update license keys for a product.

GET/api/v1/shop/licenses?productId={productId}

Get all licenses associated with a product.

Sales Statistics

GET/api/v1/shop/statistics?range={range}

Get sales statistics for your shop.

Range Options
"7d"       — Last 7 days
"30d"      — Last 30 days
"6m"       — Last 6 months
"1y"       — Last year
"lifetime" — All time