Overview
This guide will walk you through making your first API call to the Komerza platform. In just a few minutes, you’ll be able to authenticate and retrieve your store information.Before starting, make sure you have a Komerza account and access to your
dashboard.
Step 1: Generate Your API Key
First, you’ll need to create an API key with the appropriate scopes:- Log in to your Komerza Dashboard
- Navigate to Account Settings → API Keys
- Click “Create New API Key”
- Select scopes - For this guide, select
stores.view - Copy your API key securely
Step 2: Get Your Store ID
You’ll need your store ID for most API calls. You can find this in your dashboard or by calling the stores endpoint.- From Dashboard
- Via API
Your store ID can be found on your store’s settings page:
- Navigate to your store in the dashboard
- Go to the Settings page
- Copy the store ID displayed next to the store name text box
Step 3: Make Your First API Call
Let’s retrieve your store information using the API:Step 4: Understanding the Response
If successful, you’ll receive a response like this:Response Breakdown
Response Breakdown
success: Indicates the request was successful -message: Human-readable description of the operation -code: Error code (null for successful requests) -data: The actual store object with all its properties
Common Issues & Solutions
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Problem: Your API key doesn’t have the required scopes. Solution: -
Add the
stores.view scope to your API key - Regenerate your API key with
correct permissions404 Not Found
404 Not Found
Problem: The store ID doesn’t exist or you don’t have access.Solution:
- Verify the store ID is correct
- Ensure you have access to this store
- Check if the store is active
429 Rate Limited
429 Rate Limited
Problem: You’ve exceeded the rate limit.Solution:
- Wait for your tokens to replenish (2 seconds for authenticated users)
- Implement exponential backoff in your application
- Consider caching responses to reduce API calls
Next Steps
Now that you’ve made your first successful API call, here are some suggested next steps:Explore Products
Retrieve your product catalog
Manage Orders
Access your order data
Customer Data
Work with customer information
API Scopes
Learn about all available permissions
Example: Listing Products
Once you’re comfortable with the basics, try retrieving your product list:Remember to add the
stores.products.view scope to your API key for
product-related endpoints.Best Practices
As you build your integration, keep these best practices in mind:Security
- Store API keys securely (environment variables, not in code)
- Use the minimum required scopes for your use case
- Rotate API keys regularly
Performance
- Implement proper error handling and retry logic
- Cache responses when appropriate
- Use pagination for large datasets
- Respect rate limits
Development
- Test with a development store first
- Use descriptive API key names for different integrations
- Monitor your API usage through the dashboard
Getting Help
If you run into issues:Help Center
Search our knowledge base
Developer Community
Connect with other developers
Support Team
Contact our support team
System Status
Check API availability