add referenceOrderId to reserve function

Edited by Daniel Kazior