Retrieve Inventory Transfers.

In ERPLY, an Inventory Transfer is a document that moves inventory between locations (stores); subtracts from one location and adds to the other. An Inventory Transfer has a list of items and quantities.

Non-stock products and bundles cannot be transfered (these items do not have inventory).

To create or update an Inventory Transfer, see saveInventoryTransfer.

To get a CSV report of Inventory Transfers, see getInventoryTransferReport. If you need all Transfers that have taken place in a certain time period, it is more efficient to get the report — you will get all the data with just one query.

Input parameters

Parameter nameDescriptionPossible valueRequired
inventoryTransferIDGet one specific Inventory TransferInteger
warehouseFromIDRetrieve transfers from a specific source location (warehouse, store). See getWarehouses.Integer
warehouseToIDRetrieve transfers to a specific destination location (warehouse, store). See getWarehouses.Integer
dateFromDate (yyyy-mm-dd)
dateToDate (yyyy-mm-dd)
getCostIf set to 1, API also returns the cost.Integer
confirmed0 or 1Integer
typePossible values: TRANSFER, TRANSFER_ORDER.String
fulfilledIf set to 1, API returns only fulfilled Inventory Transfer Orders.Integer (0 or 1)
searchAttributeNameSearch from attribute name. searchAttributeName and searchAttributeValue have to be specified bothString
searchAttributeValueSearch from attribute valueString
changedSinceRetrieve only items that have been added or modified since the specified timestamp. Use it to keep a local database in sync with ERPLY.Integer (Unix timestamp)
recordsOnPageNumber of records API should return. By default 20, at most 100.Integer
pageNoAPI returns at most recordsOnPage items at a time. To retrive the next recordsOnPage items, send a new request with pageNo incremented by one. By default, API returns "page 1".Integer


Field nameTypeDescription
inventoryTransferIDIntegerID of inventory transfer
inventoryTransferNoIntegerInventory transfer number
currencyCodeStringCurrency code: EUR, USD.
currencyRateDecimaleg. 1.25543
Exchange rate of the inventory transfer currency against system's default currency.
typeStringPossible values: TRANSFER, TRANSFER_ORDER.
inventoryTransferOrderIDIntegerSource document ID.
dateDateeg. 2010-01-29
inventoryTransactionDateDateInventory transaction date.
This is the date on which the document was confirmed and when the items on this document were added into inventory, or removed from inventory. While "document date" can be edited by users at any time, "inventory transaction date" is always set by ERPLY and cannot be changed.
Inventory Reports and COGS reports are based on the inventory transaction date.
confirmedInteger0 or 1
addedUnix timestampCreation time.
lastModifiedUnix timestampLast modification time.
rowsArrayEach row contains the following fields:

Field nameTypeDescription
productIDIntegerID of the transfered product.

Unit cost at which the transfer was done. However, it is recommended to use the "cost" field instead.

When you create an Inventory Transfer, ERPLY sets the cost automatically, depending on which inventory batches the quantity is drawn from. In the past, it was possible to set it manually, hence we have the separate "price" field.

amountDecimalTransfered quantity.

Unit cost. This value is retrieved directly from inventory records, so it always reflects the true cost at which the items were transfered.

To retrieve this field, you need to set input parameter "getCost" = 1.


Package ID, if the item has been transfered in packages.

To retrieve the packages of a particular product, see getProducts, block "productPackages".

This field, and the following ones, are not returned if your account does not have the "Packages on Inventory Transfers" extra module activated.

amountOfPackagesDecimalAmount of packages
amountInPackageDecimalAmount of products contained in one package
packageTypeStringReadable package type name
packageTypeIDIntegerType ID of the package.
attributesArrayAdditional attributes. Each item looks like this:

Field nameTypeDescription
attributeNameStringAttribute name
attributeTypeStringAttribute type
attributeValueStringAttribute value