Skip to main content

Documentation

Everything you need to build, integrate, and scale your e-commerce platform with Preblo.

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.id

List 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}")

Need Help?

Can't find what you're looking for? Our support team is here to help.

Average response time: < 2 hours