Orders
Get Orders
GET /orders
Query Parameters
Name
Type
Description
page
Integer
Number of page
per_page
Integer
Number of orders to get per page
Example request:
curl -X GET "https://resi-api.iproyal.com/v1/web-unblocker/orders?page=1&per_page=10" \
-H "Authorization: Bearer <your_api_token>"<?php
$api_token = '<your_api_token>';
$url = 'https://resi-api.iproyal.com/v1/web-unblocker/orders?page=1&per_page=10';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPGET, true);
$headers = [
"Authorization: Bearer $api_token"
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
} else {
echo $response;
}
curl_close($ch);
?>Example response:
{
"data": [
{
"id": 4,
"note": null,
"product_name": "Web Unblocker",
"status": "confirmed",
"amount": 9,
"quantity": 10000,
"created_at": "2025-06-26 10:01:50"
}
],
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 20,
"total": 1
}
}Create Order
POST /orders
Body Parameters:
Name
Type
Description
quantity
Integer
Required. Requests quantity
coupon_code
String
A discount code to apply to the order, if available.
card_id
Integer
Optional. If supplied - card will be billed for this order, if not - we will try to deduct the amount from balance
Example request:
Response:
Calculate Pricing
GET /orders/calculate-pricing
Query Parameters:
Name
Type
Description
quantity
Integer
Required. The amount of the product to order.
coupon_code
String
Optional. Discount code for the order.
Example request:
Example response:
Last updated
Was this helpful?