EASendCustomerToDatanuum
This document was generated using Claude.ai
Overview
Synchronizes customer information with the Datanuum external service for reward points and loyalty program integration. Builds a JSON payload containing customer personal details and contact information, then sends it to Datanuum's API to create or update customer records in their loyalty platform.
When This Action Runs
Manual execution when customer data needs to be synchronized with the Datanuum loyalty system, typically after customer registration, profile updates, or when setting up reward points integration for existing customers.
How It Works
- Validates reward config - Looks up the RewardPointsConfig by provided code or ID
- Extracts POS register - Gets POS register code from customer's ref5 field if available
- Initializes API client - Creates DatanuumApiClient with config and POS register information
- Builds customer payload - Creates JSON request body with customer details:
- Personal information (first name, last name, gender, birth date)
- Contact details (mobile phone, email address)
- Address information (nationality from country field)
- Sends to Datanuum - Transmits customer data to Datanuum API endpoint
- Returns results - Accumulates API response results and any errors
Parameters
Parameter 1: Reward Points Config Code Or ID (Required) - Configuration record for Datanuum integration
Example: DATANUUM_CONFIG_01 or 12345
Database Tables Affected
- RewardPointsConfig - Reads integration configuration settings (read-only)
- Customer Data - Reads customer personal and contact information (read-only)
- External Datanuum System - Creates/updates customer records via API calls
Module: supplychain
Full Class Name: com.namasoft.modules.supplychain.domain.utils.datanuum.EASendCustomerToDatanuum
Integration Type: External API - Datanuum Loyalty Platform
Related Actions:
- Other Datanuum integration entity flows
- Reward points management actions
- Customer data synchronization utilities