Flype Order API
  1. Shipments
  • Flype Order API
    • Shipments
      • Rates
        POST
      • Create Bulk Orders
        POST
      • All Shipments
        POST
      • Shipments Count
        GET
      • Shipment Details
        GET
      • Shipment Last Status
        GET
      • Cancel Shipment
        GET
      • 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
Returns total counts of shipments separated by status.

ShipmentCount — Status mapping#

This endpoint returns total counts grouped by internal shipment status.
Note
totalToBeDelivered includes active delivery statuses (to_delivery, delivery_reattempt), temporary return statuses (to_return, returned) that can be reattempted, and also delivery_attempt_failed and delayed.
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

Responses

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

🟠401
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/order/shipmentsCount' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example
{
    "status": "success",
    "data": {
        "totalShipment": 1336,
        "totalToBePickedUp": 76,
        "totalToBeDelivered": 18,
        "totalDelivered": 1232,
        "totalToBeReturned": 0,
        "totalReturned": 0,
        "totalCanceled": 8
    }
}
Previous
All Shipments
Next
Shipment Details
Built with