FieldEx Developer
developer notes

Add Asset to User Bin

Add an asset to a user bin using the specified API endpoint. Include details such as inventory item ID, quantity, asset information, user bin, and zone details for a seamless adjustment in inventory.

Method Endpoint
POST {{endpoint}}/api/inventories/ext/adjust

Headers

Key Value
Content-Type application/json
Authorization Bearer{{token}}

Example Request

{
  "inventoryItemVMS": [
    {
        "id": 106,
        "inventoryNumber": "I-000015",
        "qty": 22,
        "reOrderPoint": null,
        "underStock": null,
        "notes": null,
        "product": null,
        "assets": {
            "id": 17,
            "name": "KPA14",
            "runningNo": "AST-000017",
            "serialNo": "KPA14",
            "externalId": null
        },
        "user": null,
        "bin": {
            "id": 3,
            "name": "Store Bin B",
            "displayName": "Store Bin B",
            "shortCode": "Store Bin B",
            "binNumber": "BI-000003",
            "zoneId": 1,
            "zoneNumber": "ZO-000001",
            "zoneShortCode": "KL",
            "user": null,
            "wareHouseLocationId": 1,
            "wareHouseLocationNumber": "LOC-000001",
            "wareHouseLocationShortCode": "MY",
            "qty": null,
            "externalId": null
        },
        "zone": {
            "id": 1,
            "name": "KL",
            "displayName": "MY-KL",
            "shortCode": "KL",
            "zoneNumber": "ZO-000001",
            "wareHouseLocationNumber": "LOC-000001",
            "wareHouseLocationShortCode": "MY",
            "externalId": null,
            "storeManager": {
                "id": 1,
                "firstName": "hari",
                "superVisorName": null,
                "userType": null,
                "imageUrl": "https://s3.us-west-2.amazonaws.com/prod-springapp/custella_2/user_1/1649422638372-16494226383608989205184085673596.jpg",
                "fullName": "hari prashanth"
            },
            "userGroup": null
        },
        "productMeasureUnit": null,
        "wareHouseLocation": {
            "id": 1,
            "name": "MY",
            "shortCode": "MY",
            "address": "Suria KLCC, 241, Suria KLCC, Kuala Lumpur City Centre, 50088 Kuala Lumpur, Wilayah Persekutuan Kuala Lumpur, Malaysia",
            "locationNumber": "LOC-000001",
            "externalId": null,
            "storeManager": {
                "id": 1,
                "firstName": "hari",
                "superVisorName": null,
                "userType": null,
                "imageUrl": "https://s3.us-west-2.amazonaws.com/prod-springapp/custella_2/user_1/1649422638372-16494226383608989205184085673596.jpg",
                "fullName": "hari prashanth"
            },
            "userGroup": null
        },
        "combinationName": null,
        "newQty": null,
        "type": "LOCATION",
        "qtyTransfer": 0,
        "productName": null,
        "adjQty": 22,
        "newQtyIn": null,
        "newQtyOut": null,
        "assetName": {
            "id": 17,
            "name": "KPA14",
            "runningNo": "AST-000017",
            "serialNo": "KPA14",
            "externalId": null
        }
    }
  ]
}

Example Response

// 500 Response Code

{
    "type": http://www.jhipster.tech/problem/problem-with-message,
    "title": Internal Server Error,
    "status": 500,
    "detail": Source must not be null,
    "path": /custella-0.0.1-SNAPSHOT/api/inventories/ext/adjust,
    "message": error.http.500
}