1. Product
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
        POST
      • Assign Product
        PUT
      • Get Product List
        GET
      • Get Product Detail
        GET
      • Get Stock
        GET
      • Deactivate Product
        PUT
    • 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
      • 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. Product

Assign Product

PUT
/api/v1/products/{oasin}/assign-to-warehouse/{warehouse_code}
This API is used to assign products to warehouses. A single product can be assigned to multiple warehouses. At this stage, products can be used to create POs or shipments, and have status = ACTIVE.

Request

Path Params

Header Params

Responses

🟢200
application/json
Body

🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/v1/products//assign-to-warehouse/' \
--header 'Authorization: {{token}}' \
--header 'Accept-Language: vi' \
--header 'Content-Type: application/json'
Response Response Example
200 - Success
{
    "data": {
        "oasin": "OASIN1994387",
        "success": true
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.1",
    "error_detail": null
}
Modified at 2026-03-26 10:27:42
Previous
Create Product
Next
Get Product List
Built with