Prezio provides two distinct environments for API access, each serving a specific purpose in your development lifecycle.

Available Environments

Sandbox

URL: https://sandbox.prezio.eu/api/

Development and testing environment with sample data and relaxed rate limits.

Production

URL: https://api.prezio.eu/api/

Live environment with complete data coverage and standard rate limits.

Development Workflow

1

Start with Sandbox

Begin your integration using the sandbox environment with test data.

2

Test Thoroughly

Validate your implementation with various scenarios and edge cases.

3

Move to Production

Once testing is complete, switch to the production environment with the same code but different credentials.

Sandbox Environment

The sandbox environment is your development and testing playground, offering:

Safe Testing

Test without affecting production systems or incurring unexpected charges.

Real Data

Access limited but real pricing data across supported markets.

Error Simulation

Test error handling with invalid parameters or rate limit scenarios.

Sandbox Limitations: The sandbox environment is provided as-is, without service level guarantees. Updates and changes may be released at any time without prior notice. API structure, responses, or data availability may change as the service evolves. While we strive to maintain stability, the sandbox environment is primarily intended for development and testing purposes, not for production applications.

Data Coverage

Sandbox has limited geographic coverage. See our data availability guide for details on supported regions.

Sandbox Characteristics

Production Environment

The production environment provides live electricity pricing data with full market coverage and reliability guarantees.

Production Features

Complete Coverage

Access to all supported countries, bid zones, organizations and price components, according to your contract.

Real-time Data

Up-to-date pricing information synchronized with market data sources.

Performance

Optimized for scalability and reliability with standard rate limits based on your subscription tier.

Customer support

Ongoing support available at support@prezio.eu in case of questions or issues with tariffs.

Environment Configuration

Each environment requires separate authentication credentials:

# Sandbox request
curl -X GET "https://sandbox.prezio.eu/api/live/?country=DK&tariff_id=tar_123" \
  -H "Authorization: Token YOUR_SANDBOX_TOKEN"

# Production request
curl -X GET "https://api.prezio.eu/api/live/?country=DK&tariff_id=tar_123" \
  -H "Authorization: Token YOUR_PRODUCTION_TOKEN"

Use environment variables or configuration files to easily switch between environments:

const API_URL = process.env.NODE_ENV === 'production'
  ? 'https://api.prezio.eu/api'
  : 'https://sandbox.prezio.eu/api';
  
const API_TOKEN = process.env.NODE_ENV === 'production'
  ? process.env.PREZIO_PROD_TOKEN
  : process.env.PREZIO_SANDBOX_TOKEN;

Best Practices

  1. Develop in sandbox first before deploying to production
  2. Maintain environment parity by using identical code for both environments
  3. Implement proper error handling for all API responses
  4. Monitor API usage to stay within your rate limits
  5. Use separate tokens for sandbox and production environments

Need assistance with environment setup? Contact our support team at support@prezio.eu.