Record contribution
civicrm_record_contributionWRITE: records ONE contribution (a donation, a payment received elsewhere) for a contact. It only STORES the financial record: no card is charged, no receipt is e-mailed, and the amount shows up in CiviCRM's reports and the contact's giving history. Check civicrm_list_contributions first to avoid a duplicate. APIv4 Contribution.create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Where it came from (free text). | |
| status | No | Contribution status by name: Completed (default), Pending, ... | |
| trxn_id | No | Your own reference, e.g. a check number or bank reference. | |
| currency | No | ISO currency code (default: the site's default). | |
| contact_id | Yes | CiviCRM contact id of the donor. | |
| receive_date | No | When it was received (default now). | |
| total_amount | Yes | Amount, in the site's currency unless currency is given. | |
| financial_type | Yes | Financial type by name, e.g. Donation, Member Dues, Event Fee, Campaign Contribution. | |
| payment_method | No | Payment method by name, e.g. Check, Cash, Credit Card, EFT. |