POST api/DeleteCommodity_V1
Delete User/Client Commodity
Request Information
URI Parameters
None.
Body Parameters
The request is presented below!
WS_Repository.Models.Requests.Lists.DeleteCommodityRequestName | Description | Type | Additional information |
---|---|---|---|
WS_Key |
(Mandatory) Client Or User Webservice Key provided by 2ship support - the type of the ws_key should be set by WSKeyLevel field |
string |
None. |
CommodityID |
(Mandatory) Commodity ID |
string |
None. |
WSKeyLevel |
(Mandatory) Specify the WS_Key type ( User or Client) |
WS_Repository.Models.Common.WSKeyLevelType |
None. |
Request Formats
application/json, text/json
Sample:
{ "WS_Key": "sample string 1", "CommodityID": "sample string 2", "WSKeyLevel": 0 }
application/xml, text/xml
Sample:
<DeleteCommodityRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WS_Repository.Models.Requests.Lists"> <CommodityID>sample string 2</CommodityID> <WSKeyLevel>User</WSKeyLevel> <WS_Key>sample string 1</WS_Key> </DeleteCommodityRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
WS_Repository.Models.Responses.Lists.DeleteCommodityResponseName | Description | Type | Additional information |
---|---|---|---|
Success |
Specify if the delete was successfully done |
boolean |
None. |
ErrorMessage |
The error message if the delete get an error |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "ErrorMessage": "sample string 2" }
application/xml, text/xml
Sample:
<DeleteCommodityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WS_Repository.Models.Responses.Lists"> <ErrorMessage>sample string 2</ErrorMessage> <Success>true</Success> </DeleteCommodityResponse>