post https://api.zenskar.com/customers
Create a new customer in the system with comprehensive profile information.
Required fields:
- customer_name: The name of the customer or company
Optional fields:
- email: Primary contact email (must be unique within organization if provided)
- phone: Contact phone number
- billing_address: Complete billing address details
- shipping_address: Shipping address (if different from billing)
- custom_data: Organization-specific custom fields (JSON object)
- external_id: External identifier from third-party systems
Validation:
- Email must be valid format and unique within organization (if provided)
- Phone must be valid format (if provided)
- Address fields validated for completeness
- Custom data must be valid JSON structure
Returns:
- 200: Customer created successfully with full customer details
- 400: Validation error or duplicate customer
- 422: Schema validation error
- 500: Internal server error