Skip to main content
POST
Set a donor's default Stripe card

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Path Parameters

donor_id
integer
required

Donor whose default card is being changed.

Body

application/json
card_id
string
required

Stripe card identifier (e.g. card_ABC123 or src_ABC123) to mark as default.

Example:

"card_1J4XYZabcdef"

Response

Default card updated.

message
string
Example:

"Card updated successfully"