Skip to main content
GET
/
orders
/
count
Count orders
curl --request GET \
  --url https://api.salesive.com/api/v1/orders/count \
  --header 'Authorization: Bearer <token>'
{
  "status": 200,
  "success": true,
  "message": "Order count retrieved",
  "data": {
    "count": 128
  }
}
Returns the total count of non-deleted orders matching the status, user and date filters. The store is bound to your app token server-side — never send a shop id.

Authorizations

Authorization
string
header
required

Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.

Query Parameters

status
enum<string>

Filter by order status. One of: pending, processing, paid, cancelled, refunded. Other values are ignored.

Available options:
pending,
processing,
paid,
cancelled,
refunded
user
string

Filter by the customer's user id (Mongo ObjectId). Invalid ids are ignored.

startDate
string<date-time>

Inclusive lower bound on order creation date (ISO 8601, filters createdAt).

endDate
string<date-time>

Inclusive upper bound on order creation date (ISO 8601, filters createdAt).

Response

Total matching order count.

Standard Salesive response envelope. The operation-specific payload is carried in data.

status
integer
required

HTTP status code, echoed in the body.

success
boolean
required

Whether the request succeeded.

message
string
required

Human-readable result message.

data
object