Flype Order API
  1. Shipments
  • Flype Order API
    • Introduction
    • Shipments
      • Rates
        POST
      • Create Bulk Orders
        POST
      • All Shipments
        POST
      • Shipments Count
        GET
      • Shipment Details
        GET
      • Shipment Last Status
        GET
      • Cancel Shipment
        POST
      • Get Shipping Label
        GET
    • Webhook
      • Webhook: Shipment status updates (Flype → Your Server)
    • Locations
      • Upsert Pickup Location
      • Get Saved Pickup Locations
      • Fetch Pickup Location Details
    • Schemas
      • ApiStatus
      • ErrorResponse
      • ShipmentsCountResponse
      • AllShipmentsRequest
      • ShipmentSummary
      • AllShipmentsResponse
      • BulkOrderRequest
      • BulkOrderResponse
      • SchedulePickupRequest
      • SchedulePickupResponse
      • City
      • GetCitiesResponse
      • ShipmentDetailsResponse
      • ShipmentLastStatusResponse
      • CancelShipmentResponse
      • LabelResponse
      • Country
      • CountriesResponse
      • ShipmentStatusWebhook
      • PlaceBulkItem
      • SuccessMessageResponse
      • PlaceBulkAddress
      • BooleanDataResponse
      • PlaceBulkPickupLocation
      • ShipmentAddress
      • PlaceBulkShipment
      • ShipmentRecipient
      • PlaceBulkAcceptedOrder
      • ShipmentRetailerAddress
      • PlaceBulkDeniedOrder
      • ShipmentRetailer
      • BulkOrderResponseData
      • ShipmentDriver
      • ShipmentStatusHistoryEntry
      • DeliverySettings
      • DropOffDetails
      • AllShipmentsItem
      • CitiesResponse
      • AirwayBillResponse
      • WebhookShipmentStatusUpdate
      • WebhookAckResponse
      • PlaceBulkDeliveryAddress
      • PlaceBulkRequest
  1. Shipments

Shipments Count

GET
/order/shipmentsCount

Shipments Count - Retrieve shipment totals by status group#

Use this endpoint to retrieve total shipment counts grouped by operational status.
This endpoint is useful for dashboards, reporting, and high-level operational monitoring.

Status groups#

  • totalShipment - total number of shipments.
  • totalToBePickedUp - shipments created and ready for pickup.
  • totalToBeDelivered - shipments currently moving through pickup, sorting, delivery, reattempt, or temporary return flows.
  • totalDelivered - shipments successfully delivered.
  • totalCanceled - shipments cancelled or marked as undeliverable.
  • totalToBeReturned - shipments in the process of being returned to the origin pickup location.
  • totalReturned - shipments already returned to the origin pickup location.

Important notes#

  • This endpoint returns counts only, not shipment details.
  • Use All Shipments to retrieve shipment records for a specific status.
Status → Count field mapping
booked → totalToBePickedUp (ready for pickup)
to_dc_truck_transit, at_dc, to_delivery, delivery_reattempt, to_return, returned, delivery_attempt_failed, delayed → totalToBeDelivered
delivered → totalDelivered
cancelled, undeliverable → totalCancelled
to_return_origin, in_transit_to_return_origin → totalToBeReturned (permanent return after 3 failed attempts, invalid address or other serious issue with the delivery)
returned_origin → totalReturned (already returned to origin)

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
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 '/order/shipmentsCount' \
--header 'Authorization: Bearer <token>'

Responses

🟢200
application/json
Counts by status.
Bodyapplication/json

Example
{
    "status": "success",
    "data": {
        "totalShipment": 1336,
        "totalToBePickedUp": 76,
        "totalToBeDelivered": 18,
        "totalDelivered": 1232,
        "totalToBeReturned": 0,
        "totalReturned": 0,
        "totalCanceled": 8
    }
}
🟠401
🔴500
Previous
All Shipments
Next
Shipment Details
Built with