The CloudOnex Business Suite API provides a secure and flexible way to integrate your business systems with CloudOnex. This RESTful API enables you to programmatically access and manage your business data, automate workflows, and build custom integrations.
https://your-domain.com/api/v2/
# Using Bearer Token
Authorization: Bearer your-api-key-here
# Alternative Query String Method
https://your-domain.com/?api_key=your-api-key-here&ng=api/v2/endpoint
- Navigate to
Settings → API Access
- Create a new API key by providing a label
- Store the generated key securely
All API responses are returned in JSON format:
{
"success": true,
"data": {
},
"message": "Optional status message"
}
{
"success": false,
"errors": {
"field_name": "Error description"
},
"message": "Error message"
}
<?php
// PHP Example
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://your-domain.com/api/v2/customers');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer your-api-key-here',
'Content-Type: application/json'
]);
$response = curl_exec($ch);
curl_close($ch);
// JavaScript Example
fetch('https://your-domain.com/api/v2/customers', {
headers: {
'Authorization': 'Bearer your-api-key-here',
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data));
# Get all customers
GET /api/v2/customers
# Get specific customer
GET /api/v2/customers/{id}
# Get all invoices
GET /api/v2/invoices
# Create a new customer
POST /api/v2/customers
Content-Type: application/json
{
"account": "John Doe",
"email": "john@example.com",
"phone": "1234567890"
}
-
/customers
- Customer management -
/invoices
- Invoice operations -
/transactions
- Financial transactions -
/quotes
- Quote management -
/products
- Product catalog -
/orders
- Order processing
-
/leads
- Lead management -
/suppliers
- Supplier operations -
/purchases
- Purchase orders -
/tickets
- Support tickets
The API implements rate limiting to ensure system stability:
- 1000 requests per hour per API key
- Rate limit headers included in responses
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1516131220
- Never expose API keys in client-side code
- Rotate keys periodically
- Use environment variables for key storage
- Implement key-specific permissions
- Always use HTTPS for API requests
- Verify SSL certificates
- Keep security libraries updated
// Create new customer
$customer_data = [
'account' => 'Jane Doe',
'email' => 'jane@example.com',
'phone' => '1234567890'
];
$response = api_post('customers', $customer_data);
// Create new invoice
$invoice_data = [
'customer_id' => 123,
'items' => [
[
'description' => 'Product A',
'amount' => 100.00,
'qty' => 1
]
]
];
$response = api_post('invoices', $invoice_data);
Official SDK libraries available in Github
-
200
- Success -
201
- Created -
400
- Bad Request -
401
- Unauthorized -
403
- Forbidden -
404
- Not Found -
429
- Too Many Requests -
500
- Server Error
{
"success": false,
"errors": {
"email": "Invalid email format"
},
"message": "Validation failed"
}