REST API v2
Overview
API Base URLs
Plan Requirements
Authentication
X-Joy-Loyalty-App-Key: your_app_key_here
X-Joy-Loyalty-Secret-Key: your_secret_key_hereAuthentication Example
curl -X GET "https://dev-api.joy.so/rest_api/v2/customers" \
-H "X-Joy-Loyalty-App-Key: your_app_key" \
-H "X-Joy-Loyalty-Secret-Key: your_secret_key" \
-H "Content-Type: application/json"Response Format
Success Response
Error Response
Data Filtering
Pagination
Parameters
Default Limits
Navigation
Example
Common Query Parameters
Date Filtering
Sorting
Example with Filters
Error Handling
HTTP Status Codes
Code
Description
Common Scenarios
Common Error Codes
Error Code
Description
Resolution
Error Response Example
Rate Limiting
Best Practices
1. Efficient Pagination
2. Date Range Queries
3. Error Handling
4. Authentication Security
5. Batch Operations
Data Types and Formats
Date Formats
Customer Types
Activity Types
Activity Sources
Program Types
Reward Status
Security Considerations
1. Data Privacy
2. API Key Security
3. Input Validation
4. Error Information
Integration Examples
JavaScript/Node.js
Python
PHP
Changelog
Version 2.0.0 (Current)
Support
Next Steps
Last updated