API Integration
Integrate HashNut payments into your application using the REST API.
Overview
HashNut provides a comprehensive REST API for payment integration. All API requests use HMAC-SHA256 signature authentication.
Quick Start
API Endpoints
- Orders: Create and query orders
- Configuration: Get chain and token info
- Webhooks: Receive payment notifications
Authentication
All API requests (except query endpoints) require HMAC-SHA256 signature authentication.
See Authentication Guide for details.
Code Examples
See Quick Start Guide for complete examples.
Best Practices
- Secure Credentials: Never commit API keys to version control
- Error Handling: Handle all error codes gracefully
- Idempotency: Make operations idempotent
- Logging: Log all API interactions
Next Steps
- Webhook Integration: Set up webhooks
- Best Practices: Integration best practices
Integrating API? See Webhook Integration →