1. B2C Shipment
Onflow Open API
  • Getting Started
  • Overall logic
  • Error code
  • API
    • Config
      • Get Warehouse
      • Get Brand
      • Get Province
      • Get District
      • Get Ward
      • Upload file
    • 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
          POST
        • Get B2C Shipment List
          GET
        • Get B2C Shipment Detail
          GET
        • Cancel B2C Shipment
          PUT
      • B2C Return shipment
        • Create Return B2C Shipment
        • Get Return B2C Shipment List
        • Get Return B2C Shipment Detail
        • Cancel Return B2C Shipment
  • Webhook
    • Shipment
      • Updated Shipment Status
    • Return
      • Updated Return Status
    • PO
      • Updated PO Status
    • Stock
      • Updated Stock
  1. B2C Shipment

Cancel B2C Shipment

PUT
/api/v1/shipments/b2c/{tracking_code}/cancel
This API is used to cancel a B2C shipment. It can only be used when the shipment has not yet reached the HANDOVER status.

Request

Path Params

Header Params

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/v1/shipments/b2c//cancel' \
--header 'Authorization: {{token}}' \
--header 'Accept-Language: vi' \
--header 'Content-Type: application/json'
Response Response Example
{
    "data": {
        "success": true,
        "status_info": {
            "value": 500,
            "label": "Đã hủy sau đóng gói"
        },
        "cancelled_time": 1774426854
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3",
    "error_detail": null
}
Modified at 2026-03-26 06:18:11
Previous
Get B2C Shipment Detail
Next
Create Return B2C Shipment
Built with