3.2 KiB
Rome – Search Customer Service Vehicle Combined (v1.1, May 2015) — Full Synapse
What it does: one-shot search that returns customer identity + all matching service vehicles based on exactly one of the permitted search patterns (e.g., NameRecId, FullName, Phone, Partial VIN, Stock #, License #, or FullName/LName + Model triple). Results include customer contact info and each vehicle’s details and service metadata.
Transport
- SOAP/HTTPS to RCI
ProcessMessage, separate test and prod endpoints/credentials. - Standard HTTP response codes; XML payloads validate against request/response XSDs.
Trigger & allowed search modes
Pick exactly one of these (no mixing):
Last Name + Partial VINFull Name + Partial VINLast Name + PhoneFull Name + PhoneFull Name(alone)NameRecId(alone)Phone(alone)Phone + Partial VINLast Name + (Make, Model, Year)Full Name + (Make, Model, Year)Vehicle Stock #(alone)Vehicle License #(alone)Partial or Full VIN(alone) Business customers only match withNameRecId,Phone,Stock #,License #,Phone+Partial VIN, orPartial/Full VIN.
Request (rey_RomeCustServVehCombReq)
-
ApplicationArea:Sender(Component=Rome, Task=CVC, CreatorNameCode=RCI, SenderNameCode=RCI),CreationDateTime(yyyy-mm-ddThh:mm:ssZ), optionalBODId(GUID),Destination(DestinationNameCode=RR, plus dealer/store/area routing). -
CustServVehCombReq:QueryData: one ofLName,FullName(FName,LName,MName),NameRecId(CustIdStart),Phone(Num),PartVIN(Vin),StkNo(VehId),LicenseNum(LicNo); optionalMaxRecs(≤ 50).VehData:MakePfx(2-char make),Model(carline/description match),Year(2 or 4).OtherCriteriapresent but “not used”.
Response (rey_RomeCustServVehComb)
-
ApplicationArea(Sender typicallyRR, Task=CVC, etc.) andTransStatuswithStatus=Success|Failure,StatusCode(numeric), and optional message text. -
CustServVehCombrecords (0..n), each with:NameContactId:NameId(IBFlagI|B, individual or business name + optionalNameRecId), plus repeatingAddress,ContactOptions,Phone,Email.ServVehicle(0..n):Vehicle(VIN, Make, Year, Model, Carline, color, detail attrs), andVehicleServInfo(attributes for StockID, CustomerNo, Service history fields; children:VehExtWarranty,Advisor.ContactInfo@NameRecId,VehServComments*).
Return codes (subset)
0Success;201Required data missing;202Validation error;213No matching records;9999Undefined error. (UseTransStatus@StatusCode+ text to decide UX.)
Implementation checklist
- Build one of the allowed queries; if multiple criteria are supplied, RCI treats it as invalid.
- Generate
BODIdGUID per call; log it for tracing. - Fill routing (
DealerNumber,StoreNumber,AreaNumber) for the target store/branch. - Enforce
MaxRecs(default is 1; if >1 results andMaxRecsomitted, API returns “multiple exist” error). - XSD-validate request/response; map
TransStatusto domain errors; return empty list on213.