is it possible to do an Inventory Transfer using R...
# suitetalkapi
i
is it possible to do an Inventory Transfer using REST API but without Advanced Bin Management? We use bins but don't use advance bin management so we don't work with the inventory detail subrecord. Typically in SOAP we would do something like this:
Copy code
<tranInvt:record xsi:type="tranInvt:InventoryTransfer">
                <tranInvt:location internalId="39" xsi:type="tranInvt:location"/>
                <tranInvt:transferLocation internalId="8" xsi:type="tranInvt:transferLocation"/>
                <tranInvt:subsidiary type="subsidiary" internalId="3" xsi:type="tranInvt:subsidiary"/>
                <tranInvt:memo>Move by USERNAME </tranInvt:memo>
                <tranInvt:inventoryList>
                    <tranInvt:inventory>
                        <tranInvt:item internalId="41998" xsi:type="listAcct:InventoryItem"/>
                        <tranInvt:adjustQtyBy>80</tranInvt:adjustQtyBy>
                        <tranInvt:fromBinNumbers>SO13</tranInvt:fromBinNumbers>
                        <tranInvt:toBinNumbers>OZ0104F</tranInvt:toBinNumbers>
                    </tranInvt:inventory>
                </tranInvt:inventoryList>
            </tranInvt:record>
Trying to do the same in REST API using:
Copy code
{
  "subsidiary": {
    "id": 3
  },
  "location": {
    "id": 14
  },
  "transferLocation": {
    "id": 8
  },
  "memo": "Move by USERNAME",
  "custbody_a1wms_dnloadtowms": false,
  "inventory": {
    "items": [
      {
        "item": {
          "id": 1869
        },
        "adjustQtyBy": 5,
        "fromBinNumbers": "M2214A",
        "toBinNumbers": "OZ1206G"
      }
    ]
  }
}
but get the error message: Error while accessing a resource. The number of bins entered (0) is not equal to the item quantity (5).