Documentation
Everything you need to build, integrate, and scale your e-commerce platform with Preblo.
Quick Start Guides
Get up and running in minutes
Browse Documentation
Explore guides, references, and tutorials
Code Examples
Copy-paste examples to get started quickly
Create a Product (REST API)
// Create a new product
const response = await fetch('https://api.preblo.com/v1/products', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Premium T-Shirt',
price: 2999, // cents
currency: 'USD',
inventory: 100
})
});
const product = await response.json();
// Product created successfully with ID: product.idList Orders (Python SDK)
# List all orders
from preblo import PrebloClient
client = PrebloClient(api_key='your_api_key')
# Get orders with pagination
orders = client.orders.list(
store_id='st_abc123',
status='paid',
limit=50
)
for order in orders:
print(f"Order {order.id}: {order.total}")