1. B2B Return 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
        • Get list
        • Get detail
        • Cancel
      • B2B Return shipment
        • Create
          POST
        • Get list
          GET
        • Get detail
          GET
        • Cancel
          PUT
        • Get B2B Return Shipment Inspection
          GET
    • 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 Return shipment

Cancel

PUT
/api/v1/return-shipments/b2b/{{return_tracking_code}}/cancel
This API cancels a B2B return shipment.
A return shipment can only be cancelled before warehouse processing begins.
After a successful cancellation, the return shipment can no longer be processed by the warehouse.
##Rules
The return shipment must exist.
The return shipment must belong to the authenticated merchant.
Only return shipments that have not started warehouse processing can be cancelled.
Once cancelled, the return shipment cannot be restored.

Request

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

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff --request PUT '/api/v1/return-shipments/b2b/{{return_tracking_code}}/cancel' \
--header 'Authorization: <api-key>'
Response Response Example
{
    "data": {
        "return_tracking_code": "OARSB233096861",
        "success": true
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.8"
}
Modified at 2026-07-08 08:45:01
Previous
Get detail
Next
Get B2B Return Shipment Inspection
Built with