1. B2B Shipment
Onflow Open API
  • Getting Started
  • Overall logic
  • Error code
  • API
    • Config
      • Get Warehouse
      • Get Brand
      • Get Province
      • Get District
      • Get Ward
      • Upload file
      • Pricing
    • Product
      • Create Product
      • Assign Product
      • Get Product List
      • Get Product Detail
      • Get Stock
      • Deactivate Product
    • PO
      • Create PO
      • Get PO List
      • Get PO Bill
      • Get PO Detail
      • Get PO Inspection Detail
      • Cancel PO
    • Shipment
      • B2C Shipment
        • Create B2C Shipment
        • Get B2C Shipment List
        • Get B2C Shipment Detail
        • Cancel B2C Shipment
        • Get B2C Return Inspection
      • B2C Return shipment
        • Create Return B2C Shipment
        • Get Return B2C Shipment List
        • Get Return B2C Shipment Detail
        • Cancel Return B2C Shipment
        • Get B2C Return Shipment Inspection
      • B2B Shipment
        • Create
          POST
        • Get list
          GET
        • Get detail
          GET
        • Cancel
          PUT
      • B2B Return shipment
        • Create
        • Get list
        • Get detail
        • Cancel
        • Get B2B Return Shipment Inspection
    • Stock
      • Get inventory Batch/lot
      • Get inventory Expired date
      • Get inventory Expired percent
  • Webhook
    • Shipment
      • Updated Shipment Status
    • Return
      • Updated Return Status
    • PO
      • Updated PO Status
    • Stock
      • Updated Stock
  1. B2B Shipment

Cancel

PUT
/api/v1/shipments/b2b/{{tracking_code}}/cancel
This API allows users to cancel a B2B shipment.
A shipment can only be cancelled when its current status belongs to the New status (100 - New).
If the shipment does not exist or its current status does not allow cancellation, the API will return an error.

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************

Responses

🟢200
application/json
Bodyapplication/json

🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff --request PUT '/api/v1/shipments/b2b/{{tracking_code}}/cancel' \
--header 'Authorization: <api-key>'
Response Response Example
200 - Success
{
    "data": {
        "success": true,
        "status_info": {
            "value": 1000,
            "label": "Đã huỷ"
        },
        "cancelled_time": 1778817346
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3"
}
Modified at 2026-06-02 09:05:15
Previous
Get detail
Next
Create
Built with