CiviCRM icon

CiviCRM

Interact with CiviCRM API v4 to manage contacts, memberships, groups, and more.

Membership → Create

AI-generated

Summary

Creates a CiviCRM Membership record from the configured field name and value pairs, then retrieves the created record for output.

Inputs

  • Fields (required) — Add one or more field name and value pairs. The node converts values that look like booleans, numbers, or JSON into those types and sends non-empty values to the Membership create API.
  • Runtime Bearer Token (Optional) — An optional per-item JWT, often supplied by an expression such as ={{ $json.user_jwt }}. When set, it is used for the API calls without falling back to credential authentication if a call returns no data or fails.
  • Base URL Override — Optional per-item CiviCRM site root, without /civicrm. A missing scheme defaults to HTTPS; only HTTP and HTTPS URLs are accepted. If empty, the credential's Base URL is used.

Output shape

One item per input item, containing the created Membership record as JSON.

After creating the record, the node fetches it by its returned ID. The response selects a fixed set of fields (id, display_name, first_name, last_name, organization_name, legal_name, contact_type, gender_id, gender_id:name, and birth_date), which may not cover Membership-specific fields. If the create response has no ID, the node throws an error. With Continue On Fail enabled, errors are returned as { "error": "..." } items.

Links

Discussion