Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation deleteInvoicesInvoice
Documentation
deleteInvoicesInvoice Source #
:: forall m. MonadHTTP m | |
=> Text | invoice | Constraints: Maximum length of 5000 |
-> ClientT m (Response DeleteInvoicesInvoiceResponse) | Monadic computation which returns the result of the operation |
DELETE /v1/invoices/{invoice}
<p>Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be <a href="#void_invoice">voided</a>.</p>
data DeleteInvoicesInvoiceResponse Source #
Represents a response of the operation deleteInvoicesInvoice
.
The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), DeleteInvoicesInvoiceResponseError
is used.
DeleteInvoicesInvoiceResponseError String | Means either no matching case available or a parse error |
DeleteInvoicesInvoiceResponse200 DeletedInvoice | Successful response. |
DeleteInvoicesInvoiceResponseDefault Error | Error response. |