Inventory Transfer: Validation Rules

The following validation rules apply:

Field/Object Rule
destination_site_code The code describes a valid branch.
destination_site_code The code describes a branch that has "transfers allowed".
source_site_code The code describes a valid branch.
lines The object contains at least one item.
line_number The integer number is sequential and consecutive.
product_code The string relates to a valid UPC.
quantity The number is not negative.
transfer_reason_code Must be a valid transfer reason.
transfer_status Must be “draft”, “in_transit” or “complete”.

Error Codes

If any of the below validations fail, the API will return an error.

error_code Condition
DESTINATION_BRANCH_INVALID destination_site_code either has been configured to not accept transfers or has not been found as a valid branch.
SOURCE_BRANCH_ INVALID source_site_code has not been found as a valid branch.
UNEXPECTED_LINE_NUMBER The line number supplied is either not an integer, is a negative number, or is not consecutive and sequential (e.g. 1,2,3).
DUPLICATE_LINE_ITEM The supplied product_code is present in multiple order lines.
PRODUCT_CODE_NOT_FOUND The supplied product_code is not a recognised UPC.
INVALID_QUANTITY The supplied quantity is negative.