batch margin endpoint abruptly throwing 400 errors