give_to_church
Make a one-time donation to a church ON BEHALF OF A USER, within the spending caps they pre-authorized. Requires the user's consent_token with the 'giving:write' scope (bound to this agent) and a card they saved in the SoapBox app. The gift goes straight to the church (passthrough — SoapBox takes no cut). Rejected if the amount exceeds the per-gift or monthly cap. Pass a stable idempotency_key to avoid double-charging on retries. Amounts are in the smallest currency unit (cents). This moves the user's money: confirm the church and amount with the user before every call. The user is notified of every gift.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional short note to the church accompanying the gift. | |
| currency | No | Optional ISO 4217 currency code (lowercase). Must be the church's own currency; omit it to use that. AI-agent gifts are available in USD, CAD, GBP, EUR, AUD and NZD. | |
| amount_cents | Yes | Gift amount in the smallest currency unit (cents), at least 100. Must be within the user's per-gift and monthly caps or the call is rejected. | |
| community_id | Yes | The recipient church's SoapBox community id (e.g. the soapbox_community_id from find_churches). | |
| consent_token | Yes | Opaque SoapBox consent token with the 'giving:write' scope, carrying the user's pre-authorized per-gift and monthly caps. Generated by the user in the SoapBox app (Settings › AI Agents). The first agent key to use a token is bound to it; a token no agent uses within 24 hours of being created stops working. | |
| idempotency_key | No | A stable, caller-generated key so retries don't double-charge. Reuse the same key when retrying the same intended gift. |