Ingest Facility
Description: In the CMD context, a Customer Facility refers to a location where shipping materials are stored. The Ingest Facility is a service used to ingest and manage facility records. This service is accessible to any external application with appropriate access, including the CMD Portal or other backend services.
A Customer Facility can be associated with one or more customers through customer-facility relationships. Within the CMD application, the Customer Facility entity supports the following operations:
- Creation: Adding new facility records.
- Updating: Modifying existing facility details.
- Inactivation: Marking facilities as inactive when they are no longer in use.
These operations ensure seamless management and association of facilities with customers.
API Contract:
Refer below document to understand the request/response Structure :
Functionalities:
- Create/Update Facility: Enables the creation of new facilities and updating details of existing ones.
- Validate Facility: Ensures that the facility data provided is accurate and adheres to the required structure and business rules.
- Duplicate Match: Identifies duplicate facility records to maintain data integrity.
- Assign Customer-Facility Relationship: Establishes and manages associations between customers and their respective facilities.
These operations and functionalities ensure efficient management of facility data and robust integration with customer relationships.
Mandatory fields for creations are:
| FIELDS | MANDATORY |
|---|---|
| Customer Facility Name | ✅ |
| Either Street Name or P.O. Box | ✅ |
| Country Name | ✅ |
| City Name | ✅ |
| Postal Code | Depends on Country Generic rule |
| Street Number | Depends on Country Generic rule |
| Region/ State | Depends on Country Generic rule |
FACILITY CREATE/UPDATE/ASSIGN FLOW
Validation Rules for Facility Records:
- Every field’s value must adhere to its defined regular expression.
- Each facility field's value must conform to the specified regex format.
- The Facility Name is mandatory.
- Country Name and City Name are mandatory fields.
- At least one of Street Name or P.O. Box is mandatory.
- The Source System must be valid.
- Validation should ensure that facilities are not associated with restricted countries.
- Reference Data Validation: Verify fields such as country code, country name, and city name against reference data.
- Country Rule Set Validation: Check fields like Street Name, Street Number, Region, P.O. Box, and Postal Code to ensure compliance with the mandatory requirements defined for each country.
- Use an External API to validate City Code and Postal Code values.