Vizbix API
The Vizbix Profit Optimizer API powers real-time profit analytics by connecting your store data with ad spend, shipping costs, and payment fees to calculate your true net profit.
🔐 Authentication
All protected endpoints require a Firebase JWT token passed in the Authorization header. Public endpoints (blogs, public settings, Zapier webhook) do not require authentication.
Authorization: Bearer <firebase_jwt_token>
⚡ Zapier Integration
Vizbix integrates with Zapier to allow users to push sales data from external platforms (Etsy, eBay, TikTok Shop, WooCommerce, and more) directly into their profit dashboard via webhooks.
/webhook/zapier — Receive sales data from Zapier/api/zapier/test — Test Zapier connection/fetch-zapier — Fetch stored Zapier data/clear-zapier — Clear Zapier dataAccepts sales order data pushed from Zapier. No authentication required — uses email-based routing. Syncs orders from Etsy, eBay, TikTok Shop, WooCommerce, and other platforms.
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | required | User's email for routing | |
| orders | array | required | Array of order objects with revenue and cost data |
| platform | string | optional | Source platform name (e.g. "etsy", "ebay") |
Used by Zapier to verify the connection is working. Returns user account info. Requires authentication.
Returns aggregated product revenue, costs, and profit data for the authenticated user. Requires authentication.
Saves or updates store data including products, revenue, and costs. Requires authentication.
| Parameter | Type | Required | Description |
|---|---|---|---|
| products | array | required | Array of product objects with revenue and cost data |
| currency | string | optional | Currency code (USD, INR, EUR, GBP) |
Returns historical snapshots of store data for trend analysis. Requires authentication.
Save user preferences including currency, store name, and display options. Requires authentication.
| Parameter | Type | Required | Description |
|---|---|---|---|
| currency | string | optional | Preferred currency (USD, INR, EUR, GBP) |
| storeName | string | optional | Store display name |
Redirects the user to Facebook's OAuth consent screen to authorize ads_read access. No authentication required.
| Parameter | Type | Required | Description |
|---|---|---|---|
| string (query) | required | User's email for session routing |
Handles the OAuth callback from Facebook. Exchanges the authorization code for an access token and stores it securely. Redirects user back to dashboard.
Fetches total ad spend from all connected Meta Ads accounts for the last 30 days using the ads_read permission. Requires authentication.
Redirects the user to Google's OAuth consent screen to authorize Google Ads access. No authentication required.
| Parameter | Type | Required | Description |
|---|---|---|---|
| string (query) | required | User's email for session routing |
Handles the OAuth callback from Google. Exchanges authorization code for refresh token and stores it securely. Redirects user back to dashboard.
Fetches total ad spend from connected Google Ads accounts for the last 30 days. Automatically handles Manager (MCC) and individual accounts. Requires authentication.
Redirects to Shopify's OAuth consent screen for store data access. No authentication required.
Handles Shopify OAuth callback. Stores access token and begins initial data sync.
Redirects to Amazon's OAuth consent screen for Seller Central access. No authentication required.
Fetches Amazon Seller Central orders, FBA fees, and revenue for profit calculation. Requires authentication.
Stores the user's Klaviyo API key for email revenue attribution. Requires authentication.
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | string | required | Klaviyo private API key |
Fetches email-attributed revenue from Klaviyo for the last 30 days. Requires authentication.
Stores ShipStation API key and secret for shipping cost sync. Requires authentication.
Fetches total shipping costs from ShipStation for the last 30 days. Requires authentication.
Stores Shiprocket email and password for Indian domestic shipping cost sync. Requires authentication.
Fetches COD charges, shipping fees, and RTO costs from Shiprocket. Requires authentication.
Stores Sendcloud API key and secret for European shipping cost sync. Requires authentication.
Fetches parcel shipping costs from Sendcloud for the last 30 days. Requires authentication.
Stores credentials for payment gateways (Razorpay, Stripe, PayPal). Requires authentication.
| Parameter | Type | Required | Description |
|---|---|---|---|
| gateway | string | required | Gateway name: razorpay, stripe, paypal |
| apiKey | string | required | Gateway API key |
| apiSecret | string | optional | Gateway API secret (if required) |
Fetches processing fees from the connected payment gateway for profit calculation. Requires authentication.
Returns all published blog posts sorted by date. No authentication required.
Returns public configuration settings for the Vizbix app. No authentication required.
Returns the authenticated user's account status, plan, and subscription details. Requires authentication.
| Parameter | Type | Required | Description |
|---|---|---|---|
| string (query) | required | User's email address |