FieldEx Developer
developer notes

Add Product to User Bin

Add a product to a user bin using the specified API endpoint. Provide details such as inventory item ID, quantity, user information, and bin details to update the inventory accordingly.

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-000037,
      "qty": 4,
      "reOrderPoint": null,
      "underStock": null,
      "notes": null,
      "product": {
          "externalId": null
      },
      "assets": null,
      "user": {
          "id": 4,
          "login": sandeep@lavalabs.net
      },
      "bin": {
          "id": 4,
          "binNumber": BI-000004,
          "user": {
              "id": 4,
              "login": sandeep@lavalabs.net
          },
          "wareHouseLocationId": null,
          "qty": null,
          "externalId": null
      },
      "zone": null,
      "productMeasureUnit": null,
      "wareHouseLocation": null,
      "combinationName": null,
      "newQty": 29,
      "type": USER,
      "qtyTransfer": 0,
      "assetName": null,
      "adjQty": 33,
      "newQtyIn": 29,
      "newQtyOut": null
    }
  ]
}

Example Response

// 400 Response Code

{
    "type": "http://www.jhipster.tech/problem/problem-with-message",
    "title": Location not found with external id,
    "status": 400
}