Batch API callback.