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": "c5a2edfa-52e3-46b7-9b2d-23bca6900eea",
"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>c5a2edfa-52e3-46b7-9b2d-23bca6900eea</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": "54d248df-6747-4bcb-88bf-4f459011d393"
}
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>54d248df-6747-4bcb-88bf-4f459011d393</Id>
<Success>true</Success>
</SupplierContactPostResponse>