Skip to main content
POST
Import pledge card data for review

Authorizations

Authorization
string
header
required

Organization API key created in Grain Settings → API. The key determines the organization and is limited to its assigned resource scopes. Write scopes imply the corresponding read scope.

Headers

X-Organization-Id
string

Required with OAuth access tokens. Optional with organization API keys; if supplied, it must match the key's organization.

Idempotency-Key
string
required

A unique key for this import request. Retrying the same body with the same key returns the original import without creating duplicate rows.

Required string length: 1 - 255

Body

application/json
cards
object[]
required
Required array length: 1 - 500 elements
scanGroupId
string

Existing pledge card scan group ID. When set, cards are added as a new batch in that group. campaignId is inherited; a supplied request default fund or Rock account overrides the group's default.

name
string

Required when scanGroupId is omitted. Becomes the new scan group name.

Required string length: 1 - 100
Example:

"2027 annual pledge cards"

defaultFundId
string

Grain fund used when a card has no override. Required when scanGroupId is omitted unless defaultRockAccountId is supplied.

defaultRockAccountId
string

Exact Rock financial account used when a card has no override. Do not send with defaultFundId.

campaignId
string

Optional Grain pledge campaign ID. Ignored when scanGroupId is set; the group's campaign is used instead.

pledgeAudience
enum<string>
default:ADULT
Available options:
ADULT,
STUDENT

Response

Pledge card data imported for review

scanGroupId
string
required
batchId
string
required
reviewUrl
string<uri>
required
idempotentReplay
boolean
required
sourceFileAttachmentId
string
required

Secured audit artifact ID; not a scanned card attachment

cardsImported
integer
required
Required range: x >= 0
cardsSkipped
integer
required
Required range: x >= 0
cardsWithIssues
integer
required
Required range: x >= 0
duplicateCards
integer
required
Required range: x >= 0
items
object[]
required
Last modified on July 15, 2026