Quick Diagnostic
Before diving in, check these common issues:
- Are you using the correct API key for your environment (test vs live)?
- Is your API key active and not expired?
- Are all required headers included in your request?
- Is your request body properly formatted as JSON?
HTTP Error Codes
The request was malformed or contains invalid parameters.
Common Causes:
- Missing required fields
- Invalid data format
- Validation errors
Solution
Check the request body and ensure all required fields are present with valid values.
Authentication failed or API key is invalid.
Common Causes:
- Missing API key
- Invalid API key
- Expired API key
- Wrong environment key
Solution
Verify your API key is correct and matches the environment (test/live). Check the Authorization header format.
You don't have permission to access this resource.
Common Causes:
- Insufficient permissions
- Resource belongs to another tenant
- Feature not available on your plan
Solution
Check your account permissions and ensure you're accessing resources within your tenant.
The requested resource doesn't exist.
Common Causes:
- Invalid resource ID
- Resource was deleted
- Typo in endpoint URL
Solution
Verify the resource ID exists and the endpoint URL is correct.
You've exceeded the rate limit for API requests.
Common Causes:
- Too many requests in a short period
- Burst of requests without throttling
Solution
Implement exponential backoff and respect the Retry-After header. Consider caching frequently accessed data.
An unexpected error occurred on our servers.
Common Causes:
- Temporary server issue
- Bug in our system
Solution
Retry the request after a short delay. If the issue persists, contact support with the request ID.
Common Issues
Points are not being awarded after a transaction
Webhooks are not being received
Customer lookup returns 'not found' but customer exists
API requests are slow
Redemption fails with 'insufficient balance'
Debugging Tips
Use these techniques to identify and resolve issues quickly:
Check the response headers
Every API response includes a X-Request-ID header. Include this when contacting support.
Use verbose logging
Enable request/response logging in your SDK to see the full API communication.
Test in isolation
Use cURL or Postman to test API calls independently from your application code.
Verify webhook payloads
Use webhook.site or ngrok to inspect incoming webhook payloads during development.
Check the API status page
Visit our status page to check for any ongoing incidents that might affect your integration.
curl -X GET "https://api.loyalpro.com/v1/customers/cus_abc123" \
-H "Authorization: Bearer sk_test_your_api_key" \
-H "Content-Type: application/json" \
-vGetting Support
Was this page helpful?
Help us improve our documentation