POST api/MDMSupplier/Validate
Receives a validation response from MDM/ESB
Required Headers:
Authorization: Basic Http Authorization with valid Sertica credentials
Returns:
200 OK - Supplier was found and the validation response has been accepted.
400 Bad Request - If the received Validation fails to validate. Reason will be supplied in Response Phrase
401 Unauthorized - If credentials are invalid
404 NotFound - If no suppliers was found in Sertica that matches the ProcessedCompanysEntityId
500 Internal Server Error - Something unexpected failed. A logentry is saved in Sertica System Log if possible
Request Information
URI Parameters
None.
Body Parameters
MdmSupplierValidation| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyName | string |
Max length: 80 |
|
| AddressText | string |
Max length: 2000 |
|
| City | string |
Max length: 80 |
|
| PostalCode | string |
Max length: 20 |
|
| Country | string |
Max length: 3 |
|
| CompanyDuns | string |
Max length: 20 |
|
| VatCode | string |
Max length: 30 |
|
| Currency | string |
Max length: 3 |
|
| Approved | boolean |
Required |
|
| ProcessedCompanysEntityId | string |
Required |
|
| ExistingCompanysEntityId | string |
None. |
Request Formats
application/json, text/json
{
"CompanyName": "sample string 1",
"AddressText": "sample string 2",
"City": "sample string 3",
"PostalCode": "sample string 4",
"Country": "sample string 5",
"CompanyDuns": "sample string 6",
"VatCode": "sample string 7",
"Currency": "sample string 8",
"Approved": true,
"ProcessedCompanysEntityId": "sample string 10",
"ExistingCompanysEntityId": "sample string 11"
}
application/xml, text/xml
<AddressValidationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CompanyName>sample string 1</CompanyName> <AddressText>sample string 2</AddressText> <City>sample string 3</City> <PostalCode>sample string 4</PostalCode> <Country>sample string 5</Country> <CompanyDuns>sample string 6</CompanyDuns> <VatCode>sample string 7</VatCode> <Currency>sample string 8</Currency> <Approved>true</Approved> <ProcessedCompanysEntityId>sample string 10</ProcessedCompanysEntityId> <ExistingCompanysEntityId>sample string 11</ExistingCompanysEntityId> </AddressValidationResponse>
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |