1. Shipments
MyCourier Order API
  • Introduction
  • Shipments
    • Check coverage
      POST
    • Place orders
      POST
    • Get shipment details
      GET
    • Get last status
      GET
    • Cancel shipment
      POST
    • Get shipments count
      GET
    • List shipments
      POST
    • Get label
      GET
  • Locations
    • Get countries
      GET
    • Get cities
      GET
  • Webhook
    • Shipment status update
      POST
  • Schemas
    • Error
    • ServiceType
    • TrackingStatus
    • Price
    • CheckCoverageRequest
    • CoverageOption
    • CheckCoverageResponse
    • CoverageError
    • OrderAddress
    • OrderItem
    • Order
    • PlaceBulkRequest
    • AcceptedOrder
    • DeniedOrder
    • PlaceBulkResponse
    • Address
    • Recipient
    • PickupLocation
    • Driver
    • ShipmentSummary
    • ShipmentDetails
    • AllShipmentsRequest
    • ShipmentsCount
    • WebhookEvent
  1. Shipments

Get shipments count

GET
/api/order/ShipmentsCount
Your orders counted by group of latest status.
GroupStatuses
totalToBePickedUpbooked
totalToBeDeliveredto_dc_truck_transit, at_dc, to_dc_driver_pickup, at_dc_driver_pickup, to_delivery, at_delivery, delivery_attempt_failed, delivery_reattempt, delayed, to_return, returned
totalDelivereddelivered
totalToBeReturnedto_return_origin, in_transit_to_return_origin
totalReturnedreturned_origin
totalCanceledcancelled, undeliverable, denied
totalShipments is the number of all your orders.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://flype-ops-panel-dev.web.app/api/order/ShipmentsCount' \
--header 'Authorization: Bearer <token>'

Responses

🟢200
application/json
The counts.
Bodyapplication/json

Example
{
    "status": "success",
    "data": {
        "totalShipments": 1127,
        "totalToBePickedUp": 1056,
        "totalToBeDelivered": 20,
        "totalDelivered": 26,
        "totalToBeReturned": 0,
        "totalReturned": 4,
        "totalCanceled": 21
    }
}
🟠401Unauthorized
🟠403Forbidden
Modified at 2026-10-28 04:43:35
Previous
Cancel shipment
Next
List shipments
Built with