Skip to content
campaiDeveloper
campai.com

Sales ยท Shop

GET/{organizationId}/{mandateId}/sales/shop/order-countsReads only

Count shop orders to handle

Counts the orders of the mandate shop that still need staff: orders to ship, orders to hand over at pickup and orders with a return waiting for a decision

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/order-counts' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • toHandlenumber
Response200
{
  "toHandle": 1
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.