MarketFlow API Reference
Integrate seamlessly with the world's leading marketplace. Create products, manage orders, track shipments, and automate your workflow with our RESTful API.
https://api.marketflow.com/v1Format: JSON | Protocol: HTTPS only | Version: 1.4.2
Authentication
All API requests require authentication via Bearer tokens. Include your API key in the Authorization header for every request.
Authorization: Bearer mf_live_sk_4eC39HqLyjWDarjtT1zdp7dc
Generate your keys in the Developer Dashboard. Use mf_test_ prefixes for sandbox environments and mf_live_ for production.
Products API
Manage product listings, inventory, pricing, and metadata.
Retrieve a paginated list of products. Supports filtering by category, price range, and status.
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | Optional | Page number (default: 1) |
limit | integer | Optional | Items per page (max: 100) |
status | string | Optional | Filter: active, draft, archived |
curl -X GET "https://api.marketflow.com/v1/products?page=1&limit=20&status=active" \
-H "Authorization: Bearer mf_live_sk_4eC39HqLyjWDarjtT1zdp7dc"
{
"data: [
{
"id: "prod_8f7g6h5j4k3l2m1n",
"name: "Wireless Noise-Canceling Headphones",
"price: 149.99,
"currency: "USD,
"inventory: 248,
"status: "active
}
],
"meta: {
"total: 1542,
"page: 1,
"limit: 20
}
}
Create a new product listing in the marketplace.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Required | Product title (max 120 chars) |
price | number | Required | Price in minor units (e.g., 14999 = $149.99) |
category | string | Required | Category ID from catalog |
description | string | Optional | HTML or plain text description |
Orders API
Process purchases, manage fulfillment, and track customer orders.
Create a new order and initiate checkout/payment flow.
{
"items: [
{
"product_id: "prod_8f7g6h5j4k3l2m1n,
"quantity: 2
}
],
"shipping: {
"address: "123 Market St, San Francisco, CA 94103",
"method: "express
},
"customer: {
"email: "buyer@example.com,
"name: "Alex Johnson
}
}
Webhooks
Receive real-time event notifications for order updates, inventory changes, and payment statuses. Configure endpoints in your dashboard.
{
"event: "order.completed,
"id: "evt_9x8y7z6w5v4u3t2s1r,
"timestamp: "2024-11-15T14:32:00Z,
"data: {
"order_id: "ord_abc123xyz,
"total: 299.98,
"status: "fulfilled
}
}
X-MarketFlow-Signature header. Verify payloads using HMAC-SHA256 with your webhook secret.
HTTP Status Codes
OK
Request succeeded normally.
Created
Resource successfully created.
Bad Request
Invalid parameters or malformed JSON.
Unauthorized
Missing or invalid API key.
Too Many Requests
Rate limit exceeded. Retry after delay.
Internal Server Error
Something went wrong on our end.