fixing the batch api call by adding calls to get response, calls and reference_id