IMS
  1. Stock In Out
IMS
  • Auth
    • Login
      POST
    • Refresh
      POST
  • Users
    • Get Current Profile
      GET
    • Create User
      POST
    • List Users
      GET
    • Search User
      GET
    • Get User By ID
      GET
    • Update Current Profile
      PATCH
    • Update User Profile
      PATCH
    • Delete User
      DELETE
    • Restore Deleted User
      POST
  • Categories
    • List Categories
      GET
    • Search Category
      GET
    • Get Category By ID
      GET
    • Create Category
      POST
    • Update Category
      PUT
    • Delete Category
      DELETE
  • Units
    • List Units
      GET
    • Search Units
      GET
    • Create Unit
      POST
    • Get Unit By ID
      GET
    • Update Unit
      PUT
    • Delete Unit
      DELETE
  • Products
    • Create Product
    • Delete Product
    • Get Product By ID
    • List Products
    • Update Product
    • Search Product
  • Conversions
    • Create Conversion
    • List Conversions
    • List Conversions By Product
    • Search Conversions
    • Get Conversion by ID
    • Update Conversion
    • Delete Conversion
  • Stock In Out
    • Stock In / Out
      POST
    • List In / Out
      GET
    • Get By ID In / Out
      GET
    • Get Current Stock
      GET
    • Get In / Out Summary
      GET
    • Update In / Out
      PUT
    • Search Stock In / Out
      GET
  • Dashboard
    • debug
      • Summary
      • Daily Transaction Chart
      • Hourly Sales Chart
      • Low Stock Chart
      • Top Selling Chart
    • Get Dashboard Data
  1. Stock In Out

Stock In / Out

Developing
POST
stocks/

Request

Header Params

Body Params application/json

Example
[
    {
        "type": "out",
        "product_id": 2,
        "unit_id": 2,
        "quantity": 100,
        "notes": "test out"
    },
    {
        "type": "in",
        "product_id": 2,
        "unit_id": 2,
        "quantity": 10,
        "notes": "test in"
    }
]

Request Code 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 POST 'https://imsbev1-production.up.railway.app/api/v1/stocks/' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "type": "out",
        "product_id": 2,
        "unit_id": 2,
        "quantity": 100,
        "notes": "test out"
    },
    {
        "type": "in",
        "product_id": 2,
        "unit_id": 2,
        "quantity": 10,
        "notes": "test in"
    }
]'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-08-02 19:23:28
Previous
Delete Conversion
Next
List In / Out
Built with