PAYMENTS - NETWORK - LIST ORDER NETWORK
Payments - Network - List Order Network API Endpoints
Complete documentation for all Payments - Network - List Order Network related endpoints.
GET
List Order Network
Get list of network orders for a user.
Endpoint Details
HTTP Request
GET https://0xhost.net/API/orders/list_order
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id |
string | Yes | User UUID |
page |
integer | No | Page number |
order_type |
string | Yes | Order type (network) |
Authentication
API Key
Required in header
Headers
| Header | Value | Required | Description |
|---|---|---|---|
x-api-key |
your_api_key_here |
Yes | Your unique API key for authentication |
Content-Type |
application/json |
Optional | Recommended for consistent response handling |
Response Fields
| Field | Type | Description |
|---|---|---|
success |
boolean | Indicates if the operation was successful |
message |
string | Response message describing the result |
data |
object/array | Contains the response data |
Success Response
API Response Example
{
"success": true,
"data": [
{
"id": "order12345-6789-0123-4567-890123456789",
"user_id": "user12345-6789-0123-4567-890123456789",
"server_id": null,
"service_id": "service12345-6789-0123-4567-890123456789",
"order_number": "CLOUD_20251123153024_DEMO123",
"order_type": "network",
"status": "completed",
"name_server": null,
"plan_id": null,
"os_image_id": null,
"versions": null,
"location": null,
"rental_duration_hours": 1,
"amount": "100.00",
"currency": "EUR",
"metadata": "networkId=net12345-6789-0123-4567-890123456789, name=Anonymous ASN, billing_cycle=yearly, expiration_date=2026-11-23 15:30:24",
"domain_name": null,
"domain_registration_term": null,
"domain_suffix": null,
"description": "Setup. Get your own Anonymous Autonomous System Number with complete privacy protection..",
"created_at": "2025-11-23 15:30:24",
"updated_at": "2025-11-23 15:30:24",
"username": "demo_user"
}
]
}
Code Examples
Programming Languages
JavaScript (Fetch API)
async function makeRequest() {
try {
const response = await fetch('https://0xhost.net/API/orders/list_order?user_id=user12345-6789-0123-4567-890123456789&page=1&order_type=network', {
method: 'GET',
headers: {
'x-api-key': 'your_api_key_here',
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log('Response:', data);
return data;
} catch (error) {
console.error('Error:', error);
}
}
Python (Requests)
import requests
def make_request(api_key):
url = 'https://0xhost.net/API/orders/list_order?user_id=user12345-6789-0123-4567-890123456789&page=1&order_type=network'
headers = {
'x-api-key': api_key,
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers)
if response.status_code == 200:
return response.json()
else:
print(f'Error: {response.status_code}')
return None
PHP (cURL)
function makeRequest($apiKey) {
$url = 'https://0xhost.net/API/orders/list_order?user_id=user12345-6789-0123-4567-890123456789&page=1&order_type=network';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'x-api-key: ' . $apiKey,
'Content-Type: application/json'
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
return json_decode($response, true);
}
cURL Command
curl -X GET 'https://0xhost.net/API/orders/list_order?user_id=user12345-6789-0123-4567-890123456789&page=1&order_type=network' \
-H 'x-api-key: your_api_key_here' \
-H 'Content-Type: application/json'