Skip to main content

Customer Validation

Index:

S.NOIndex Link
1Customer Validation Rules
2SMDS CMD Validation Rules

For any new customer creation or updating existing customer, particular customer’s fields will be validated before persisting into database. All the fields are validated with general as well as specific validation rules. In below document all the validation rules for Each field and its sub fields are listed.

Validation Rules

S. NoFIELDSSUB FIELDSVALIDATIONS/RULES DescriptionSub fields mandatory status
1Trading NameTrading Name must not be null and should match its regular expressionMandatory
2Legal Namemust match its defined regular expression
3Customer Local NameLocal Name length must be between (3,200)
4Customer TypeCustomer Type can be only either ZICC or ZEXC, any other values are not allowed
3Customer Address Required/MandatoryMandatory
CountryMandatoryMandatory
Country CodeCountry Code must not be null and should match its regular expression
Country CodeCountry Code is validated with database country codes. And its valid if it's present in ref_country table
Country CodeMandatory
Country NameCountry Name must match its defined regular expression
Country NameCountry Name is validated with given country Code
Combination of Country Code and Country Name should be a valid combination. Example: IN + INDIA
Region
Region CodeRegion Code must not be null and should match its regular expressionMandatory
RegionCode is validated with database Region codes. And its valid if it's present in ref_Region table
Region NameRegion Name must match its defined regular expression
Region Name is validated with given Region Code
Combination of Region Code and region Name should be a valid combination. Example: MH + Maharashtra
street NumberRegular expression validation
street NameRegular expression validation
PoBox or Street Name is mandatory, either of them is required to perform ingest
apartment FloorRegular expression validation
sub-AreaRegular expression validation
district NameRegular expression validation
city NameRegular expression validationMandatory
poBox NumberRegular expression validation
PoBox or Street Name is mandatory, either of them is required to perform ingest
postal CodeRegular expression validation
isoLanguageCodeRegular expression validation
Language code is validated with data present in database. It's valid only if its present in database
latitudeNo validation
longitudeNo validation
4Special Scenario for japanFor country JAPAN (JP) all above address fields are mandatory
5TELECOMMUNICATION
communicationNumberTypeMandatoryMandatory
must be either MOB or TEL other than these values will not be allowed
Countrysame validation mentioned under customerAddress
internationalDalingcodeMandatoryMandatory
must match its defined regular expression
NumberMandatoryMandatory
must match its defined regular expression
ExtensionNumbermust match its defined regular expression
IsDeletedFlagCannot be true in customer create scenario
Combination of International dailing code and phone Number should be valid. Example: +91 and 9849214822 (phone number should be valid working as per india tele network rules and regulations)
Combination of countryCode and Internation dailing code should be valid. Example: IN and +91
6customerStatus
statusCodestatusCode cannot be Suspended/Inactive during creationMandatory
Accepted values are only "A", "S", "I" which are Active,Inactive,Suspended
statusReasonstatusReason must be aligned with passed statusCode
7urlURL length validation: must be between [3,100] characters
URL format validation
8invoiceISOLanguageCodePreferencemust match its defined regular expression
9isBrokerageIt is a boolean field, so could be either true or false only
10isForwardersCompensationIt is a boolean field, so could be either true or false only
11customerWorkflowIndicatorValue should match the regular expression defined
12isSoleProprietorIt is a boolean field, so could be either true or false only
13CustomerIdentifiersCountryMandatory fields validations: Without mandatory fields Ingest is not allowed
identifierCode, mandatoryRegular Expression validations: All field's values must match their defined regexMandatory
identifierValue, mandatoryIdentifierValue is validated against the smds_generic_country and scpi_country_rules for the country specified in customerIdentifiers sectionMandatory
identifierType, mandatoryIdentifierType should be either TAX_NUM or REF_NUMMandatory
isDeletedFlagEach identifier inside customerIdentifiers list is validated again smds_generic and scpi_country_rules based on respective each country fields
IdentifierCode is validated against the smds_generic_country and scpi_country_rules for the country specified in customerIdentifiers section
14ExternalSystemIdentifiers MandatoryExternalSystemNameMandatory fields validations: Without mandatory fields Ingest is not allowedMandatory
ExternalSystemReferenceRegular Expression validations: All field's values must match their defined regexMandatory
ExternalSystemName code should be present in reference table in database maintained for external system name codes
15Customer brandsbrandCodeMandatory fields validations: Without mandatory fields Ingest is not allowedMandatory
brandNameRegular Expression validations: All field's values must match their defined regex
brand code should be present in brands reference table in database which is maintained for all brands.
brandsName provided in request should match the brandValue for given brandCode in brands_reference table in database
16CustomerWebBillLadingsbrandCodeMandatory fields validations: Without mandatory fields Ingest is not allowedMandatory
isNegotiableBLRegular Expression validations: All field's values must match their defined regex
isNonNegotiableBLbrand code should be present in brands reference table in database which is maintained for all brands.
isNegotiableBL is a boolean field, So could be either true or false only
isNonNegotiableBL is a boolean field, so could be either true or false only
17CustomerAuditDatauserMandatory fields validations: Without mandatory fields Ingest is not allowedMandatory
sourceSystemRegular Expression validations: All field's values must match their defined regexMandatory

SMDS CMD Country specific rule set extract

S.NoDateGeneric Country rulesSCPI Country rules
126th Feb 2024
Was this page helpful?