Flype Order API
  1. Shipments
  • Flype Order API
    • Shipments
      • Rates
        POST
      • Shipments Count
        GET
      • All Shipments
        POST
      • Bulk Order
        POST
      • Shipment Details
        GET
      • Shipment Last Status
        GET
      • Cancel Shipment
        GET
      • Get Shipping label
        GET
    • Webhook
      • Webhook: Shipment status updates (Flype → Your Server)
    • 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

Cancel Shipment

GET
/order/{trackingNumber}/CancelShipment

CancelShipment — Cancel a shipment#

Cancel a shipment only if it has not been picked up by Flype yet.
Rules
Cancellation is allowed only when the shipment is still in store / not picked up (internal status IN_STORE).
If the shipment has already been picked up or is in any later stage, cancellation will fail.
Response
{ "data": true } → cancelled successfully
{ "data": false } → cannot be cancelled

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Responses

🟢200
application/json
Cancel response.
Body

🟠401
🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/order/TKTN0M4DVCJ8/CancelShipment' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "data": true
}
Previous
Shipment Last Status
Next
Get Shipping label
Built with