Integrations, TradeMe & Storefront REST API
Extend Vendor Vault's operational core to third-party sales channels, online marketplaces, and custom web applications.
1. TradeMe Marketplace Integration
New Zealand retailers, electronics recyclers, and automotive parts sellers can connect directly to New Zealand's largest online marketplace.
Connecting TradeMe
- Navigate to Operations > Trade Me Marketplace (
/trademe). - Enter your TradeMe Developer Key and Secret (or click Connect with TradeMe OAuth).
- Authorize Vendor Vault to read your active marketplace listings and completed sales.
Reconciling TradeMe Ping Statements
TradeMe deposits customer sales via their Ping escrow wallet after deducting commission fees:
- Export your TradeMe Ping monthly sales statement as a CSV.
- In Bank Accounts, click Import CSV Statement and upload your Ping CSV file.
- Vendor Vault automatically creates sales journals for the gross customer payment and codes the TradeMe success fee directly to Account 685 - Marketplace & Commission Fees.
2. Headless Storefront REST API
Build a custom online store (Next.js, Shopify, WooCommerce, or custom mobile app) powered entirely by your Vendor Vault inventory and invoicing backend.
Generating an API Key
- Go to My Profile > Developer API Keys (
/profile). - Click + Generate New API Key.
- Name your key (e.g., Headless Web Storefront) and copy the generated
vv_live_...secret token.
API Endpoints Overview
Authenticate requests with the X-API-Key or Authorization: Bearer <key> header:
GET /api/storefront/v1/products
Returns a JSON array of all active products marked Completed / Ready to Sell on your Universal Shelf with retail prices, stock quantity, condition grade, and photos.
POST /api/storefront/v1/orders
Payload:
{
"customerName": "Jane Doe",
"customerEmail": "[email protected]",
"items": [
{ "sku": "DT-40", "quantity": 1 }
]
}
Creates an active customer order, generates a draft or finalized tax invoice, and automatically decrements inventory count on your Shelf.