DELETE api/customers/invoice?customerNumber={customerNumber}

Deletes customer invoice

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerNumber

Customer number of the customer where customer invoice will be deleted

integer

Required

Body Parameters

None.

Remarks

None.

Example

None.

Response Information

Resource Description

CustomerInvoiceDeleteResponse
NameDescriptionTypeAdditional information
Success

Returns true if customer invoice is deleted

boolean

None.

Errors

List of errors when deleting an customer invoice

Collection of DeleteCustomerInvoiceError

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:
<CustomerInvoiceDeleteResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <Errors>
    <DeleteCustomerInvoiceError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </DeleteCustomerInvoiceError>
    <DeleteCustomerInvoiceError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </DeleteCustomerInvoiceError>
  </Errors>
  <Success>true</Success>
</CustomerInvoiceDeleteResponse>