I think there's a specific API for that in the QB