OPEN-API-English
  1. Inventory
OPEN-API-English
  • Default Group
    • Product
      • Create/Edit Products
      • Create Product Identification Code
      • Query SKU
      • SKU Batch Query
    • Inbound Plan
      • Create Inbound Plan
      • Inbound Plan Shipping Operation
      • Add Inbound Plan Attachment
      • Cancel Inbound Plan
      • Inbound Plan Information Query
    • Inventory
      • Batch Inventory Query
        GET
      • Inventory Query
        POST
      • Batch Query of Inventory Age
        GET
    • Orders
      • Create Sales Order (with attachments)
      • Get Order Details
      • Orders - Query List
      • Order Attachment Upload
      • Cancel Order
  1. Inventory

Batch Query of Inventory Age

Testing
GET
/v1/inventoryAge/getInventoryAgePage
inventoryAge
客户需要自主批量查询库龄数据

Request

Query Params
warehouseCodes
array[string]
optional
Warehouse Code
Example:
["1"]
page
integer 
required
Page Number, e.g., 1
Example:
1
rows
integer 
required
The rows number per page, for example, 10 (default maximum here is 200)
Example:
200
sidx
string 
required
Sorting field, can be hardcode "ID"
Example:
id
sort
string 
required
Sorting rules,"asc" ascending, "desc" descending
Example:
asc
Header Params
x-api-key
string 
optional
Example:
abc123(认证信息)
Content-Type
string 
optional
Example:
application/json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1/v1/inventoryAge/getInventoryAgePage?warehouseCodes=1&page=1&rows=200&sidx=id&sort=asc' \
--header 'x-api-key: abc123(认证信息)' \
--header 'Content-Type: application/json'

Responses

🟢200成功
application/json
Body
statusCode
integer 
required
status
integer 
required
code
integer 
required
Return Code 200 is successful
message
string 
required
Return message
data
object 
required
pageable
object 
required
totalElements
integer 
required
totalPages
integer 
required
last
boolean 
required
first
boolean 
required
sort
object 
required
numberOfElements
integer 
required
size
integer 
required
number
integer 
required
empty
boolean 
required
content
array [object {31}] 
required
Inventory Age List
Example
{
    "statusCode": 200,
    "status": 0,
    "code": 200,
    "message": "Operate Successful",
    "data": {
        "pageable": {
            "draw": 0,
            "offset": 0,
            "pageNumber": 0,
            "pageSize": 2,
            "paged": true,
            "unpaged": false
        },
        "totalElements": 22,
        "totalPages": 11,
        "last": false,
        "first": true,
        "sort": {
            "sorted": true,
            "unsorted": false,
            "empty": false
        },
        "numberOfElements": 2,
        "size": 2,
        "number": 0,
        "empty": false,
        "content": [
            {
                "orgWarehouseCode": "COPE_CA_US",
                "project": null,
                "sku": "Demoo_test09",
                "productType": 1,
                "productTypeName": "成品",
                "inventoryType": 0,
                "inventoryTypeName": "可售库存",
                "inventoryCurrent": 2,
                "inventoryDay7": 0,
                "inventoryDay30": 0,
                "inventoryDay60": 0,
                "inventoryDay90": 0,
                "inventoryDay120": 2,
                "inventoryDay180": 2,
                "inventoryDay270": 0,
                "inventoryDay360": 0,
                "inventoryMore360": 0,
                "inventoryVolDay7": 0,
                "inventoryVolDay30": 0,
                "inventoryVolDay60": 0,
                "inventoryVolDay90": 0,
                "inventoryVolDay120": 1.540512,
                "inventoryVolDay180": 1.540512,
                "inventoryVolDay270": 0,
                "inventoryVolDay360": 0,
                "inventoryVoMore360": 0,
                "length": 27.94,
                "width": 27.94,
                "height": 27.94,
                "weight": 4989.512,
                "updatedAt": "2023-06-01 07:17:36"
            },
            {
                "orgWarehouseCode": "COPE_CA_US",
                "project": null,
                "sku": "PCD00240701",
                "productType": 1,
                "productTypeName": "成品",
                "inventoryType": 0,
                "inventoryTypeName": "可售库存",
                "inventoryCurrent": 100,
                "inventoryDay7": 100,
                "inventoryDay30": 0,
                "inventoryDay60": 0,
                "inventoryDay90": 0,
                "inventoryDay120": 0,
                "inventoryDay180": 0,
                "inventoryDay270": 0,
                "inventoryDay360": 0,
                "inventoryMore360": 0,
                "inventoryVolDay7": 5.62387,
                "inventoryVolDay30": 0,
                "inventoryVolDay60": 0,
                "inventoryVolDay90": 0,
                "inventoryVolDay120": 0,
                "inventoryVolDay180": 0,
                "inventoryVolDay270": 0,
                "inventoryVolDay360": 0,
                "inventoryVoMore360": 0,
                "length": 24.5,
                "width": 5,
                "height": 13,
                "weight": 460,
                "updatedAt": "2022-07-07 07:19:42"
            }
        ]
    }
}
Modified at 2023-12-07 22:26:46
Previous
Inventory Query
Next
Create Sales Order (with attachments)
Built with