Skip to main content
GET
/
orders
/
stats
Get order statistics
curl --request GET \
  --url https://api.salesive.com/api/v1/orders/stats \
  --header 'Authorization: Bearer <token>'
{
  "status": 200,
  "success": true,
  "message": "Order statistics retrieved",
  "data": {
    "total": {
      "count": 128,
      "amount": 3120450
    },
    "pending": {
      "count": 12,
      "amount": 289900
    },
    "processing": {
      "count": 8,
      "amount": 190050
    },
    "completed": {
      "count": 96,
      "amount": 2510500
    },
    "cancelled": {
      "count": 9,
      "amount": 110000
    },
    "refunded": {
      "count": 3,
      "amount": 20000
    }
  }
}
Returns counts and revenue amounts per status bucket (total, pending, processing, completed, cancelled, refunded), with optional date-range filtering. 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

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

Aggregate counts and revenue per status bucket.

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