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).
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). Defaults to the church's own currency. | |
| amount_cents | Yes | Gift amount in the smallest currency unit (cents). 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, bound to your agent key and carrying the user's pre-authorized per-gift and monthly caps. Generated by the user in the SoapBox app. | |
| idempotency_key | No | A stable, caller-generated key so retries don't double-charge. Reuse the same key when retrying the same intended gift. |