Create membership
civicrm_create_membershipWRITE: gives ONE contact a membership of a type. CiviCRM works out the dates and status from the type unless you give dates. It does NOT record a payment (use civicrm_record_contribution for that) and sends nothing. APIv4 Membership.create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Where it came from (free text). | |
| end_date | No | End date (default: calculated by the type). | |
| join_date | No | Join date (default today). | |
| contact_id | Yes | CiviCRM contact id. | |
| start_date | No | Start date (default: calculated by the type). | |
| membership_type | Yes | Membership type by name, e.g. General (see civicrm_get_fields Membership, field membership_type_id). |