MagicUI API Documentation
MagicUI API provides RESTful API services for your WordPress and WooCommerce-based e-commerce application. It offers secure access through JWT (JSON Web Token) based authentication system.
Base URL
https://your-domain.com/wp-json/Authentication
How to Get a Token?
Authorization: Bearer YOUR_JWT_TOKEN🔐 Authentication Endpoints
1. Generate Token (Login)
{
"username": "[email protected]",
"password": "your_password"
}2. Token Validation
3. Token Refresh
👤 User Registration
Register New User
🛍️ Product Endpoints
1. Product List
Parameter
Type
Description
Default
2. Product Details
Parameter
Type
Description
3. Product Variations
4. Categories
Parameter
Type
Description
Default
5. Product Reviews
6. Submit Review
🛒 Order Endpoints
1. Order List
2. Order Details
3. Create Order
4. Cancel Order
5. Refund Order
👤 User Endpoints
1. Update Profile
2. Get User Info
3. Change Password
4. Reset Password
5. Upload Avatar
6. Get Avatar
7. Favorites
8. Update Device ID (Push Notifications)
⚙️ Configuration and Other Endpoints
1. App Configuration
2. Home Page Data
3. Payment Gateways
4. Shipping Zones
5. Shipping Methods
6. Validate Coupon
Parameter
Type
Description
7. Locations (Countries and States)
8. Privacy Policy
9. Terms of Use
10. Health Check
🔒 Security
JWT Token Security
Error Handling
HTTP Status Codes
Code
Description
📱 Special Features
1. Push Notifications
2. Return Management
3. Duplicate Order Prevention
4. Multi-language Support
🎯 Best Practices
1. Token Management
2. Error Handling
3. Pagination
📞 Support
Last updated
Was this helpful?