Create customer (or upsert)
documentedCreates a new customer (or upserts depending on implementation).
POST api/CustomerCustomerno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.cayzu.com/api/Customer" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"alternate_domains": ["{{$alternate_domain1}}","{{$alternate_domain2}}"], "address1": "{{$address1}}", "address2": "{{$address2}}", "city": "{{$city}}", "company_name": "{{$company_name}}", "country": "{{$country}}", "is_active": {{$is_active}}, "location": "{{$location}}", "notes": "{{$notes}}", "phone_number": "{{$phone_number}}", "postal_code": "{{$postal_code}}", "custom_fields": [ {"Name": "{{$cf1_name}}", "Type": "{{$cf1_type}}", "Value": "{{$cf1_value}}"}, {"Name": "{{$cf2_name}}", "Type": "{{$cf2_type}}", "Value": "{{$cf2_value}}"} ] }'