Upsert
AI-generatedSummary
Create a Dobare Customer Club member when the phone number is not found, or update the existing member when it is. The operation checks for the member by phone first; errors other than a 404 stop the operation.
Inputs
- Phone (required) — Iranian mobile number used to find the member and identify the record to create or update.
- Name — Member name; sent only when nonempty.
- Birth Date — Birth date in YYYY-MM-DD format; sent only when nonempty.
- Marriage Date — Marriage date in YYYY-MM-DD format; sent only when nonempty.
- Labels to Add — Comma-separated labels to add. Values are trimmed and empty entries omitted; sent only when at least one label remains.
- Labels to Remove — Comma-separated labels to remove. Values are trimmed and empty entries omitted; sent only when at least one label remains.
- Referred By Code — 6-digit referral code, sent only when creating a new member and the value is nonzero.
Output shape
One n8n item per input item, containing the API response's data for the created or updated member.
Uses GET /v1/members/{phone}/ to check for an existing member, then PATCHes that member or POSTs a new one. Empty optional values are omitted from the request.