Overview
Receeco uses a flexible authentication system designed for POS integration. Most endpoints are public to support seamless POS workflows, with optional API key authentication for enhanced security.Authentication Methods
Public Access
No authentication required for basic POS operationsAPI Key (Optional)
Enhanced security for production environmentsPublic Endpoints
These endpoints work without authentication to ensure POS systems can operate seamlessly:POST /createReceiptFromPOS
- Create digital receiptsGET /getReceipt
- Retrieve receipt dataPOST /updateReceiptContact
- Update customer contact info
API Key Authentication (Recommended for Production)
For production environments, we recommend using API keys for additional security:Getting Your API Key
- Log in to your Merchant Dashboard
- Navigate to Settings → API Keys
- Generate a new API key
- Copy and store it securely
Using API Keys
Include your API key in theAuthorization
header:
cURL Example
Node.js Example
Python Example
API Key Types
Test Keys (postest…)
- Used for development and testing
- Limited to test transactions
- No rate limits
- Safe to use in development environments
Live Keys (poslive…)
- Used for production transactions
- Full access to all features
- Rate limited for security
- Must be kept secure
Security Best Practices
1. Environment Variables
Store API keys in environment variables, never in code:2. Rotate Keys Regularly
Generate new API keys every 90 days and update your systems3. Monitor Usage
Check your dashboard regularly for unusual API activity4. Restrict Access
Only give API keys to systems that need themRate Limits
API key authentication includes rate limiting for security:Key Type | Requests per Minute | Burst Limit |
---|---|---|
Test | Unlimited | Unlimited |
Live | 1000 | 100 |
Error Handling
Authentication errors return standard HTTP status codes:Common Authentication Errors
401 Unauthorized
- Invalid or expired API key
- Missing Authorization header
- Malformed API key format
403 Forbidden
- API key doesn’t have required permissions
- Rate limit exceeded
- Suspended merchant account
429 Too Many Requests
- Rate limit exceeded
- Too many requests in short time period
- Implement exponential backoff
Migration Guide
From Public to API Key Authentication
If you’re currently using public endpoints and want to add API key authentication:- Generate API key in your dashboard
- Update your code to include the Authorization header
- Test thoroughly in development
- Deploy gradually to production