Skip to content
campaiDeveloper
campai.com

Sales · Shop

GET/{organizationId}/{mandateId}/sales/shop/overviewReads only

Get the shop overview

Returns what the orders of the mandate shop say at a glance: the orders that wait for staff and the unpaid ones, this month so far against the same days of last month, the revenue of the last twelve months and the five products sold most this month. Canceled orders count only as orders, and all amounts are gross cents

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • shopOrder.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/sales/shop/overview' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • orderCountinteger

    at least 0

  • toHandleobject
    4 properties
    • openobject
      2 properties
      • countinteger

        at least 0

      • oldestAtstring · date-timenullable
    • readyForPickupobject
      2 properties
      • countinteger

        at least 0

      • oldestAtstring · date-timenullable
    • returnsobject
      2 properties
      • countinteger

        at least 0

      • firstobjectnullable
        3 properties
        • orderIdid
        • numberstring
        • namesstring[]
    • unpaidobject
      2 properties
      • countinteger

        at least 0

      • amountnumber

        at least 0

  • monthobject
    6 properties
    • revenuenumber

      at least 0

    • previousRevenuenumber

      at least 0

    • ordersinteger

      at least 0

    • previousOrdersinteger

      at least 0

    • piecesinteger

      at least 0

    • previousPiecesinteger

      at least 0

  • monthsobject[]
    2 properties
    • monthstring
    • revenuenumber

      at least 0

  • bestSellersobject[]
    7 properties
    • productIdid
    • typestring
      regular variants package group
    • namestring
    • imagestringnullable
    • quantityinteger

      at least 0

    • revenuenumber

      at least 0

    • variantsobject[]
      2 properties
      • namestring
      • quantityinteger

        at least 0

Response200
{
  "orderCount": 0,
  "toHandle": {
    "open": {
      "count": 0,
      "oldestAt": "2026-06-15T22:30:00Z"
    },
    "readyForPickup": {
      "count": 0,
      "oldestAt": "2026-06-15T22:30:00Z"
    },
    "returns": {
      "count": 0,
      "first": {
        "orderId": "000000000000000000000001",
        "number": "string",
        "names": [
          "string"
        ]
      }
    },
    "unpaid": {
      "count": 0,
      "amount": 0
    }
  },
  "month": {
    "revenue": 0,
    "previousRevenue": 0,
    "orders": 0,
    "previousOrders": 0,
    "pieces": 0,
    "previousPieces": 0
  },
  "months": [
    {
      "month": "string",
      "revenue": 0
    }
  ],
  "bestSellers": [
    {
      "productId": "000000000000000000000001",
      "type": "regular",
      "name": "string",
      "image": "string",
      "quantity": 0,
      "revenue": 0,
      "variants": [
        {
          "name": "string",
          "quantity": 0
        }
      ]
    }
  ]
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.