API Documentation
  1. API Documentation - Version 3
API Documentation
  • API Documentation - Version 3
    • Getrate API
      POST
    • Purchase API
      POST
    • Get All Orders API
      POST
    • Get Order Detail API
      POST
    • Cancel Orders API
      POST
    • Get PodInfo API
      POST
    • Get Label API
      POST
    • Get TrackingInfo API
      POST
    • Create Manifest
      POST
    • Get Manifest
      POST
    • GetBreakdown
      POST
  1. API Documentation - Version 3

Cancel Orders API

POST
/api/v3/shipment/{orderId}/cancel

Request

Path Params

Body Params application/json

Example
{
    "accessToken": "string",
    "mode": "production"
}

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://api.batchship.com/api/v3/shipment//cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accessToken": "string",
    "mode": "production"
}'

Responses

🟢200成功
application/json
Body

Example
{
    "success": true,
    "message": "Order cancelled successfully."
}
Modified at 2026-02-28 08:30:06
Previous
Get Order Detail API
Next
Get PodInfo API
Built with