Get Orders Count
curl --request GET \
--globoff \
--url 'https://api.example.com/{{orders_api_base_url}}/orders/counts/'import requests
url = "https://api.example.com/{{orders_api_base_url}}/orders/counts/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{{orders_api_base_url}}/orders/counts/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{{orders_api_base_url}}/orders/counts/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{{orders_api_base_url}}/orders/counts/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/{{orders_api_base_url}}/orders/counts/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{{orders_api_base_url}}/orders/counts/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"order_counts": {
"active": 123,
"completed": 123
}
}Orders
Get Orders Count
Retrieve the count of orders by status for a specific store, providing a quick overview of active and completed order volumes.
GET
{orders_api_base_url}
/
orders
/
counts
/
Get Orders Count
curl --request GET \
--globoff \
--url 'https://api.example.com/{{orders_api_base_url}}/orders/counts/'import requests
url = "https://api.example.com/{{orders_api_base_url}}/orders/counts/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{{orders_api_base_url}}/orders/counts/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{{orders_api_base_url}}/orders/counts/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{{orders_api_base_url}}/orders/counts/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/{{orders_api_base_url}}/orders/counts/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{{orders_api_base_url}}/orders/counts/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"order_counts": {
"active": 123,
"completed": 123
}
}This endpoint provides a summary count of orders grouped by their status, giving you immediate visibility into order volume and distribution. This is particularly useful for dashboard displays and operational monitoring.
Use this endpoint to quickly assess store workload and monitor business performance without retrieving detailed order data.
Query Parameters
string
required
The unique identifier of the store to get order counts for
Response
object
Response Example
{
"active": 123,
"completed": 1
}
Use Cases
Dashboard Widgets
Create real-time dashboard displays showing:- Current active order volume
- Completed orders for the day/period
- Order processing capacity
Performance Monitoring
Track key metrics:- Active Orders: Monitor current workload and identify peak times
- Completed Orders: Measure daily/weekly performance and revenue impact
- Order Velocity: Calculate completion rates and processing efficiency
Staff Management
Use counts to:- Determine staffing needs during peak hours
- Identify when additional help is needed
- Monitor order processing capacity
Business Intelligence
Analyze patterns:- Peak order times for scheduling optimization
- Daily/weekly volume trends
- Capacity planning for busy periods
Poll this endpoint regularly to create real-time monitoring dashboards that help staff understand current workload and prioritize tasks.
The “active” count includes all orders that require attention or are in progress, while “completed” represents successfully fulfilled orders.
High active order counts may indicate processing bottlenecks or the need for additional staff during peak periods.

