Skip to main content
POST
Start a batch import for donors or recipients

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Body

application/json
filename
string

S3 filename of the CSV

original_filename
string

Original uploaded filename

import_type
string

Type of import (donors or recipients)

fields
object

Mapping of CSV columns to field keys

household
boolean

Enable household feature

householdColumn
string

Household column name

householdNameColumn
string

Household name column name

householdAddress1Column
string

Household address1 column name

householdAddress2Column
string

Household address2 column name

householdCityColumn
string

Household city column name

householdStateColumn
string

Household state column name

householdZipColumn
string

Household zip column name

householdCountryColumn
string

Household country column name

householdPrimaryColumn
string

Household primary column name

householdRelationColumn
string

Household relation column name

hysCustomid
string[]

Household custom ID field

notify_donor
boolean

Notify donor

notify_donor_template_id
integer

Notify donor template ID

sp_amount
string

Sponsorship amount

Example:

"numeric"

sp_num
integer

Sponsorship number

offset
integer

Header row offset

updateExisting
boolean

Update existing records instead of creating new ones

allowTypeTransitions
boolean

Allow reviewed donor rows to change between Individual and Organization

uniqueIdentifierColumn
string

CSV column position for unique identifier

uniqueIdentifierField
string

Database field name to query by for finding existing records

program_id
integer

Program ID

Response

Batch import started successfully

message
string
Example:

"Donor/Recipient import batch has been started."

batch_id
integer
Example:

123