Create New Supplier and Contact Person
The following section includes sample REST request call as well as the response.
Required values to identify match
- Legal Name
- Address
- First Name
- Last Name
- Phone
New Supplier and Contact Person Web Service Request
REST
Copy
[
{
"correlationID": "50",
"entity": {
"objectType": "Supplier",
"references": {
"CustomerSourceSystem": {
"references": [
{
"target": "SystemX",
"targetType": "entity",
"values": {
"SourceRecordID": {
"values": [
{
"value": "14678-45125"
}
]
}
}
}
]
}
},
"values": {
"LegalName": {
"value": {
"value": "Atlanta Journal & Constitution"
}
}
}
}
},
{
"correlationID": "51",
"entity": {
"objectType": "ContactPerson",
"references": {
"ContactPersonSupplier": {
"references": [
{
"entity": {
"references": {
"CustomerSourceSystem": {
"references": [
{
"target": "SystemX",
"targetType": "entity",
"values": {
"SourceRecordID": {
"values": [
{
"value": "14678-45125"
}
]
}
}
}
]
}
}
},
"targetType": "entity"
}
]
},
"CustomerSourceSystem": {
"references": [
{
"target": "SystemY",
"targetType": "entity",
"values": {
"SourceRecordID": {
"values": [
{
"value": "14425-97336"
}
]
}
}
}
]
}
},
"values": {
"FirstName": {
"value": {
"value": "Cheryl"
}
},
"LastName": {
"value": {
"value": "Vega"
}
}
}
}
}
]
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>SupplierRequest</webserviceConfigurationID>
<matchAndMergeRecord CorrelationID="9">
<ns1:Entity ParentID="331676" UserTypeID="Supplier">
<step:Name></step:Name>
<step:Entity/>
<step:EntityCrossReference Type="CustomerSourceSystem" EntityID="SystemX">
<step:MetaData>
<step:Value AttributeID="SourceRecordID">23156-71588</step:Value>
</step:MetaData>
</step:EntityCrossReference>
<step:Values>
<step:Value AttributeID="LegalName">1 Day Sign Shop</step:Value>
</step:Values>
<step:DataContainers>
<step:DataContainer Type="MainAddressDataContainer">
<step:Values>
<step:Value AttributeID="InputStreet">5945 Mission Gorge Rd # 6</step:Value>
<step:Value AttributeID="InputCity">San Diego</step:Value>
<step:Value AttributeID="InputCountry">US</step:Value>
<step:Value AttributeID="InputState">CA</step:Value>
<step:Value AttributeID="InputZip">92120</step:Value>
</step:Values>
</step:DataContainer>
</step:DataContainers>
</ns1:Entity>
</matchAndMergeRecord>
</ns:matchAndMergeRequest>
</soapenv:Body>
</soapenv:Envelope>
New Supplier and Contact Person Web Service Response
REST
Copy
{
"matchAndMergeGeneralExecutionReport": {
"httpStatus": 200,
"message": null,
"httpReason": "OK"
},
"matchAndMergeResponses": [
{
"correlationID": "50",
"status": "PROCESSED",
"potentialDuplicates": [],
"matchAndMergeExecutionReport": {
"operation": "NEW",
"errorMessage": null,
"rejectedByBusinessCondition": [],
"rejectedByPotentialDuplicates": false
},
"entity": {
"id": "1313454",
"name": null,
"objectType": "Supplier",
"parent": "331676",
"values": {
"LegalName": {
"calculated": false,
"contextLocal": true,
"inherited": null,
"value": {
"value": "Atlanta Journal & Constitution",
"valueId": null,
"unit": null
}
}
},
"references": {
"CustomerSourceSystem": {
"references": [
{
"contextLocal": true,
"target": "SystemX",
"targetType": "entity",
"values": {
"SourceRecordID": {
"contextLocal": true,
"inherited": null,
"values": [
{
"value": "14678-45125",
"valueId": null,
"unit": null
}
]
}
},
"inherited": null,
"entity": null
}
]
}
},
"dataContainers": {}
}
},
{
"correlationID": "51",
"status": "PROCESSED",
"potentialDuplicates": [],
"matchAndMergeExecutionReport": {
"operation": "UPDATE",
"errorMessage": null,
"rejectedByBusinessCondition": [],
"rejectedByPotentialDuplicates": false
},
"entity": {
"id": "131510",
"name": null,
"objectType": "ContactPerson",
"parent": "111660",
"values": {
"FirstName": {
"calculated": false,
"contextLocal": true,
"inherited": null,
"value": {
"value": "Cheryl",
"valueId": null,
"unit": null
}
},
"LastName": {
"calculated": false,
"contextLocal": true,
"inherited": null,
"value": {
"value": "Vega",
"valueId": null,
"unit": null
}
}
},
"references": {
"CustomerSourceSystem": {
"references": [
{
"contextLocal": true,
"target": "SystemY",
"targetType": "entity",
"values": {
"SourceRecordID": {
"contextLocal": true,
"inherited": null,
"values": [
{
"value": "14425-97336",
"valueId": null,
"unit": null
}
]
}
},
"inherited": null,
"entity": null
}
]
}
},
"dataContainers": {}
}
}
]
}
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>PROCESSED</ns2:status>
<ns2:matchAndMergeExecutionReport>
<ns2:operation>UPDATE</ns2:operation>
</ns2:matchAndMergeExecutionReport>
<ns2:Entity UserTypeID="Supplier" ID="373717" ParentID="331676">
<ns3:EntityCrossReference EntityID="SystemX" Type="CustomerSourceSystem">
<ns3:MetaData>
<ns3:MultiValue AttributeID="SourceRecordID">
<ns3:Value>23156-71588</ns3:Value>
</ns3:MultiValue>
</ns3:MetaData>
</ns3:EntityCrossReference>
<ns3:Values>
<ns3:Value AttributeID="LegalName">1 Day Sign Shop</ns3:Value>
</ns3:Values>
<ns3:DataContainers>
<ns3:DataContainer Type="MainAddressDataContainer" ID="379748">
<ns3:Values>
<ns3:Value AttributeID="InputStreet">5945 Mission Gorge Rd # 6</ns3:Value>
<ns3:Value AttributeID="InputCountry">US</ns3:Value>
<ns3:Value AttributeID="InputState">CA</ns3:Value>
<ns3:Value AttributeID="InputCity">San Diego</ns3:Value>
<ns3:Value AttributeID="InputZip">92120</ns3:Value>
<ns3:Value Derived="true" AttributeID="CalcFormattedAddress">5945 Mission Gorge Rd # 6
San Diego, CA, 92120
US</ns3:Value>
</ns3:Values>
</ns3:DataContainer>
</ns3:DataContainers>
</ns2:Entity>
</matchAndMergeRecord>
</ns5:matchAndMergeResponse>
</S:Body>
</S:Envelope>