Create a credit-card wallet for a fundraising donor

Validates merchant-specific card fields, verifies that the campaign is active, resolves or creates the fundraising donor, and creates the wallet through the selected merchant account. Invalid donation type amounts are rejected with 400.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
merchant_account_idintegerRequired
fundraising_idintegerRequired
donation_type_idinteger or nullOptional
card_numberstringOptional
credit_card_numberstringOptional
credit_card_exp_datestringOptional
credit_card_cvcstringOptional
messagestring or nullOptional
full_namestring or nullOptional
emailstring or nullOptionalformat: "email"
notestring or nullOptional
parent_student_idinteger or nullOptional
family_student_idinteger or nullOptional
fundraising_donor_idinteger or nullOptional
wallet_descriptionstring or nullOptional
activeboolean or nullOptional

Response

Wallet created; card-sensitive values are represented according to WalletResource and gateway configuration.

statusstring
messagestring
datamap from strings to any

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error