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

Create Return B2C Shipment

POST
/api/v1/return-shipments/b2c/create
This API is used to create B2C shipments. At this stage, shipment status = NEW. Please note that Onflow Fulfillment Carrier Service is not applicable for this case.

Request

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

Body Params application/json

Examples

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v1/return-shipments/b2c/create' \
--header 'Accept-Language: vi' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "warehouse_code": "ONF_WH_HN_LB",
    "merchant_return_tracking_code_reference": "{{merchant_return_tracking_code_reference}}",
    "shipment_tracking_code": "OASC209011649",
    "return_courier_tracking_code": "{{return_courier_tracking_code}}",
    "carrier_code": "GHN",
    "return_items": [
        {
            "oasin": "OASIN4091782",
            "product_quantity": 3
        },
        {
            "oasin": "OASIN7426319",
            "product_quantity": 3
        }
    ],
    "return_reason": "Customer requested return"
}'
Response Response Example
{
    "data": {
        "created_time": 1774506251,
        "updated_time": 1774506252,
        "return_tracking_code": "OARSC98220674",
        "status_info": {
            "value": 100,
            "label": "Chờ nhận",
            "updated_time": 1774506251
        },
        "status": 100
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3",
    "error_detail": null
}
Modified at 2026-04-02 07:38:15
Previous
Get B2C Return Inspection
Next
Get Return B2C Shipment List
Built with