API Platform Documentation

Getting Started

Welcome to Our API

Our RESTful API provides access to customer data, sales analytics, and business insights. Perfect for integrating with your existing systems or building custom applications.

Real-time Analytics

Get live business insights

Secure & Reliable

Enterprise-grade security

Easy Integration

Simple REST endpoints

Authentication

API Key Authentication

All API requests require an API key to be included in the request headers.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.nexonsolutions.be/v1/customers

API Endpoints

GET

/v1/customers

Retrieve a list of all customers with pagination support.

Parameters:

  • page - Page number (default: 1)
  • limit - Items per page (default: 20)
  • search - Search term for customer name/email

Example Response:

{
  "data": [
    {
      "id": "cust_123",
      "name": "John Doe",
      "email": "john@example.com",
      "created_at": "2024-01-15T10:30:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 150
  }
}
GET

/v1/analytics/sales

Get sales analytics data with filtering options.

Parameters:

  • start_date - Start date (YYYY-MM-DD)
  • end_date - End date (YYYY-MM-DD)
  • group_by - Group by day/week/month
POST

/v1/customers

Create a new customer record.

Request Body:

{
  "name": "Jane Smith",
  "email": "jane@example.com",
  "phone": "+1-555-0123",
  "company": "Acme Corp"
}

Code Examples

JavaScript (Fetch API)

const response = await fetch('https://api.nexonsolutions.be/v1/customers', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data);

Python (requests)

import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
}

response = requests.get(
    'https://api.nexonsolutions.be/v1/customers',
    headers=headers
)

data = response.json()
print(data)

API Testing Console

Request Headers

Response

Response will appear here...

Rate Limits

1,000
Requests per hour
100
Requests per minute
10
Concurrent requests