Get Stock Movements

GET/api/v1/stock/movements

Retrieve the history of stock movement transactions. Use the since parameter to fetch only movements recorded after a specific date.

Requires x-api-key

http://localhost:8100/api/v1/stock/movements

Query Parameters

FieldTypeRequiredDescription
sincestringOptionalReturn only movements recorded on or after this date. Format: YYYYMMDD.

Response

{
  "resultCd": "000",
  "data": {
    "stockList": [
      {
        "sarNo": 1,
        "regTyCd": "M",
        "ocrnDt": "20240115",
        "totItemCnt": 1,
        "totAmt": 5000,
        "stockItems": [
          {
            "itemCd": "SV0000000Z001",
            "itemNm": "Monthly SaaS Subscription",
            "stockTyCd": "11",
            "qty": 1,
            "unitPrice": 5000,
            "totAmt": 5000
          }
        ]
      }
    ]
  }
}
# All movements
curl http://localhost:8100/api/v1/stock/movements \\
  -H "x-api-key: YOUR_API_KEY"

# Since a date
curl "http://localhost:8100/api/v1/stock/movements?since=20240101" \\
  -H "x-api-key: YOUR_API_KEY"