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

Cancel shipment

POST
/api/order/{trackingNumber}/CancelShipment
Cancels an order that is still booked and not yet planned for a route. An order that is already cancelled, or already on its way, answers 409 and stays as it is.

Request

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

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 --request POST 'https://flype-ops-panel-dev.web.app/api/order/FQ3UFIZ6RQWU/CancelShipment' \
--header 'Authorization: Bearer <token>'

Responses

🟢200
application/json
The order is cancelled.
Bodyapplication/json

Example
{
    "status": "success",
    "message": "Shipment cancelled successfully",
    "data": {
        "trackingNumber": "FQ3UFIZ6RQWU",
        "status": "cancelled",
        "cancelledAt": "2026-10-27T13:40:22.507Z"
    }
}
🟠409
🟠401Unauthorized
🟠403Forbidden
🟠404ShipmentNotFound
Modified at 2026-10-28 04:52:40
Previous
Get last status
Next
Get shipments count
Built with