Reject Organization Customer Based on Failed Validation

The following section includes sample REST and SOAP XML request call as well as the XML response.

Required value for successful validation:

  • InputStreet

Reject Organization Customer Based on Failed Validation Web Service Request

REST

Copy
[{
        "correlationID": "1",
        "entity": {
            "id": "371699",
            "name": "Stibo Systems",
            "objectType": "OrganizationCustomer",
            "parent": "111301",
            "values": {
                "LegalName": {
                    "value": {
                        "value": "Stibo Systems"
                    }
                }
            },
            "references": {
                "CustomerSourceSystem": {
                    "references": [{
                            "target": "SystemX",
                            "targetType": "entity",
                            "values": {
                                "SourceRecordID": {
                                    "values": [{
                                            "value": "321"
                                        }
                                    ]
                                }
                            }
                        }
                    ]
                }
            },
            "dataContainers": {
                "MainAddressDataContainer": {
                    "dataContainers": [{
                            "values": {
                                "InputStreet": {
                                    "value": {
                                        "value": ""
                                    }
                                },
                                "InputCountry": {
                                    "value": {
                                        "value": "USA"
                                    }
                                },
                                "InputCity": {
                                    "value": {
                                        "value": "Atlanta"
                                    }
                                },
                                "InputState": {
                                    "value": {
                                        "value": "Georgia"
                                    }
                                },
                                "InputZip": {
                                    "value": {
                                        "value": "30339"
                                    }
                                }
                            }
                        }
                    ]
                },
                "PhoneDataContainer": {
                    "dataContainers": [{
                            "values": {
                                "PhoneNumber": {
                                    "value": {
                                        "value": "7701231234"
                                    }
                                },
                                "PhoneType": {
                                    "value": {
                                        "value": "Cell"
                                    }
                                }
                            }
                        }
                    ]
                },
                "EmailDataContainer": {
                    "dataContainers": [{
                            "values": {
                                "EmailField": {
                                    "value": {
                                        "value": "stibo@stibo.com"
                                    }
                                },
                                "EmailType": {
                                    "value": {
                                        "value": "Personal"
                                    }
                                }
                            }
                        }
                    ]
                }
            }
        }
    }
]

SOAP

Copy
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://stibo.com/step/ws/matching/1.0" xmlns:ns1="http://stibo.com/step/ws/types/1.0" xmlns:step="http://www.stibosystems.com/step">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:matchAndMergeRequest>
         <accessContext>
            <ns1:userName>stepsys</ns1:userName>
            <ns1:password>stepsys</ns1:password>
            <ns1:contextUrl>step://context?id=Context1</ns1:contextUrl>
         </accessContext>
 <webserviceConfigurationID>OrganizationRequest</webserviceConfigurationID>
               <matchAndMergeRecord CorrelationID="9">
                  <ns1:Entity ParentID="111301" UserTypeID="OrganizationCustomer">
                     <step:Name>Stibo Systems</step:Name>
                     <step:Entity/>
                     <step:EntityCrossReference Type="CustomerSourceSystem" EntityID="SystemY">
                        <step:MetaData>
                           <step:Value AttributeID="SourceRecordID">321</step:Value>
                        </step:MetaData>
                     </step:EntityCrossReference>
                     <step:Values>
                        <step:Value AttributeID="LegalName">Stibo</step:Value>
                     </step:Values>
                     <step:DataContainers>
                        <step:DataContainer Type="MainAddressDataContainer">
                           <step:Values>
                              <step:Value AttributeID="InputStreet"></step:Value>
                              <step:Value AttributeID="InputCity">Atlanta</step:Value>
                              <step:Value AttributeID="InputCountry">USA</step:Value>
                              <step:Value AttributeID="InputState">Georgia</step:Value>
                              <step:Value AttributeID="InputZip">30339</step:Value>
                           </step:Values>
                        </step:DataContainer>
                        <step:MultiDataContainer Type="PhoneDataContainer">
                           <step:DataContainer>
                              <step:Values>
                                 <step:Value AttributeID="PhoneNumber">7701231234</step:Value>
                                 <step:Value AttributeID="PhoneType">Cell</step:Value>
                              </step:Values>
                           </step:DataContainer>
                        </step:MultiDataContainer>
                        <step:MultiDataContainer Type="EmailDataContainer">
                           <step:DataContainer>
                              <step:Values>
                                 <step:Value AttributeID="EmailField">stibo@stibo.com</step:Value>
                                 <step:Value AttributeID="EmailType">Work</step:Value>
                              </step:Values>
                           </step:DataContainer>
                        </step:MultiDataContainer>
                     </step:DataContainers>
                  </ns1:Entity>
               </matchAndMergeRecord>
            </ns:matchAndMergeRequest>
         </soapenv:Body>
</soapenv:Envelope>

Reject Organization Customer Based on Failed Validation Web Service Response

REST

Copy
{
  "matchAndMergeGeneralExecutionReport": {
    "httpStatus": 200,
    "message": null,
    "httpReason": "OK"
  },
  "matchAndMergeResponses": [
    {
      "correlationID": "1",
      "status": "REJECTED",
      "potentialDuplicates": [],
      "matchAndMergeExecutionReport": {
        "operation": "FAILED",
        "errorMessage": null,
        "rejectedByBusinessCondition": [
          {
            "rejectedByBusinessConditionID": "CheckAddress",
            "rejectedByBusinessConditionReason": "Record rejected by business condition - (REJECTED) of CheckAddress."
          }
        ],
        "rejectedByPotentialDuplicates": false
      },
      "entity": null
    }
  ]
}

SOAP

Copy
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns5:matchAndMergeResponse xmlns:ns2="http://stibo.com/step/ws/types/1.0" xmlns:ns3="http://www.stibosystems.com/step" xmlns:ns4="http://www.stibosystems.com/step/outputtemplate" xmlns:ns5="http://stibo.com/step/ws/matching/1.0">
         <matchAndMergeRecord CorrelationID="9">
            <ns2:status>REJECTED</ns2:status>
            <ns2:matchAndMergeExecutionReport>
               <ns2:operation>FAILED</ns2:operation>
               <ns2:recordRejectedBy>
                  <ns2:rejectedByBusinessCondition>
                     <ns2:businessConditionID>CheckAddress</ns2:businessConditionID>
                     <ns2:reason>Record rejected by business condition - (REJECTED) of CheckAddress.</ns2:reason>
                  </ns2:rejectedByBusinessCondition>
               </ns2:recordRejectedBy>
            </ns2:matchAndMergeExecutionReport>
         </matchAndMergeRecord>
      </ns5:matchAndMergeResponse>
   </S:Body>
</S:Envelope>