POST api/supplier/inactivate/{id}
Inactivate supplier
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Id of the supplier that will be inactivated |
globally unique identifier |
Required |
Body Parameters
None.
Remarks
None.
Example
None.
Response Information
Resource Description
SupplierInactivateResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Success |
Returns true if supplier is inactivated |
boolean |
None. |
| Errors |
List of errors when inactivating a supplier |
Collection of InactivateSupplierError |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Errors": [
{
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
{
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
}
]
}
application/xml, text/xml
Sample:
<SupplierInactivateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Supplier">
<Errors>
<InactivateSupplierError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</InactivateSupplierError>
<InactivateSupplierError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</InactivateSupplierError>
</Errors>
<Success>true</Success>
</SupplierInactivateResponse>