MarketFlow API Documentation
Integrate with the world's fastest-growing digital marketplace. Build sellers dashboards, automated order routing, or custom checkout experiences using our RESTful API.
v1 stable. Breaking changes will be communicated 90 days in advance via email and webhook events.
All API requests return JSON responses and use standard HTTP status codes. Authentication is handled via Bearer tokens included in the Authorization header.
Base URL
All API requests should be made to:
For testing, use the sandbox environment:
Authentication
MarketFlow uses API keys for authentication. Obtain your keys from the Developer Dashboard under Settings → API Keys.
Include your secret key in the Authorization header as a Bearer token:
Rate Limiting
API requests are limited to 1,000 requests per minute per API key. Rate limit headers are included in every response:
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed per window |
X-RateLimit-Remaining | Remaining requests in current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
When exceeded, the API returns 429 Too Many Requests with a retry-after header.
Endpoints
Retrieve a paginated list of products matching your query parameters.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
category | string | No | Filter by category slug (e.g., electronics, fashion) |
min_price | number | No | Minimum price in cents |
max_price | number | No | Maximum price in cents |
page | integer | No | Page number (default: 1) |
limit | integer | No | Results per page (max: 50) |
Example Response
Create a new order from an existing shopping cart or product selection.
Request Body (JSON)
Example Response
Fetch public or authenticated seller/buyer profile details.
Example Response
Error Codes
MarketFlow uses standard HTTP status codes and returns structured error JSON:
| Code | Message | Meaning |
|---|---|---|
| 400 | Bad Request | Invalid parameters or malformed JSON |
| 401 | Unauthorized | Missing or invalid API key |
| 403 | Forbidden | Insufficient permissions for this resource |
| 404 | Not Found | Resource does not exist |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Server Error | Internal MarketFlow error (retry after 5s) |
Webhooks
Subscribe to real-time events for orders, payments, and inventory changes. Configure your endpoint URLs in the Developer Dashboard.
Supported Events
order.createdorder.paidorder.shippedproduct.stock_lowpayment.payout_completed
Webhook payloads include a X-Webhook-Signature header for verification using your secret.