1. Product
Onflow Open API
  • Getting Started
  • API
    • Config
      • Get Warehouse
      • Get Brand
      • Upload file
    • Product
      • Create Product
        POST
      • Assign Product
        PUT
      • Get Product List
        GET
      • Get Product Detail
        GET
      • Delete Product
        DELETE
      • Get Stock
        GET
    • PO
      • Get PO List
      • Create PO
      • Cancel PO
    • Shipment
      • B2C shipment
        • Get B2C Shipment
        • Create B2C Shipment
          • Create B2C Shipment
        • Cancel B2C Shipment
          • Cancel B2C Shipment
  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-01-29 01:36:25
Previous
Create Product
Next
Get Product List
Built with