DELETE api/customers/deliveryaddress?id={id}
Deletes customer delivery address
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Id of the customer delivery address that will be deleted |
globally unique identifier |
Required |
Body Parameters
None.
Remarks
Returns Http 404 Not found if no customer delivery address was found
Example
None.
Response Information
Resource Description
CustomerDeliveryAddressDeleteResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Success |
Returns true if delivery address is deleted |
boolean |
None. |
| Errors |
List of errors when deleting an delivery address |
Collection of DeleteCustomerDeliveryAddressError |
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:
<CustomerDeliveryAddressDeleteResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
<Errors>
<DeleteCustomerDeliveryAddressError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</DeleteCustomerDeliveryAddressError>
<DeleteCustomerDeliveryAddressError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</DeleteCustomerDeliveryAddressError>
</Errors>
<Success>true</Success>
</CustomerDeliveryAddressDeleteResponse>