Catalyzes the first step in a degradation pathway of oxalate to CO(2) to protect the cell against the harmful effects of oxalate derived from endogenous processes or an environmental sources. ATP + CoA + oxalate = AMP + diphosphate + oxalyl-CoA The FACS motif is required for catalytic activity and substrate specificity. Belongs to the ATP-dependent AMP-binding enzyme family.