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

Get detail

GET
/api/v1/return-shipments/b2b/{{return_tracking_code}}/detail
This API returns detailed information about a B2B return shipment, including return items, warehouse information, return journey, value-added services (VAS), and return processing statistics.

Notes#

All timestamps are Unix timestamps (seconds).
Quantity fields are updated during warehouse receiving and inspection.
return_journeys contains the complete return shipment lifecycle.
received_quantity, damaged_quantity, and lost_quantity are aggregated values of all return_items.

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 '/api/v1/return-shipments/b2b/{{return_tracking_code}}/detail' \
--header 'Authorization: <api-key>'
Response Response Example
{
    "data": {
        "received_quantity": 0,
        "damaged_quantity": 0,
        "lost_quantity": 0,
        "status_info": {
            "value": 100,
            "label": "Chờ nhận",
            "updated_time": 1783479964
        },
        "created_time": 1783479964,
        "updated_time": 1783496108,
        "return_tracking_code": "OARSB233096861",
        "merchant_return_tracking_code_reference": "MRCR_1898877889_9878",
        "warehouse_code": "ONF_WH_HCM_APD",
        "returned_time": 0,
        "return_completed_time": 0,
        "inspection_time": 0,
        "estimated_arrival_time": 1783739163,
        "total_products": 4,
        "total_products_quantity": 20,
        "return_items": [
            {
                "received_quantity": 0,
                "damaged_quantity": 0,
                "lost_quantity": 0,
                "oasin": "OASIN1236217",
                "product_quantity": 5
            },
            {
                "received_quantity": 0,
                "damaged_quantity": 0,
                "lost_quantity": 0,
                "oasin": "OASIN1261341",
                "product_quantity": 5
            },
            {
                "received_quantity": 0,
                "damaged_quantity": 0,
                "lost_quantity": 0,
                "oasin": "OASIN1243180",
                "product_quantity": 5
            },
            {
                "received_quantity": 0,
                "damaged_quantity": 0,
                "lost_quantity": 0,
                "oasin": "OASIN1268325",
                "product_quantity": 5
            }
        ],
        "note": "This is a test return shipment",
        "return_journeys": [
            {
                "status_info": {
                    "value": 100,
                    "label": "Chờ nhận",
                    "updated_time": 1783479964
                },
                "return_tracking_code": "OARSB233096861",
                "source": "OA"
            }
        ],
        "vas": [
            "UNLOADING"
        ]
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.8"
}
Modified at 2026-07-08 07:38:04
Previous
Get list
Next
Cancel
Built with