POST api/supplier/contact
Adds an contact to supplier
Request Information
URI Parameters
None.
Body Parameters
SupplierContactPostRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| SupplierId | globally unique identifier |
Required |
|
| Name | string |
Required Max length: 50 |
|
| Phone | string |
Max length: 50 |
|
| Mobile | string |
Max length: 50 |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"SupplierId": "c634b69f-acd9-4e3c-8e35-c13b013aa34e",
"Name": "sample string 2",
"Phone": "sample string 3",
"Mobile": "sample string 4"
}
application/xml, text/xml
Sample:
<SupplierContactPostRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Supplier"> <Mobile>sample string 4</Mobile> <Name>sample string 2</Name> <Phone>sample string 3</Phone> <SupplierId>c634b69f-acd9-4e3c-8e35-c13b013aa34e</SupplierId> </SupplierContactPostRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SupplierContactPostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors | Collection of PostSupplierContactError |
None. |
|
| Success | boolean |
None. |
|
| Id | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"Errors": [
{
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
{
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
}
],
"Success": true,
"Id": "247ea171-0b58-4212-a354-dd44e8c96846"
}
application/xml, text/xml
Sample:
<SupplierContactPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Supplier">
<Errors>
<PostSupplierContactError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PostSupplierContactError>
<PostSupplierContactError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PostSupplierContactError>
</Errors>
<Id>247ea171-0b58-4212-a354-dd44e8c96846</Id>
<Success>true</Success>
</SupplierContactPostResponse>