If you have the appropriate maintenance package to support the API module, create a customization to add gifts to a Batch.

Alternative solutions:

Globally add constituents to the gift batch.

OR

Import the gifts directly to the database. Note: If the constituents are not already in the database, import the constituents first.