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

Create

POST
/api/v1/shipments/b2b/create

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
Bodyapplication/json

🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v1/shipments/b2b/create' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "warehouse_code": "{{warehouse_code}}",
    "merchant_tracking_code_reference": "{{merchant_tracking_code_reference}}",
    "courier_tracking_code": "{{merchant_tracking_code_reference}}",
    "carrier_code": "GHTK",
    "recipient": {
        "recipient_name": "{{recipient_name}}",
        "recipient_phone_number": "0961557476",
        "recipient_address": "Số 9 Trà Khúc",
        "recipient_ward": "Phường 02",
        "recipient_district": "Quận 1",
        "recipient_city": "Ho Chi Minh"
    },
    "use_insurance": 0,
    "shipment_value": "0",
    "cod_amount": null,
    "vas": [
        /*"PRIORITY_PACKING",
        "CO_INSPECTION",*/
        "AFTER_HOURS_PACKING"
    ],
    "items": [
        {
            "oasin": "OASIN1297150",
            "product_quantity": 10,
            "product_strategy": "NONE",
            "product_strategy_assignment": null
        }
    ],
    "documents":[ {
            "document_type": "PURCHASE",
            "document_url": "{{url_file}}",
            "print_quantity": 10
        }],
    "packaging_note": "Tôi muốn đóng nhanh",
    "note": "Nhanh thật nhanh"
}'
Response Response Example
201 - Success
{
    "data": {
        "tracking_code": "OASB202760389",
        "status_info": {
            "value": 100,
            "label": "Mới tạo",
            "updated_time": 1778724953
        },
        "created_time": 1778724953,
        "awb_code": "6a0530599dbf1f5c83729552"
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3"
}
Modified at 2026-06-26 09:52:53
Previous
Get B2C Return Shipment Inspection
Next
Get list
Built with