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
      • Pricing
    • 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
        • 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
        • 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. Product

Get Stock

GET
/api/v1/products/{oasin}/warehouses/{warehouse_code}/stock
This API is used to retrieve product stock at the warehouse where it is currently stored.

Request

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

Header Params

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v1/products//warehouses//stock' \
--header 'Accept-Language: vi' \
--header 'Authorization: <api-key>'
Response Response Example
{
    "data": {
        "oasin": "OASIN7984075",
        "product_name": "HIGH VALUE",
        "warehouse_name": "FC APD",
        "physical_stock_a": 0,
        "reserved_stock_a": 0,
        "available_stock_a": 0,
        "physical_stock_d1": 0,
        "reserved_stock_d1": 0,
        "available_stock_d1": 0,
        "physical_stock_d2": 0,
        "reserved_stock_d2": 0,
        "available_stock_d2": 0,
        "physical_stock_d3": 0,
        "reserved_stock_d3": 0,
        "available_stock_d3": 0
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3",
    "error_detail": null
}
Modified at 2026-01-29 01:34:30
Previous
Get Product Detail
Next
Deactivate Product
Built with