API Reference
This section provides detailed documentation for all LuxCore API endpoints.Base URL
Authentication
All endpoints require an API key in theX-API-Key header:
Endpoints
Payments
| Method | Endpoint | Description |
|---|---|---|
POST | /payments | Create a new payment |
GET | /payments | List payments |
GET | /payments/{id} | Get payment by ID |
POST | /payments/{id}/cancel | Cancel a payment |
GET | /payments/methods | Get available payment methods |
POST | /payments/methods/validate | Validate a payment method |
Webhooks
| Method | Endpoint | Description |
|---|---|---|
POST | /webhooks | Create a webhook |
GET | /webhooks | List webhooks |
GET | /webhooks/{id} | Get webhook by ID |
PUT | /webhooks/{id} | Update webhook |
DELETE | /webhooks/{id} | Delete webhook |
POST | /webhooks/{id}/test | Send test event |
PUT | /webhooks/{id}/enable | Enable webhook |
PUT | /webhooks/{id}/disable | Disable webhook |
GET | /webhooks/{id}/events | Get webhook events |
POST | /webhooks/{id}/retry | Retry failed events |
Balance
| Method | Endpoint | Description |
|---|---|---|
GET | /balance | Get balance by currency |
GET | /balance/all | Get all balances |
Common Parameters
Pagination
List endpoints support pagination:| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 20 | Results per page (max 100) |
offset | integer | 0 | Number of results to skip |
Filtering
Most list endpoints support filtering by common fields:| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status |
created_at_from | ISO 8601 | Start date |
created_at_to | ISO 8601 | End date |
Response Format
Success Response
Error Response
Rate Limits
| Endpoint Type | Limit |
|---|---|
| Payment creation | 5000 requests/minute (burst: 500/10sec) |
| Standard endpoints | 100 requests/minute |
| Bulk operations | 10 requests/minute |
OpenAPI Specification
Download the OpenAPI specification for use with code generators and API clients:Download OpenAPI Spec
OpenAPI 3.0 JSON specification
Interactive Documentation
The API also provides interactive documentation:- ReDoc:
https://api.lux-core.io/api/v1/docs - OpenAPI JSON:
https://api.lux-core.io/api/v1/openapi.json
