change status on successful ticket scan in api