1. Stock
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
        • 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
      • Get inventory Expired date
        GET
      • Get inventory Expired percent
        GET
  • Webhook
    • Shipment
      • Updated Shipment Status
    • Return
      • Updated Return Status
    • PO
      • Updated PO Status
    • Stock
      • Updated Stock
  1. Stock

Get inventory Expired percent

GET
/api/v1/products/{{oasin}}/warehouses/{{warehouse_code}}/stocks/expired-percent

Description#

This API returns all available inventory records of a product along with their expiry dates, manufacturing dates, remaining shelf-life percentages, and available stock quantities.
This information can be used when creating shipments with product_strategy = EXPIRED_PERCENT.

Path Parameters#

ParameterTypeRequiredDescription
oasinstringYesUnique product OASIN identifier.
warehouse_codestringYesWarehouse code.

Request

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

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff '/api/v1/products/{{oasin}}/warehouses/{{warehouse_code}}/stocks/expired-percent' \
--header 'Authorization: <api-key>'
Response Response Example
{
    "data": [
        {
            "expiry_date": "2027-03-28",
            "expiry_date_percent": 88.0,
            "expiry_date_timestamp": 1806166800.0,
            "manufacturing_date": "2026-04-01",
            "availability_stock": 50
        },
        {
            "expiry_date": "2027-01-26",
            "expiry_date_percent": 72.0,
            "expiry_date_timestamp": 1800896400.0,
            "manufacturing_date": "2026-02-01",
            "availability_stock": 50
        }
    ],
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3"
}
Modified at 2026-06-02 09:51:05
Previous
Get inventory Expired date
Next
Updated Shipment Status
Built with