Request Examples
curl -X POST "https://www.xclusiveplugs.com/api/v1/logs/orders" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{"category_id":12,"quantity":2,"idempotency_key":"website-order-20260501-0001"}'
const response = await fetch('https://www.xclusiveplugs.com/api/v1/logs/orders', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY_HERE',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"category_id": 12,
"quantity": 2,
"idempotency_key": "website-order-20260501-0001"
})
});
const data = await response.json();
console.log(data);
import requests
url = 'https://www.xclusiveplugs.com/api/v1/logs/orders'
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY_HERE',
'Content-Type': 'application/json'
}
payload = {
"category_id": 12,
"quantity": 2,
"idempotency_key": "website-order-20260501-0001"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
<?php
$ch = curl_init();
$headers = [
'Accept: application/json',
'Authorization: Bearer YOUR_API_KEY_HERE',
'Content-Type: application/json'
];
curl_setopt_array($ch, [
CURLOPT_URL => 'https://www.xclusiveplugs.com/api/v1/logs/orders',
CURLOPT_HTTPHEADER => $headers,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{"category_id":12,"quantity":2,"idempotency_key":"website-order-20260501-0001"}',
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
HttpClient client = HttpClient.newHttpClient();
String payload = """
{
"category_id": 12,
"quantity": 2,
"idempotency_key": "website-order-20260501-0001"
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://www.xclusiveplugs.com/api/v1/logs/orders"))
.header("Accept", "application/json")
.header("Authorization", "Bearer YOUR_API_KEY_HERE")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
201 Response
{
"success": true,
"data": {
"order_id": "logs-api-ABC1234567-1777560000",
"status": "completed",
"product_id": 12,
"product_name": "Facebook Logs",
"quantity": 2,
"unit_price": "2500.00",
"total": "5000.00",
"currency": "NGN",
"balance_after": "7500.00",
"items": [
{
"serial": 1,
"details": "log details here",
"video": null
}
]
}
}